Let $f\colon (\mathbb{Z},+) \rightarrow(\mathbb{Q}-\{0\}, \cdot)$ be defined by $$f(m)=\left\{\begin{array}{c}1, \text { if } m \text { is even } \\ -1, \text { if } m \text { is odd }\end{array}\right.$$ Show that $f$ is a homomorphism. Determine $\ker f$ and also prove that $\mathbb{Z} / \ker f$ is isomorphic to $f(\mathbb{Z})$ ( $\mathbb{Z} $ and $\mathbb{Q}$ are the set of integers and rational numbers respectively).
My approach:
Let $m,n\in \mathbb{Z}$. Suppose both $m$ and $n$ are even. Then $m+n$ is even and so $$f(m+n)=1=1\cdot 1=f(m)f(n)$$
If both $m$ and $n$ are odd. Then $m+n$ is even and so
$$f(m+n)=1=(-1)\cdot (-1)=f(m)f(n)$$
If one of $m$ and $n$ is even and other is odd then $m+n$ is odd. In this case $f(m+n)=-1=f(m)f(n)$.
Hence $f$ is a homomorphism.
2nd part
$\ker(f)=\{x\in \mathbb{Z}\mid f(x)=1\}=\{x\in \mathbb{Z}\mid x \mbox{ is even}\}.$. I stuck here to show $\mathbb{Z} / \ker$ $f$ is isomorphic to $f(\mathbb{Z} )$. How can I show this?
Hint : If $\varphi : G \rightarrow G'$ is a group homomorphism, then there exists an injective map $$\overline{\varphi} : G/\mathrm{Ker}(\varphi) \rightarrow G'$$
such that $\mathrm{Im}(\overline{\varphi})= \mathrm{Im}(\varphi)$.