I recently learnt modular arithmetic for finding remainders when huge numbers are to be divided by some number. However, I am stuck at this problem:
What is the remainder when $\displaystyle32^{32^{32}}$ is divided by $7$?
I suppose the idea here is to reduce the exponent $32^{32}$ to such a number that $32$ raised to $32^{32}$ and $32$ raised to that number will give the same remainder. But how do we do that?