Just another trailing zeroes problem

How many trailing zeroes are there in 5201 ! 5201! ?


The answer is 1298.

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.

2 solutions

Tijmen Veltman
Sep 15, 2014

The number of trailing zeros n n is equal to the number of factors of 5 5 (seeing as there are at least as many factors of 2 2 ), therefore:

n = 5201 5 + 5201 25 + 5201 125 + 5201 625 + 5201 3125 = 1040 + 208 + 41 + 8 + 1 = 1298 . n =\left\lfloor\frac{5201}{5}\right\rfloor+\left\lfloor\frac{5201}{25}\right\rfloor+\left\lfloor\frac{5201}{125}\right\rfloor+\left\lfloor\frac{5201}{625}\right\rfloor+\left\lfloor\frac{5201}{3125}\right\rfloor =1040+208+41+8+1=\boxed{1298}.

Tushar Malik
Sep 17, 2014

Instead of finding the different powers of 5 we can divide the remainder left again and again by 5. 5201/5 = 1040 , 1040/5 = 208 , 208/5 = 41 , 41/5 = 8 , 8/5 = 1 . Answer = 1040 + 208 + 41 + 8 + 1 = 1298 . This is much easier.

That's true

Dhruv G - 6 years, 8 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...