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.
|
|
|