A problem from Artin's Algebra (not the problem I am asking):
Let $G$ be an abelian group of odd order. Prove that the map $\varphi : G\rightarrow G$ defined by $\varphi (x)=x^2$ is an automorphism.
I have solved this problem, also we can see here.
Then comes Generalization of the problem:
Let $G$ be an abelian group of finite order. Prove that the map $\varphi : G\rightarrow G$ defined by $\varphi (x)=x^k$ is an automorphism, where $k$ does not have any prime factor same of order of $G$.
Is it ok?