I'm trying to prepare myself for mathematics olympiad. I faced a problem which is kind of interesting, here is the question:
Oleg chose a positive integer like $m$ and Andrew found the following summation : \begin{align} 1^m +2^m + \cdots + 998^m+ 999^m \end{align} What is the last digit of this sum ?
For example if $m = 1 $ then we have :
\begin{align} 1+2+3+\cdots+998+999 = \frac{999 \times 1000}{2} = 499500 \end{align} So the answer is $0$ when $m=1$