I'm trying to show that $a^p \equiv 1$ (mod $p^n$) $\Rightarrow a \equiv 1$ (mod $p^{n-1}$), where $p$ is an odd prime.
Since $a^p \equiv 1$ (mod $p^n$) $\iff aa^{p-1} \equiv 1$ (mod $p^{n-1}p$), I was hoping to use Fermat's theorem, which states that $a^{p-1} \equiv 1$ (mod $p$). I therefore tried substituting $a^{p-1}$ with $pk + 1$ in the equation but I didn't manage to solve it like that.
I've been trying to solve it algebraically for some time but is no where close so I could use some help and ideas.