Let the function f(x) be defined by If the value of N is Find the remainder when N is divided by 10
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.
We can find the last digit of each of 1 n , 2 n , 3 n , 4 n , f ( n ) as follows:
n 1 2 3 4 5 ⋮ 1 n 1 1 ⋅ 1 = 1 1 ⋅ 1 = 1 1 ⋅ 1 = 1 1 ⋅ 1 = 1 ⋮ 2 n 2 2 ⋅ 2 = 4 2 ⋅ 4 = 8 2 ⋅ 8 = 1 6 2 ⋅ 6 = 1 2 ⋮ 3 n 3 3 ⋅ 3 = 9 3 ⋅ 9 = 2 7 3 ⋅ 7 = 2 1 3 ⋅ 1 = 3 ⋮ 4 n 4 4 ⋅ 4 = 1 6 4 ⋅ 6 = 2 4 4 ⋅ 4 = 1 6 4 ⋅ 6 = 2 4 ⋮ f ( n ) 1 + 2 + 3 + 4 = 1 0 1 + 4 + 9 + 6 = 2 0 1 + 8 + 7 + 4 = 2 0 1 + 6 + 1 + 6 = 1 4 1 + 2 + 3 + 4 = 1 0 ⋮
Here, we note that the last digits in the row for n = 5 are identical to those in the row for n = 1 , so if we continued, the rows for n = 6 and n = 2 would be identical, etc. That is, this shows that the chart above will repeat every four rows. This tells us that
Last digit of f ( n ) = { 4 0 if n is a multiple of 4 otherwise
from which we can conclude the last digit of f ( 1 ) + f ( 2 ) + f ( 3 ) + f ( 4 ) + ⋯ + f ( 2 0 1 8 ) is the same as the last digit of 4 ⋅ # { positive multiples of 4 which are ≤ 2 0 1 8 } = 4 ⌊ 4 2 0 1 8 ⌋ = 4 ⋅ 5 0 4 = 2 0 1 6 giving an answer of 6