Give and example of a non-abelian group $(G,.)$ where $a^2b=ba^2\Rightarrow ab=ba$ for all $a,b\in G$. Can somebody give me some tips, please? Moreover how did you think to get there.
I've found that $C(a^2) \subset C(a)=C(a^{|G|+1}) $
Edit: The answer sheet gives the solution the group of matrices of the form $$\begin{pmatrix} \hat 1 & a & b \\ \hat 0& \hat 1 & c \\ \hat 0 & \hat 0 & \hat 1 \end{pmatrix}\qquad\text{ with }\ a,b,c \in \Bbb{Z}/3\Bbb{Z}.$$ Then $A^3=I_3$ for all such matrices. I wanted to know if there are some easier groups to find. It's pretty hard to find matrices.