I'm currently reading John B. Fraleigh's 'A First Course In Abstract Algebra'. I got stuck on question $47$, section $10$. First I tried sitting with it for a few ours, and sadly didn't get very far, so I went and looked up the solution. Now, the problem is that I don't believe that I quite understand everything in it.
The excercise goes: Let $G$ be a finite group. Show that if for each positive integer $m$ the number of solutions $x$ of the equations $x^m=e$ in $G$ is at most $m$, then $G$ is cyclic.
The answer goes: Let $d$ be a divisor of $n=|G|$. Now if $G$ contains a subgroup of order $d$, then each element of that subgroup satisfies the equation $x^d=e$. $\rm \color{purple}{By\ the\ hypothesis\ that}$ $x^m=e$ $\rm \color{purple}{has\ at\ most}$ $m$ $\rm \color{purple}{solutions\ in}$ $G$, $\rm \color{purple}{we\ see\ that\ there\ can\ be\ at\ most\ one\ subgroup\ of\ each\ order}$ $d$ $\rm \color{purple}{dividing}$ $n$. Now each $a\in G$ has some order $d$ dividing $n$, and $\langle a \rangle$ has exactly $ϕ(d)$ generators. Because $\langle a \rangle$ must be the only subgroup of order d, we see that the number of elements of order d for each divisor d of n cannot exceed $ϕ(d)$. Thus we have $$n = \sum_{d|n} (number\; of\; elements\; of\; G\; of\; order\; d) \le \sum_{d|n} \phi(d)=n$$ This shows that $G$ must have exactly $ϕ(d)$ elements of each order $d$ dividing $n$, $\rm \color{purple}{and\ thus\ must\ have}$ $ϕ(n) \ge 1$ $\rm \color{purple}{elements\ of\ order}$ $n$. Hence $G$ is cyclic.
The things that I have trouble understanding are the written in purple.
Thank you very much.