If $x \mapsto x^n $ is a automorphism of group $G$, show that for all $x$ in $G$, $x^{n-1} \in Z(G)$.
This mean $G=\{x^n:x \in G\}$ and $x^n=e$ if and only if $x= e$.
Now let $y\in G$. I Want to show that $$yx^{n-1}=x^{n-1}y.$$ We know that $y$ is $n^{\text {th}}$ power of some element of $G$, but how to proceed from here?
Any hint is appreciated. Thanks in Advance.