I am working on this exercise in Lang's Algebra:
Exercise I.7: Let $G$ be a group such that $\text{Aut}(G)$ is cyclic. Prove that $G$ is abelian
I have shown the set of inner-automorphisms form a (normal) subgroup in $\text{Aut}(G)$, so let $H$ be this subgroup. As a subgroup of a cyclic group, it is itself cyclic, so let $\varphi_x$ be its generator. Here $\varphi_x(g) = xgx^{-1}$ for any $g\in G$. But now for arbitrary $g$, the inner-automorphism $\varphi_g$ must be generated by $\varphi_x$, in other words $g = x^k$ for some integer $k$.
My question: Doesn't this show that not only is $G$ abelian, it is actually cyclic? I don't see anything wrong with my proof, but I find it strange the author didn't ask to show $G$ is cyclic instead.