Modular Exponentiation

Set $n$ to be the modulus. Set $a$ to be some integer. This will make an arrow diagram picture of $x \mapsto x^a$ on the ring $\mathbb{Z}/n\mathbb{Z}$, i.e. the elements modulo $n$.