Is there any way to find the number

Freddy Novak

Freddy Novak

Answered question

2022-04-13

Is there any way to find the number of zeroes at the end of n! for n5?

Answer & Explanation

seskew192atp

seskew192atp

Beginner2022-04-14Added 12 answers

Step 1
You have only counted the 5 of numbers like 25,125,250,1000 etc. once each. But these have more than one 5 in their factorisations. The correct method is as follows:
Count one 5 from each of these numbers once:
5,10,15,20,25,30,1000
We get 10005=200 of these 5's
Now count another 5 from each multiple of 25 (note that we have already counted one 5 from each of these!)
25,50,75,100,1000
We get 100025=40 of these 5's
Now count another 5 from each multiple of 125 (we have already counted two 5s from each)
125,250,375,1000
We get 1000125=8 of these 5's
Finally, count another 5 from each multiple of 625 (we have already counted three 5s from them) 625
We get 1000625=1 of these 5's
Adding all of these up, the maximum power of 5 in 1000! is 200+40+8+1=249. Obviously, the maximum power of 2 is much more, so we won't bother about it. The maximum power of 10 is therefore equal to the maximum power of 5, that is 249.
So 1000! has 249 zeroes at the end.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?