Can we conclude that this group is cyclic? [duplicate]
Solution 1:
Let $|G| = n$ and $m \mid n$. Define $G_m = \{g \in G : |g| = m\}$.
Suppose $G_m$ is not empty and let $g \in G_m$. By assumption, $x^m = e$ has at most $m$ solutions in $G$. Since each element of $\langle g \rangle$ is a solution, there cannot be more. From those, there are $\varphi(m)$ elements with order exactly $m$. This is a basic result on cyclic groups, where $\varphi$ is Euler's totient function.
It follows that $|G_m| = \varphi(m)$ if $G_m$ is not empty. If $G_m$ is empty, then $|G_m| = 0$. In general, $|G_m| \le \varphi(m)$.
Now we have: $$ n = |G| = \sum_{m \mid n} |G_m| \le \sum_{m \mid n}\varphi(m) = n $$
Therefore, the inequality is in fact an equality. This shows that $|G_n| = \varphi(n) > 0$. Hence $G$ is cyclic since it contains an element of order $n$.
Solution 2:
Short note. If $G$ is a $p$-group, the result is true. Indeed, if $|G|=p^k$, then if $G$ is not cyclic, it follows that every element in $G$ we have
$$x^{p^{k-1}}=e \,.$$
Thus this contradicts the statement with $m=p^{k-1}$.
Now, for abelian groups, by the structure Theorem, the group is a product of $p$ groups. Use the above result for each $p$ groups, and you are done.
In the non-abelian case, the above result shows that all the $p$-Syllow subgroups are cyclic. Moreover, $G$ can only have one $p$-syllow subgroup, otherwise you get more than $p^k$ solutions to $x^{p^k}=e$.
So the problem reduces to the following simple problem (which should be obvious, but it is not to me). If for every $p$, $G$ has an unique $p$ Syllow subgroup which is cyclic, is $G$ (abelian) cyclic?