Trailing zeroes!

Find the number of trailing zeroes in 2002!


The answer is 499.

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.

1 solution

Jeremy Bansil
Aug 25, 2014

t r a i l i n g . z e r o e s = ( n 5 ) + ( n 5 2 ) + ( n 5 3 ) + ( n 5 4 ) + . . . trailing.zeroes = (\frac{n}{5})+(\frac{n}{5^{2}})+(\frac{n}{5^{3}})+(\frac{n}{5^{4}})+...

This is the trailing zeroes equation. Now to get each addend, divide 2002 2002 by 5 5 continuously until you get a quotient less than 5 . Add all the quotients (which are the addends) and you'll get the number of trailing zeroes, in which you will get 499 \boxed{499}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...