Finding all homomorphisms from $\mathbb{Z}_6$ to $\mathbb{Z}_2 \times \mathbb{Z}_3$.
Consider a homomorphism $\phi: \mathbb{Z}_6 \rightarrow \mathbb{Z}_2 \times \mathbb{Z}_3$. Since all homomorphisms maps the identity of the first group to that of the second, $\phi([0])=([0],[0]), \forall\phi$. This implies that $\phi$ is of the form $\phi ([x])=([mx],[nx])$. Therefore, $m\equiv 0$ or $1 \mod{2}$ and $n\equiv 0,1$ or $2 \mod{3}$. Therefore, there are $6$ homomorphisms between the two groups.
From here, my thought is that $\phi $ is an isomorphism $\iff$ $m\equiv 1 \mod{2}$ and $n\equiv 1$ or $2\mod{3}$. This implies that there are $2$ isomorphisms between the groups and $4$ homomorphisms that are not isomorphisms.
This is my first time doing a problem of this sort, so I would love some feedback.