2
$\begingroup$

I have a vague idea of prime factorizing 24, 20, and 45, then distributing the exponent, find how many numbers are divisible by them (factors), and then subtract the overcounts. How do I do this?

  • 0
    Inclusion exclusion is one way...figure how many numbers divide at least one, then subtract those that divide at least two, then add back those that divide all three.2017-01-26
  • 0
    How many divide one is easy, but two and three are significantly harder...2017-01-26
  • 0
    Not really. In order for a number to divide both $a,b$ it must divide $\gcd (a,b)$.2017-01-26

2 Answers 2

2

$24=2^3\times 3\\ \implies 24^5=2^{15}\times 3^5$

Positive divisors of $24^5=16 \times 6=96$

$20=2^2\times 5\\ \implies 20^6=2^{12}\times 5^6$

Positive divisors of $20^6=13 \times 7=91$

$45=3^2\times 5\\ \implies 45^7=3^{14}\times 5^7$

Positive divisors of $45^7=15 \times 8=120$

Positive divisors of both $24^5$ and $20^6=13$ (as $2^{12}$ is the only common factor)

Positive divisors of both $24^5$ and $45^7=6$

Positive divisors of both $20^6$ and $45^7=7$

Positive divisors of $24^5,20^6,45^7=1$

Required answer

$96+91+120-(13 + 6 + 7) + (1)$

  • 0
    @lulu, thanks, corrected.2017-01-26
1

You want to apply the Principle of Inclusion-Exclusion. In this context, it gives rise to the equation:

Number that divide any of the three = [number that divide at least one] - [number that divide at least two] + [number that divide at least three]

In order to count the number that divide two of the numbers, recall that $$a|b\text{ and }a|c\iff a|\gcd(b,c)$$

I'm getting $$96+91+120-(13+6+7)+1=282$$ as the answer.

  • 0
    Using this, I got 282. Is that correct?2017-01-26
  • 0
    @GerardL. yeah, I'm getting $96+91+120-(13+6+7)+1=282$2017-01-26