TCS
Company
find the numbers of zeros at the end of 100!
Read Solution (Total 11)
-
- count the number of 5′s and 2′s in the multiplication.
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.
Formula point of view-
Number of 5′s = 100/5 + 100/25 + 100/125 + … = 24 (Integer values only)
similarly,count the number of 2′s. 2, 4, 6, 8, 10 and so on. Total of 50 multiples
Since we have only 24 5′s, we can only make 24 pairs of 2′s and 5′s thus the number of zeros in 100!is 24.
- 11 years agoHelpfull: Yes(45) No(1)
- 100/5=20
20/5=4
again 4 can not be divisible by 5
So, 20+4=24 zeros - 11 years agoHelpfull: Yes(37) No(5)
- 100/5=20,
20/5=4
20+4=24.
24 0's are there
- 11 years agoHelpfull: Yes(9) No(3)
- dividing with 5 we get zero,
1. 100/5=20
2. den 5^2=25 so ,100/25=4
3. den 5^3=125 , but we want to find till 100! den adding .
ans-20+4=24. - 11 years agoHelpfull: Yes(7) No(0)
- 24 zeros at the end of 100!
- 11 years agoHelpfull: Yes(6) No(2)
- for finding zero's in factorial we have to divide that no. by 5 and add the remainder so(100/5+20/5+4/5)=20+4+0=24
- 11 years agoHelpfull: Yes(5) No(0)
- 24 zeros...
- 11 years agoHelpfull: Yes(2) No(0)
- 100/5=20
20/5=4
4 can not be divisible by 5 that is remainder part end we get 0
So, 20+4=24 zeros - 11 years agoHelpfull: Yes(1) No(0)
- 5*2=10 makes us 0 so there is process we have to repeatedly divide by 5 afterthat we have to add all the quotient. like in this case 20+4=24 zeroes will be there
- 11 years agoHelpfull: Yes(1) No(0)
- u can simply calculate from 1-100 number who is taking aur making zero at end positions..
- 11 years agoHelpfull: Yes(0) No(8)
- to find number of zeroes.
let us consider 5 and 2
100/5+100/25=24
p(2)>p(5),so there are 24 zeroes in 100! - 11 years agoHelpfull: Yes(0) No(0)
TCS Other Question