Find the remainder when $10^{20^{30}}$ is divided by $23$
I guess this question is fairly simple, but I just want to make sure I'm on the right track. My answer is shown below. If it is incorrect, please don't downvote it; I'll delete it soon after.
Edit: here's my work
Notice that $10^{2}\equiv 8\mod 23$, $8^2\equiv -5 \mod 23$, and $(-5)^2\equiv 2\mod 23$. Thus, $10^{16}\equiv 2\mod 23$ and $10^4\equiv -5\mod 23$ and so $10^{20}\equiv -10\mod 23\Rightarrow 10^{20^{30}}\equiv (-10)^{20^{29}}\equiv ...\equiv (-10)^{20}\equiv-10\mod 23\equiv 13\mod 23$.
mb I could use Fermat's Little Theorem. I guess I could make this more formal too.