TCS
Company
how many sero's r dere in 100! ?
Read Solution (Total 10)
-
- counting number of zeros at the end of n!
value will be
n/5 + n/5^2 + n/5^3 + n/5^4 + ..........
the integral value of this sum will be the total number of zeros.
in this question n=100
100/5 + 100/5^2 + .......
the integral value is 20+4=24. - 12 years agoHelpfull: Yes(37) No(0)
- 100/5=20
20/5=4
20+4=24
- 12 years agoHelpfull: Yes(11) No(1)
- We need to look at the prime factors that make up 100!. Each time we multiply a factor of 2 and a factor of 5 together we get 10, which adds a zero. Obviously there are more factors of 2 than 5. So the answer to the question is to find the number of factors of 5.
Every fifth number starting with 5 has a factor of 5, for a total of 100/5 = 20.
Every twenty-fifth number starting with 25 has a second factor of 5, for a total of
100/25 = 24.
So the total number of factors of 5, and hence the number of zeros at the end is:
20 + 4 = 24 - 12 years agoHelpfull: Yes(10) No(0)
- counting number of zeros at the end of n!
value will be
n/5 + n/5^2 + n/5^3 + n/5^4 + ..........
the integral value of this sum will be the total number of zeros.
in this question n=100
100/5 + 100/5^2 + 100/5^3 + .......
the integral value is 20+4=24. - 12 years agoHelpfull: Yes(4) No(0)
- 24?
divide 100 by 5, and then add last two quotients - 12 years agoHelpfull: Yes(3) No(0)
- no sero will be there :)
but 24 zeros will be there - 12 years agoHelpfull: Yes(3) No(0)
- 100/5=20 AND 100/25=4
THAN 20+4=24. - 12 years agoHelpfull: Yes(3) No(0)
- it is lyk
100/5=20
100/25=4
now value of 5^3 exceeds 100 so no further calculation
ans is =20+4=24 - 12 years agoHelpfull: Yes(2) No(0)
- Let’s count the 5′s first. 5, 10, 15, 20, 25 and so on making a total of 20. However there is more to this. Since 25, 50, 75 and 100 have two 5′s in each of them (25 = 5 * 5, 50 = 2 * 5 * 5, …), you have to count them twice. This makes the grand total 24. For people who like to look at it from a formula point of view
Number of 5′s = 100/5 + 100/25 + 100/125 + … = 24
so the toatal num of 2's is 97 in 100!
now multipling wit 5*2 we'll get 0
total 24 pairs are der so the answer is 24 - 12 years agoHelpfull: Yes(1) No(0)
- (100/5)+(100/5^2)=24
- 12 years agoHelpfull: Yes(1) No(0)
TCS Other Question