I am looking for an example of a group $G$ where the equality $(ab)^{n}=a^{n}b^{n}$ holds for two consecutive integers $n$, but $G$ is not an abelian group. I've started do some calculations in the group $D_{4}$ (I gave up!) Do you know where I can find that example? Is it possible find such example without doing a lot of calculations?
Thanks for your help!