Find the number of 0s at the end of
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
So the number of trailing 0 s depends on the number of pairs of 2 × 5 . Since there are more 2 s than 5 s, we are only concerned in finding the number of 5 s.
So,
1 ! t o 4 ! --- n o 5 s
5 ! t o 9 ! --- o n e 5 s
1 0 ! t o 1 4 ! --- t w o 5 s
...
2 0 ! t o 2 4 ! --- f o u r 5 s
2 5 ! t o 2 9 ! --- SIX 5 s
3 0 ! --- SEVEN 5 s
Note that beyond 2 5 ! , it's pattern change cause 2 5 = 5 2
So the total number of 5 s is 5 × ( 1 + 2 + 3 + 4 + 6 ) + 7 = 8 7