Show that $(n-1)^2\vert n^k-1$ if and only if $n-1\vert k$, for naturals $n,k$.
I couldn't go much further, the only thing that i could conclude is that $n-1\vert n^k-1$, since it is true that $a-b\vert a^k-b^k$ for all natural $k$. Now i can't proceed from here.
Any hints on this question?