The previous question includes a detailed discussion on how to find the number of trailing zeroes of n!, for any natural number n.
We see that 24! has = 4 zeroes
25! ends with = 6 zeroes. There is no natural number m such that m! has exactly 5 zeroes.
Similarly, we see that 49! ends with = 10 zeroes, whereas 50! ends with = 12 zeroes. No factorial ends with 11 zeroes.
So, any time we have a multiple of 25, we 'skip' a zero. This is because a multiple of 25 adds two zeroes to the factorial.
Extrapolating this, we can see that 125 might actually 'skip' two zeroes. 124! ends with = 24 + 4 = 28 zeros, whereas 125! has = 25 + 5 + 1 = 31 zeros. There is no factorial with 29 or 30 zeros.
In order to jump three zeros, think about what we need to look at. Every multiple of 25 gives us one 'skipped' zero. Every multiple of 125 gives us two 'skipped' zeroes.
In order to have three skipped zeroes, we need to look at 624! and 625!
624! has = 124 + 24 + 4 = 152 zeros
625! has = 125 + 25 + 5 + 1 = 156 zeros
There is no factorial with 153, 154 or 155 zeros. Or the least value of n such that no factorial ends with n, (n + 1) or (n + 2) zeroes is 153.
Correct Answer: 153
All features of the online course, including the classes, discussion board, quizes and more, on a mobile platform.
Download videos onto your mobile so you can learn on the fly, even when the network gets choppy!