TITLE: Order of automorphism group of cyclic group
QUESTION [39 upvotes]: Let $G$ be a cyclic group of order $m$. What is the order of $\text{Aut}(G)$?
I want to know the proof as well (elementary if possible). I would still accept the proof if one answers with $m = p$, a prime. Or on top of that, I would accept the answer with extra assumption: $q \equiv 1$ mod $p$ with another prime $p$.

REPLY [18 votes]: Hint: 
For a given cyclic group $G,\;\text{with}\;\; |G| = m$:
$$\text{Aut}\,(G) \cong \mathbb{Z}_m^*\tag{$\;^*:\;\;$multiplicative group}$$
Hence $\text|{Aut}\,(G)| = |\mathbb{Z}_m^*|.$
Since an automorphism of $G$ should map a generator of $G$ to a generator of $G$, it's enough to know how many generators $G$ must have.
So $|\text{Aut}(G)|=|\mathbb{Z}_m^*| = \phi(m)$ where $\phi(m)$ is Euler's totient function. 

(Note: you do not need that $m = p$, a prime; it suffices to know that $G$ is cyclic and finite.)