Let $p\neq 2$ be a prime and let $a$ be a primitive root modulo $p^k$ satisfying $p^k|a^{p^k-1}-1$ and $p^k\nmid a^{\dfrac{p^k-1}{q}}-1$ for all prime divisors $q$ of $p^k-1$. Then $k=1$.
I was reading a solution to a contest problem and the above statement was used, but the proof was omitted... I don't see a solution, could you help?
According to the question, we have $$a^{p^k-1} \equiv 1 \ \mbox{mod} \ p^k$$ So the order divides $p^k-1$. We know that $a$ is a primitive root, so the order of $a$ must be $\phi(p^k)=p^k-p^{k-1}$, as it generates the group under multiplication. So $p^k-p^{k-1} \mid p^k-1$ However, it must be the case that they are equal, otherwise we contradicts the last assumption the question makes, with equality at $k=1$. Therefore $k=1$.