Number of zeros in 100!

Find the number of trailing zeros (consecutive zeros from the right end) in 100!

example: If we take a number 303000 then answer will be 3

23 24 25 22

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.

4 solutions

Vaibhav Agarwal
Mar 5, 2014

no. of zeroes in the end = no. of fives (since it will always be less than the no. of 2s)= [ 100 5 ] + [ 100 25 ] [\frac{100}{5}] + [\frac{100}{25}] = 20 + 4 = 24

Can u please explain it in a detailed manner. Why are u dividing 100 by 5 and 25

Vishal V Desai - 7 years ago

Log in to reply

5 multiply any even number equal to multiple of 10 while multiple of 25 consist of 2 fives and it overlap with multiple of 5

Tan Chee Wen - 7 years ago
Vishal V Desai
May 30, 2014

In 100! we have 3 possibilities of getting zero at the end . They are: *When the number is a multiple of 10. From this we get 11 0s including 100. *When a number ending with 5 is multiplied with an even number. Here 25, 50, 75 are exceptions because these numbers will yield 2 zeros when multiplied with single digit even numbers like 4, 2, 8,6. therefore we get 13 0s from this. There fore 11+13=24

Sunil Pradhan
Mar 21, 2014

to find number of zeroes at the end in 100! you have to count number of 5's and 10's in the series.

consider 10! in this number of 5' = 1 and number of 10's = 1 so total number of zeroes in 10! = 2

consider 30! number of 5's are 5, 15, 25 (in 25 there are are 2 5's as 25 = 5× 5) total 5's = 4

number of 10's are 10, 20, total =

so total number of zeroes = 4 + 2 = 6

but in 100! or still greater number factorial it is not so easy to count number of 5 in the series

easy way find quotient by dividing by 5 divide the quotient again till the quotient is less than 5 then add all quotients will give number of zeroes. 100/5 = 20, 20/5 = 4 (4 is less than 5) so total zeroes = 20 + 4 = 24

Dear, u explain in such a simple and easy way that, any body can understand and follow
Congratulations for that plz,

azadali jivani - 5 years, 8 months ago
Md Zuhair
Jul 23, 2017

By the way, I know the math behind it, But i made a program in C++ which calculates this. Wanna see?

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...