dordonez12
Hi Chetan,
How did you go from 5^100*100! to 97?
Thanks,
Diego.
Hi,
bunuel has already given you a link to check on.
Otherwiseto check zeroes in th eend of a number, we require to know how many 10s are there in it..
400 has two 10s, 10000 has four 10s and so on..
Now what is 100!-- It is 1*2*3*4*...*99*100 -- product of all numbers till 100..
How many 10s will it have.. will depend on number of 2s and 5s it will have..
we have seen that it has excess 5s in 5^100, so we check for number of 2s..
\([\frac{100}{2}]+[\frac{100}{4}]+[\frac{100}{8}]+[\frac{100}{16}]+[\frac{100}{32}]+[\frac{100}{64}] = 50+25+12+6+3+1 = 97..\)
Now let me explain you withslightly smaller number..
say we are to find 2s in 15!..
\([\frac{15}{2}]+[\frac{15}{4}]+[\frac{15}{8}]+[\frac{15}{16}]\)
Now 15/2 gives us how many multiple of 2s are there till 15 so 15/2 = 7.5 , we take only integer value , so 7 what are they 2,4,6,8,10,12,14--7 values
now 15/4 gives us those number of 2s that add on due to multiples of 4; 15/4 = 3.75 what are they - 4,8,12-- 3 values
similarly number of multile of 8s, since they have three 2s- 8 = 2*2*2- we have counted two 2s through above method, so 15/8 = 1.8 , so 1 value- 8
beyond that 15/16 = 0.9, since it does not hane any 16s in it..
so TOTAL 2s = SUM of all the above