1 1 + 2 2 + 3 3 + ⋯ + 1 0 0 0 1 0 0 0
Find the last digit of the number above.
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.
Let N be the given number. Then:
N ≡ ( k = 1 ∑ 1 0 0 0 k k ) (mod 10) ≡ ( i = 0 ∑ 9 9 j = 0 ∑ 9 ( 1 0 i + j ) 1 0 i + j + 1 0 0 0 1 0 0 0 ) (mod 10) ≡ ( i = 0 ∑ 9 9 j = 0 ∑ 9 j 1 0 i + j ) (mod 10) ≡ ( j = 0 ∑ 9 j j i = 0 ∑ 9 9 j 1 0 i ) (mod 10) ≡ ( j = 0 ∑ 9 a j ) (mod 10) Let k = 1 0 i + j as follows. j = 0 when i = 0 where a j = j 2 i = 0 ∑ 9 9 j 1 0 i
Then we have
We note that a 0 ≡ a 1 ≡ a 2 ≡ ⋯ ≡ a 9 ≡ 0 (mod 10) , therefore, N ≡ j = 0 ∑ 0 a j ≡ 0 (mod 10) .
Mathematica
Mod[Total@Array[#^# &, 1000], 10]
returns 0
Problem Loading...
Note Loading...
Set Loading...
If you don't mind, I'll explain.
You see, a ≡ b ( m o d m ) ⟹ a n ≡ b n ( m o d m ) So, if you consider only the unit's digits, then you are essentially taking modulo 10 at every step. So, say, ... 1 3 n ≡ 3 n ( m o d 1 0 ) because 1 3 ≡ 3 ( m o d 1 0 ) . Hence, in the summation in question, the base repeats every after every ten numbers.
As for the power, they have a periodicity or cyclicity in modulo 10. For numbers ending in 0 , 1 , 5 , 6 the cycle is of length 1 (Last digit of any positive power of such a number is same as that of the number itself like, 1 1 2 = 1 2 1 has last digit 1 which is same as 11).
For those ending in 2 , 3 , 7 , 8 , the cycle is of length 4. (For these numbers, a 4 k + n ≡ a n ( m o d 1 0 ) where a is one of these numbers)
For those ending in 4 and 9, the cycle is of length 2.
Hence, the lowest common multiple of these powers is 4. Thus, for all numbers a 4 k + n ≡ a n ( m o d 1 0 ) where n is positive.
So powers repeat every four terms and bases repeat every 10 terms. Hence doing the LCM again, base powers repeats after every 20 terms atmost in integers modulo 10.
That is, ( a + 1 0 j ) 4 k + n ≡ a n ( m o d 1 0 ) So, ( n + 2 0 k ) n + 2 0 k ≡ n n ( m o d 1 0 )
Note : So we can group the terms as such: 2 0 1 0 0 0 ( 1 1 + 2 2 + ⋯ + 2 0 2 0 ) ≡ 0 ( m o d 1 0 ) .
You should cross check manually (use a calculator or something ... ) to see whether this holds. Hope this helps!