Find all ring homomorphisms from $\Bbb Z/m\Bbb Z \rightarrow \Bbb Z/n \Bbb Z$, where $m,n\in \Bbb N_{>0}$.
I know that there exists a group homorphism between $\Bbb Z/m\Bbb Z \rightarrow \Bbb Z/n \Bbb Z$ if and only if $n|m$ .
How should i continue ?
I assume that ring homomorphisms map $1$ to $1$.
Suppose $f\colon\mathbb{Z}/m\mathbb{Z}\to\mathbb{Z}/n\mathbb{Z}$ is a ring homomorphism. Then, if $\pi\colon\mathbb{Z}\to\mathbb{Z}/m\mathbb{Z}$ is the canonical projection, $f\circ\pi$ is the unique ring homomorphism $\mathbb{Z}\to\mathbb{Z}/n\mathbb{Z}$.
Since $\pi$ is surjective, this shows that at most one ring homomorphism $f$ exists.
A necessary condition for existence is that $n\mathbb{Z}=\ker(f\circ\pi)\supseteq m\mathbb{Z}$, hence that $n\mid m$.
It's easy to see that this condition is also sufficient.