Given is the number $n$ which is divisible by the square of a prime number $p$. Let a positive integer $a$ be euler-course when $n\mid (a^n -a)/a$. Show that $(1,2, ...,n)$ has at most $\varphi(n)/2$ of $\varphi(n)$-course numbers.
I was trying to solve this using primitive roots, by looking at the primitive root of $p^2$, but I couldn't quite do it.
Any hints or solutions are greatly appreciated.