I'm reading the proof of a theorem in Fundamentals of Group Theory An Advanced Approach by Steven Roman.
(Characterization by subgroups) If a finite group $G$ of order $n$ has the property that it has at most one subgroup of each order $d\mid n,$ then $G$ is cyclic (and therefore has exactly one subgroup of each order $d\mid n$ ).
Here $o(a)$ is the order of $a$ and $\phi(d)$ is the number of elements of order $d$.
Because the order of a subgroup must be a divisor of that of a group, I get $$n=\sum_{d \in D} \phi(d) = \sum_{d \mid n} \phi(d)$$ Then I'm stuck at getting how $\phi(n) > 0$.
Could you please elaborate on this point?
