this question was raised over in stackoverflow.
Somebody wanted to know what the last digit was for $2^n$ with $n$ in range $1$ to $10^6$
An answer pointed out that the last digit always cycles $2,4,8,6$ so simply divide $n$ by $4$ . But is that certain, I mean it works for $n$ up to $8$ (simple calc) , but what about $n = 54256$
Yes, it's a sure thing. The pattern continues forever.
For $n=54256$, since $54256 \equiv 0 \mod 4$, the last digit is $6$.
(Actually, you only need to look at the last two digits of $n$ because of the divisibility rules for $4$!)