Describe all the ring homomorphisms of $\mathbb{Z}\times \mathbb{Z}$ into $\mathbb{Z}_7$.
My Attempt: $\mathbb{Z}_7$ is a field and having two idempotent element $0$ and $1$. By using this idempotent elements it will be solve. Can anyone help me with this?
$\Bbb Z \times \Bbb Z$ is generated by $a=(1,0)$ and $b=(0,1)$, so it is sufficient to note what $\varphi(a)$ and $\varphi(b)$ is, where $\varphi$ is the desired ring homomorphism.
It should be noted that $\varphi(a) \varphi(b) = \varphi(ab) = \varphi(0,0) = 0$. Since $\Bbb Z_7$ is a field, we have either $\varphi(a)=0$ or $\varphi(b)=0$.
It should also be noted that $\forall p,q:\varphi(1,1)\varphi(p,q)=\varphi(p,q)$ implies $\varphi(1,1)=1$ or $\forall p,q:\varphi(p,q)=0$, since $\Bbb Z_7$ is a field.
This leaves us with the homomorphism $\varphi(p,q)=0$, $\varphi(p,q) = p1$ or $\varphi(p,q) = q1$.