Calculate least significant digit of large number with exponent

18 Views Asked by At

Let $x = 2017^{2017}$

How can I determine the least significant digit of $x$?

Can this be solved without using the Euler's totient theorem?