Im working on this Exercise
I can do do part b) but Im stuck on part c).
I know that if $e$ is a positive factor of $p-1$ then the equation: $$X^e \equiv 1 \quad \textrm{mod p} $$ has exactly $e$ solutions modulo $p$, the proof of which involves Fermat's Little Theorem and Lagrange's Theorem so I think it may be relevant but I don't know how to apply it.
Any suggestions?