Kinda funny that the answer you cheated from is wrong. ^_^
The principle is right, of course. The zeros at the end come from the 5's and the 2's when 1000 ! is factored, and since there are more 2's than 5's, it's enough to count the fives.
Yahoo noted correctly that every fifth number is divisible by five, so there are 200 fives. Every fifth of those is a multiple of 5^2 = 25 so those count twice; add 40 fives. Every fifth of those is a multiple of 5^3 = 125 so those count three times, add 8 more fives, for a total of 200 + 40 + 8 = 248, as yahoo claimed.
But they missed that 5^4 = 625 which is less than 1,000, which gives one more, for a total of 249, not 248. :-P
So.. what's the last non-zero number before the zeros start?
Originally posted by talzamir Kinda funny that the answer you cheated from is wrong. ^_^
The principle is right, of course. The zeros at the end come from the 5's and the 2's when 1000 ! is factored, and since there are more 2's than 5's, it's enough to count the fives.
Yahoo noted correctly that every fifth number is divisible by five, so there are 200 fives. Every fifth of those ...[text shortened]... for a total of 249, not 248. :-P
So.. what's the last non-zero number before the zeros start?
Can't trust anyone anymore🙂
How many digits total are there in 1000!?