Not sure if this question has been asked before, if so, let me know!
I need some help with the following
Problem. Let $G$ be a finite cyclic group with $|G|=n$. Prove that the group of all isomorphisms from $G$ to $G$ and the multiplicative group $\Bbb{Z}_n$ are isomorphic.
My attempt:
Suppose $G=\, <a>$ for some $a\in G$. Then the only generators of $G$ are $a^{k_1}, a^{k_2}, \dots, a^{k_{\phi(n)}}$, where $1\le k_i\le n$, $1\le i\le \phi(n)$, $(k_i,n)=1$ and $\phi$ is Euler's totient funtion. What I've noted is that if $f\in Aut(G)$ then $f(G)=G=<f(a)>$. Hence $f(a)=a^{k_i}$ for some $1\le i\le \phi(n)$.
What I'm trying to do above is to find a way to characterize the elements of $Aut(G)$... And trying to convince myself that $|Aut(G)|=|\Bbb{Z_n}|$.
I don't know where to go from here. Also, I don't see how $|Aut(G)|=|\Bbb{Z_n}|=\phi(n)$.
Help and hints are highly appreciated.
As $G$ is cyclic, a homomorphism $f$ is completely specified once $f(a)$ is specified, $a$ being a generator. It has to be $a^k$ for some $k$, with $k<n$ This homomorphism will be an automorphism iff $\gcd(k,n)=1$. Hence the order of automorphism group is $\phi(n)$.