SOLUTION: What are the three rightmost digits of the sum 1!+2!+3!+...+2020!?

Algebra.Com
Question 1195802: What are the three rightmost digits of the sum 1!+2!+3!+...+2020!?
Found 2 solutions by greenestamps, Alan3354:
Answer by greenestamps(13200)   (Show Source): You can put this solution on YOUR website!


The number 5! contains one factor of 5 (and more than one factor of 2), so it has one trailing zero.

The number 10! contains two factors of 5, so it has two trailing zeros.

The number 15! contains three factors of 5, so it has three trailing zeros.

So the only numbers in the given sum that have nonzero digits in the last three places are 1! to 14!. So to find the answer, you only need to find the last three digits of 1! through 14! and add them.

It might seem as though that is still a difficult problem, because those factorials get very large quickly. But the task is relatively easy, because we are only interested in the last three digits of each factorial.

    n  last 3 digits of n!
   ------------------------
    1       1
    2       2
    3       6
    4      24
    5     120
    6     720   (6*120 = 720)
    7     040   (7*720 = 5040; but we don't care about the "5")
    8     320   (8*040 = 320)
    9     880   (9*320 = 2880; but we don't care about the "2")
   10     800   (10*880 = 8800; but we don't care about the first "8")

After this, since each factorial contains two trailing zeros, we only need to multiply the last digit of n times the last nonzero digit of the previous factorial to find the last nonzero digit of n!.

   11     800   (1 (units digit of "11"), times 8 (last nonzero digit of 10!))
   12     600   (2 times 8)
   13     800   (3 times 6)
   14     200   (4 times 8)
          ---
          313   (5313; but we don't care about the "5")

ANSWER: 313


Answer by Alan3354(69443)   (Show Source): You can put this solution on YOUR website!
What are the three rightmost digits of the sum 1!+2!+3!+...+2020!?
---------------
14! = 87178291200
15*14! ---> the 3 right digits are 000, and all higher factorials with have 000 to the rightmost digits.
========================
The sum of 1! to 14! = 93928268313
The last 3 digits are 313.

RELATED QUESTIONS

if the sum of three consecutive digits =20, what are the three digits (answered by vleith)
The table below provides with the weekly returns for Bitcoin and Ethereum for 20... (answered by ikleyn)
the credit card has 16 digits,the sum of any three adjacent digits is 13 and the second... (answered by richwmiller)
Two digits are selected at random from digits 1 through 9, if 2 is one of the digits... (answered by Alan3354)
What is the largest sum that can be obtained when each of the digits 1, 2, 3, 4, 5, 6, 7, (answered by checkley77)
The sum of three consecutive odd integers is 189. What are the integers? 1. 2.... (answered by muffin8)
The digits of a three digit number form an arithmetic progression. If the first and... (answered by Edwin McCravy)
What is the sum of the 1st 500 counting digits? That is what is the sum of... (answered by askmemath)
There are four 3-digit natural numbers, each of them equals the sum of the cube of its... (answered by Edwin McCravy)