$9^{123456789} \pmod{100}$
I tried to do this in a simpler way:
$$9 \equiv 9 \pmod{100}$$
$$9^1 \equiv 09 \\ 9^2 \equiv 81 \\ 9^3 \equiv 29 \\ 9^4 \equiv 61 \\ 9^5 \equiv 49 \\ 9^6 \equiv 41 \\ 9^7 \equiv 69 \\ 9^8 \equiv 21 \\ 9^9 \equiv 89 \\ 9^{10} \equiv 01$$
I noticed that the odd powers always end in 9 and the even ones in $1$. The leftmost digit follows the sequence $0,2,4,6,8,$... in this order for odd numbers and the other way around for even ones. The sequence has $5$ numbers.
$123456789$ is an odd number. $123456789 \equiv 4 \pmod 5$ so the answer should be $69,$ which is the $4$th of the sequence... but it's $89.$ Close enough, but not quite. What did I do wrong and how can I solve this in this way?