Trailing zeroes in factorial sum

Let S = 0 ! + ( 1 1 ! ) + ( 2 2 ! ) + . . . + ( 24 24 ! ) S=0!+(1\cdot1!)+(2\cdot2!) + ... + (24\cdot24!) . How many trailing zeroes does S S have?


The answer is 6.

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

Julian Yu
Jul 2, 2018

Notice that:

2 ! 1 ! = 1 ! ( 2 1 ) = 1 1 ! 2!-1!=1!(2-1)=1\cdot 1!

3 ! 2 ! = 2 ! ( 3 1 ) = 2 2 ! 3!-2!=2!(3-1)=2\cdot 2!

4 ! 3 ! = 3 ! ( 4 1 ) = 3 3 ! 4!-3!=3!(4-1)=3\cdot 3!

...

25 ! 24 ! = 24 ! ( 25 1 ) = 24 24 ! 25!-24!=24!(25-1)=24\cdot 24!

Adding all of these up, we get S = 0 ! + ( 2 ! 1 ! ) + ( 3 ! 2 ! ) + ( 4 ! 3 ! ) + . . . + ( 25 ! 24 ! ) S=0!+(2!-1!)+(3!-2!)+(4!-3!)+...+(25!-24!) .

Most terms cancel, and we are left with S = 0 ! 1 ! + 25 ! S=0!-1!+25! , which is equal to 25 ! 25! . The number of trailing zeroes in 25 ! 25! is simply 25 5 + 25 5 2 = 6 \left \lfloor \frac{25}{5} \right \rfloor + \left \lfloor \frac{25}{5^{2}} \right \rfloor = \boxed{6}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...