The following is a snippet from Gallian's Contemporary Abstract Algebra:
- Chapter 10-Example 10:
We determine all homomorphisms from $\Bbb Z_{12}$ to $\Bbb Z_{30}$.
By
$\phi(g^n) = (\phi(g))^n$ for all $n\in\Bbb Z$",
such a homomorphism is completely specified by the image of $1$.
That is, if $1$ maps to $a$, then $x$ maps to $xa$.
By Lagrange’s Theorem and by " If $|g|$ is finite, then $|f(g)|$ divides $|g|$"
we require that $|a|$ divide both $12$ and $30.$
So, $|a|$ can be $1, 2, 3$, or $6$.
Thus, $a = 0, 15, 10, 20, 5,$ or $25.$
This gives us a list of candidates for the homomorphisms.
That each of these six possibilities yields an operation-preserving, well defined function can now be verified by direct calculations. [Note that $\gcd(12, 30) = 6.$ This is not a coincidence!]
Can someone please explain why $\gcd(12,30)=6$ isn't a coincidence? I mean to ask why $\gcd(12,30)$ equals the number of homomorphisms from $\Bbb Z_{12}$ to $\Bbb Z_{30}$.