Let $G$ be abelian. Let $n \in \mathbb{Z}^+$ such that the order of $G$ and $n$ are relatively prime. Show that the function $\varphi : G \rightarrow G$ defined by $\varphi (a) = a^n $ is an automorphism for $a \in G$.
I'm stuck in proving 1-1-ness of the function. Let $a,b$ in $G$ such that $\varphi (x) = \varphi (y)$ then $a^n = b^n$. How can I show that $\varphi$ is 1-1 from here on out?