I've constructed the necessary condition proof for the following, but I am not sure how to prove the sufficient condition:
Show that the group $G$ is abelian if and only if $\forall a,b \in G, \forall n \in \mathbb{N}$ the following holds true: $(ab)^n=a^nb^n$
Proof:
$(\implies)$: Assume that $G$ is an abelian group, we prove that the following holds:
$(ab)^n=a^nb^n$
For $n=2$:
$(ab)^2=(ab)(ab)=abab=aabb=a^2b^2$
For $n=3$:
$(ab^3)=(ab)(ab)(ab)=ababab=aabbab=a^2babb=a^2abbb=a^3b^3$
Assume that
$(ab)^{n-1}=a^{n-1}b^{n-1}$
We prove that $(ab)^n=a^nb^n$
$(ab)^n=(ab)^{n-1}(ab)=a^{n-1}b^{n-1}(ab)=a^{n-1}b^{n-1}ab=a^{n-1}ab^{n-1}b=a^nb^n$
Now obviously in order to prove the sufficient condition we have to assume $G$ is an abelian group and then prove that $(ab)^n=a^nb^n$. But I don't really know how I can use induction to prove this.