Large factorial sum

For any positive integer n, denote n! to be a factorial function in which it is the product of consecutive villagers from 1 to n. Find the last 2 digits of

0! + 1! + 2! + 3! + ... + (2^77232917 -1)! ?

Fun fact: 2^77232817 - 1 is the largest known Mersenne prime that was recently found last January 2018 by GIMPS or the Great Internet Mersenne Prime Search. It contains over 23 million digits!


The answer is 14.

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

At first it can seems tricky, but it isn't.

The factorials that have 00 as leading zeroes is those that have 2 2 5 2 2^2\cdot5^2 as one of it's factor. The first factorial with this property is 10 ! 10! . After this point all factorials will have at least two leading zeroes. It means that the tens and unit digits will be 0.

Then we only need to sum up:

0 ! = 1 0!=1

1 ! = 1 1!=1

2 ! = 2 2!=2

3 ! = 6 3!=6

4 ! = 24 4!=24

5 ! = 120 5!=120

6 ! = 720 6!=720

7 ! = 5040 7!=5040

8 ! = 40320 8!=40320

9 ! = 362880 9!=362880

10 ! = 3628800 10!=3628800 (not necessarily at all, I only included to show the 2 leading zeroes)

And the result will be 4037914 4037914 . If we keep going this sum until that huge factorial, the last two digits will always be 14 14 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...