Find the last digit of the sum: 1 2 + 2 2 + 3 2 + ⋯ + 2 0 1 7 2
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.
elegant way !
When squaring a number, the last digit of the result is going to be equal to the square of the last digit of the original number.
In general:
1 2 = > 1
2 2 = > 4
3 2 = > 9
4 2 = > 6
5 2 = > 5
6 2 = > 6
7 2 = > 9
8 2 = > 4
9 2 = > 1
0 2 = > 0
However, we know that, in every set of 10 digits, each of the above appears exactly once, so they appear the same number of times. Therefore, as 1 2 appears the same number as 3 2 , the sum of those two leads us to 0 m o d 1 0 .
The numbers pair up as follows to leave 0 m o d 1 0 : 1s and 3s 2s and 4s 6s and 8s 7s and 9s 0s
The only number which isn't complemented is 5. However, in every 20 integers, the 5 appears twice, cancelling itself out. Therefore, we have a conclusion that the sum of the squares of 20 consecutive integers = 0 m o d 1 0 .
As 2020 is a multiple of 20, the sum of the squares up to 2020 equals 0 m o d 1 0 . However, this includes 2 0 1 8 2 + 2 0 1 9 2 + 2 0 2 0 2 . Subtracting 4 + 1 + 0 , we get 5 m o d 1 0 . Such, the answer is 5
I don't have an innovative solution to the problem. I simply did it by the formula of sum of first n squares, that is 6 ( n ) ( n + 1 ) ( 2 n + 1 ) . After substituting 2 0 1 7 , we get the sum equivalent to 2 0 1 7 × 1 3 4 5 × 1 0 0 9 , hence the last digit= 5
6 n ( n + 1 ) ( 2 n + 1 )
When n = 2 0 1 7
= 6 2 0 1 7 ( 2 0 1 8 ) ( 2 0 1 7 ⋅ 2 + 1 )
= 6 ( 4 0 7 0 3 0 6 ) ( 4 0 3 5 )
= 2 7 3 7 2 8 0 7 8 5
Hence the last digit is 5
Problem Loading...
Note Loading...
Set Loading...
S ≡ 1 2 + 2 2 + 3 2 + ⋯ + 2 0 1 7 2 (mod 10) = n = 1 ∑ 2 0 1 7 n 2 (mod 10) = 6 2 0 1 7 × 2 0 1 8 × 4 0 3 5 (mod 10) = 2 0 1 7 × 1 0 0 9 × 1 3 4 5 (mod 10) = 5 (mod 10) Since 1345 ends with 5 and 2017 and 1009 are odd,