Suppose we have a homomorphism from $G$, a finite group, to $\Bbb Z$, the set of integers, $f:G\to\Bbb Z$. To prove that $f(g)=0$ for all $g$ in $G$, what I did is defined an isomorphism - $h:G/\ker(f)\to{\rm im}(f).$ (First isomorphism theorem.)
Now, ${\rm im}(f)$ looks like any subset $m\Bbb Z$ of $\Bbb Z.$ Since $h$ is a 1-1 correspondence and maps the identities, we conclude that $m$ must be $0$ for this to hold, which means that the element going to identity is $\ker(f).$
But I am having trouble proving $\ker(f) = G$, I don't seem to notice what I'm missing. (If $\ker(f) = G$, then the problem is solved.)
Can someone please help me with this?
Hint: The order of $f(g)$ divides the order of $g$ for all $g\in G$. Note that $\Bbb Z$ is torsion-free.