Calculate How Many Zeros Ends In
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.
If a number has n terminal zeros , then it contains n factors of 1 0 . But since 1 0 = 5 ⋅ 2 we are asking how many how many factors of 2 and 5 are there.
Since 2 is smaller than 5 , for any factor of 5 there will be enough factors of 2 to make a factor of 1 0 . thus we need to count only factors of 5
Since 1 2 3 9 ÷ 5 = 2 4 7 . 8
there are 2 4 7 factors of 5 on 1 2 3 9
But the numbers divisible by 2 5 will have 2 factors of 5 of which 1 we have counted.
Since, 1 2 3 9 ÷ 2 5 = 4 9 . 5 6
there are 4 9 factors of 5 again
Similarly, there will be 3 factors of 1 2 5 in 1 2 3 9 of which 2 we have counted
Since, 1 2 3 9 ÷ 1 2 5 = 9 . 9 1 2
there are 9 factors of 5 again
similarly there will be 1 factor again of 5 taking into consideration 6 2 5 which contain 4 factors of 5
Therefore, there are total 2 4 7 + 4 9 + 9 + 1 = 3 0 6 factors of 5
which implies that there are total 3 0 6 z e r o s at the end of 1 2 3 9 !