My Number Theory book says that for $n, m$ be positive integers and $a>1$, then
$(a^n -1)\mid(a^m -1)$ if and only if $n\mid m$.
I understand the proof for only if part, but in if part the autor says "it is clear". However a tried to prove that but a get stuck. Can you give a hint?