I've been struggling for a while so I ask your help. I sort of have the ''tools'' but I don't know how to apply them. Aside of that I'm not sure if I'm understanding the exercise correctly.
Find the numbers of solutions of the equation $x^k = 1$ and the number of elements of order $k$ in the group $C_{180}$ with:
$a)$ $k = 7$.
$b)$ $k = 36$.
As far as I understand the solutions of $x^k = 1$ would be all the generators in $C_{180}$.
THE FIRST PART
Find the numbers of solutions of the equation $x^k = 1$ in the cyclic group $C_{180}$
An element $x^k$ is a generator of $C_{180}$ iff $\mathrm{gcd}(n,k) = 1$. So the total number of solutions to this equation for $n = 180$ is
\begin{align} \phi(180) &= \phi(3^22^25)\\ &=\phi(3^2)\phi(2^2)\phi(5)\\ &= (3^2-3)(2^2-2)(5-1)\\ &=72 \end{align}
SECOND PART
Find the number of elements of order $k$ in the group $C_{180}$.
Honestly I don't know how to proceed. Anyway, below I write some thoughts:
$(\ast)$ For $k = 7$.
Here I'm confused. In one hand we have that $\gcd(180,7) = 1$, so $x^7$ is a generator in $C_{180}$, and $|x^7| = \frac{180}{\gcd(180,7)} = 180$. What does this mean?
$(\ast)$ For $k = 36$.
I took a look at this post. According to the most voted answer, since $36|180$ we have that there are $\phi(36) = 12$ elements, but I'm not able to understand why.
Thanks for any help.