I need to prove the equivalence of the following two statements, if $G$ is a group:
$G$ is abelian $\Leftrightarrow$ for each $a,b$ in $G$: $(ab)^n = a^n b^n$ for each integer $n$
I have done the $\Rightarrow$ implication, but I have no idea how to approach $\Leftarrow$, any hints are very welcome.