In an answer here, it is said without proof that if $p$ is a prime and $n$ an integer, the order of $p$ in $(\Bbb Z/(p^n-1)\Bbb Z)^\times$ is $n$.
I tried to prove that, and it boils down to the equivalence $$p^n-1|p^k-1 \iff n|k$$.
While the $\Leftarrow$ part is not a problem, how can I prove the converse ?