How many trailing zeroes are there at the end of 1 0 0 0 ! ?
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.
We can do this directly by a formula,
= [ k n ] + [ k 2 n ] + [ k 3 n ] + [ k 4 n ] + . . . . . . .
We will keep doing this till n > k r .
Here,
n = of g !
k = prime integer
[ . . . ] = highest integral value
From this formula we can calculate the power of a prime number [ k ] which can divide [ g ! ] .
Hence the one having less power will be the limiting number .
Therefore ,to calculate the number of zeroes ,we'll take k = 5 and n = 1 0 0 0 .
= [ 5 1 0 0 0 ] + [ 5 2 1 0 0 0 ] + [ 5 3 1 0 0 0 ] + [ 5 4 1 0 0 0 ]
= [ 2 0 0 ] + [ 4 0 ] + [ 8 ] + [ 1 . 6 ]
= 2 0 0 + 4 0 + 8 + 1 = 2 4 9
Let's make it easier.
1000 ÷ 5 = 200
200 ÷ 5 = 40
40 ÷ 5 = 8
8 ÷ 5 = 1.6
200 + 40 + 8 + 1 = 249
For example, 12345!, do it this way.
12345 ÷ 5 = 2469
2469 ÷ 5 = 493.8
493 ÷ 5 = 98.6
98 ÷ 5 = 19.6
19 ÷ 5 = 3.8
2469 + 493 + 98 + 19 + 3 = 3082
Problem Loading...
Note Loading...
Set Loading...
If a number has one trailing zero, then it must be a multiple of 1 0 or 5 × 2 . So, for a number to have n trailing zeroes it should have exactly n pairs of 5 & 2 in it's factor.
For example, 1 0 ! = 1 × 2 × 3 × 4 × 5 × 6 × 7 × 8 × 9 × 1 0 = 1 × 2 × 3 × 4 × 5 × 6 × 7 × 8 × 9 × 2 × 5 = 3 6 2 8 8 0 0 Which has 2 pairs of 5 & 2 hence, 2 trailing zeroes.
Now, we have to find how many pairs are there in 1 0 0 0 ! 1 0 0 0 ! = 1 × 2 × 3 × 4 . . . . . × 1 0 0 0
Let's find the number of fives first. We can find them in every multiple of five. [e. g. 5 , 1 0 , 1 5 , . . . 9 9 5 , 1 0 0 0 ] . So there are 5 1 0 0 0 = 2 0 0 multiples of five in 1 0 0 0 !
But some of them has more than one five in their factor. [ e . g . 2 5 = 5 × 5 , 1 2 5 = 5 × 5 × 5 , 6 2 5 = 5 × 5 × 5 × 5 ]
There are 2 5 1 0 0 0 = 4 0 multiples of 25, 1 2 5 1 0 0 0 = 8 multiples of 1 2 5 & 1 multiple of 6 2 5 in 1 0 0 0 !
Hence, the total number of 5 in the prime factorization of 1 0 0 0 ! is, 2 0 0 + 4 0 + 8 + 1 = 2 4 9
There are 5 0 0 even numbers between 1 to 1 0 0 0 . So, it's very easy to understand that there will be far more number of 2 than 5 in the prime factorization of 1 0 0 0 !
So, the number of 5 & 2 pairs will be 2 4 9 .