Theorem
Hom, End, and Aut for finite cyclic groups
A map from C_m to C_n is determined by an m-torsion element of C_n; there are gcd(m,n) such homomorphisms.
Statement
Let be integers and write the cyclic groups additively as and . Evaluation at identifies the group homomorphisms with the residues satisfying : the corresponding map is . Thus
The middle isomorphism is of rings, with pointwise addition of endomorphisms and composition as multiplication. The last is an isomorphism of groups.
Verification
A homomorphism must send to . It is well-defined exactly when the relation is preserved, which says . Put . This divisibility is equivalent to , giving the residues .
For , every residue is allowed and . Such a map is invertible precisely when is a unit modulo . The formula also covers : there is one map and it is the identity on the trivial group.
Forgetting the group structure changes the answer
The underlying sets admit functions from to , while the groups admit only homomorphisms. In particular, has nine set maps but just one group map, the zero map.
For one group , the set endomorphisms number and the set automorphisms number ; the group endomorphisms number . The categories of groups, finite groups, and abelian groups give the same homomorphisms on these objects.