I'm trying to determinate how many morphisms of groupes exist between $\mathbb{Z}/n\mathbb{Z}$ and $\mathbb{Z}/m\mathbb{Z}$ for $n,m\in\mathbb{N}$.
I know a morphism is determinated by the image of the class $1$ and all image $g$ of $1$ have to satisfy $gn=0$.
My question is, how many elements $g$ like that exist and why?
Hint Let $1\in \Bbb Z/n\Bbb Z$ be your generator, $\eta$ a morphism. Then the order of $\eta(1)\in \Bbb Z/m \Bbb Z$ divides the order $n$ of $1$ in $\Bbb Z/n\Bbb Z$ and $m$, so ${\rm ord}\,\eta(1)\mid (n,m)$.