SOLUTION: How many zeroes in behind 127!

Algebra ->  Permutations -> SOLUTION: How many zeroes in behind 127!       Log On


   



Question 834159: How many zeroes in behind 127!






Answer by KMST(5328) About Me  (Show Source):
You can put this solution on YOUR website!
The number of zeros at the right of a large number is the number of 10 factors that we can factor out of that number.
For example,

127%2F5=25.4 meaning that there are red%2825%29 multiples of 5 in that factorial.
That accounts for some of the 5's in the prime factorization of 127%21 .
There are more 5's in the prime factorization of 127%21 , because some of those red%2825%29 multiples of 5 have more than one 5 in their factorization.
Some have one extra 5 because they are multiples of 25 ,
and 127%2F25=5.08 tells us to count green%285%29 more 5's.
To those extra 5's we have to add the second extra 5 of 125=5%5E3 , which has two extra fives.
The total count of 5's in the prime factorization of 127%21 is
red%2825%29%2Bgreen%285%29%2B1=highlight%2831%29 .
With those 31 5's in the prime factorization, pairing each with one of the many more 2's, we can make 31 factors each equal to 2%2A5=10 .
Those are all the 10's that we can find as factors of 127%21 , so there are exactly highlight%2831%29 zeros at the end of 127%21 .