I have the following question:
Let $(A, +, 0)$ be a finite abelian group of order $n$.
(1) Show that the map $\varphi_k : A \to A$ defined by $a \mapsto k a$ is a homomorphism for any $k \in \mathbb{Z}$.
The solution for this is pretty straightforward. That is, $\varphi_k(a+b) = k(a+b) = ka + kb = \varphi_k(a) + \varphi_k(b)$.
(2) Show $\varphi_k$ is an isomorphism $\iff \gcd(k, n) = 1$.
This is what I have a problem with. I have tried tackle this exercise countless number of times, but I have never get a foot in. Specifically, I do not really understand how this statement makes sense, i.e. I cannot figure out how $k$ and $n$ depend on each other. From what I understand, since $\varphi_k$ is a homomorphism for any $k$, then it must be the case that the bijectivity is what requires that $\gcd(k, n) = 1$. Can someone help elucidate how $n$ and $k$ are related? Any feedback is appreciated!