kean.allison Wrote:Can someone explain why we need to count the 5's in 25 and 50 too? I don't understand that part of the explanation - it seems like those multiples of 5 would already have been included in the multiples of 5 that make up 60.
Hi, 60/5 gives us 12 multiples of 5 in 60!, but that does not mean that 5 has
total 12 multiples only in factorization of 60!
For example, 2 is divisible by 2. So is 4. But the difference with 4 is that when we divide it with 2, it gives us a 2 which is again divisible by 2. Therefore, if I want to find the highest power of prime number 2 that divides (4x3x2), I will need to account for the fact that 4 has two factors of 2.
Similarly, when trying to find the highest power of 5 that divides 60!, we need to count all those numbers too which have two (or higher) factors of 5.
Between 1 and 60, there are 12 numbers divisible by 5 (these are 60, 55, 50, 45, 40, 35, 30, 25, 20, 15, 10, and 5).
But when we divide 50 and 25 by 5, they leave 10 and 5 respectively which are also divisible by 5. We need to account for these two as well. Hence, the total number of multiples becomes 12 + 2 = 14.
~~~~
There's actually
another formula too to determine the exact power of a given prime p which divides n! (but you will need to know or learn how to convert a decimal to a different base -- it's pretty simple though!)
[n - (digit sum of n in base p)] / (p - 1)In this case it becomes => (60 - digit sum of 60 in base 5) / (5-1)
60 converted to base 5 is 220. The digit sum, hence, is 2+2+0 = 4.
Therefore, (60 - 4)/(5-1) gives us 56/4 = 14
~~~~