[step:Construct the isomorphism with the unit group modulo $n$]
Here $(\mathbb{Z}/n\mathbb{Z})^\times$ denotes the multiplicative group of residue classes admitting multiplicative inverses modulo $n$, with the standard one-element convention when $n=1$. Define
\begin{align*}
\Theta: \operatorname{Aut}(\mathbb{Z}/n\mathbb{Z}) \to (\mathbb{Z}/n\mathbb{Z})^\times
\end{align*}
by
\begin{align*}
\Theta(\varphi)=\varphi(\bar{1}).
\end{align*}
The previous step shows that $\Theta(\varphi)$ is a unit modulo $n$ for every automorphism $\varphi$, so $\Theta$ is well-defined.
To prove injectivity, let $\varphi,\psi \in \operatorname{Aut}(\mathbb{Z}/n\mathbb{Z})$ and suppose $\Theta(\varphi)=\Theta(\psi)$. Then $\varphi(\bar{1})=\psi(\bar{1})$, and the first step implies $\varphi=\psi$.
To prove surjectivity, let $\bar{a} \in (\mathbb{Z}/n\mathbb{Z})^\times$. Define
\begin{align*}
\mu_a: \mathbb{Z}/n\mathbb{Z} \to \mathbb{Z}/n\mathbb{Z}
\end{align*}
by
\begin{align*}
\mu_a(\bar{k})=\overline{ak}.
\end{align*}
This map is well-defined: if $\bar{k}=\bar{\ell}$, then $n$ divides $k-\ell$, so $n$ divides $a(k-\ell)$, and hence $\overline{ak}=\overline{a\ell}$. It is a group homomorphism because, for all $k,\ell \in \mathbb{Z}$,
\begin{align*}
\mu_a(\bar{k}+\bar{\ell})=\mu_a(\overline{k+\ell})=\overline{a(k+\ell)}=\overline{ak}+\overline{a\ell}=\mu_a(\bar{k})+\mu_a(\bar{\ell}).
\end{align*}
Since $\bar{a}$ is a unit, $\gcd(a,n)=1$, so the previous step shows that $\mu_a$ is an automorphism. Also $\Theta(\mu_a)=\mu_a(\bar{1})=\bar{a}$, proving surjectivity.
Finally, let $\varphi,\psi \in \operatorname{Aut}(\mathbb{Z}/n\mathbb{Z})$, and write $\psi(\bar{1})=\bar{b}$. Then
\begin{align*}
\Theta(\varphi \circ \psi)=(\varphi \circ \psi)(\bar{1})=\varphi(\bar{b})=b\varphi(\bar{1})=\Theta(\varphi)\Theta(\psi).
\end{align*}
Thus $\Theta$ is a group homomorphism from the composition group $\operatorname{Aut}(\mathbb{Z}/n\mathbb{Z})$ to the multiplicative group $(\mathbb{Z}/n\mathbb{Z})^\times$. Since it is bijective, it is a [group isomorphism](/page/Group%20Isomorphism).
When $n=1$, the group $\mathbb{Z}/1\mathbb{Z}$ is the one-element group, its automorphism group is the one-element group, and under the standard unital convention the unit group $(\mathbb{Z}/1\mathbb{Z})^\times$ is also the one-element group. The same construction above gives the unique isomorphism in this case. This completes the proof.
[/step]