I am trying assignment and I am unable to think about this problem. Can someone please help. 

> 
> Question is -> prove that $ (n-1)^2 $ divides $ n^k -1$ iff (n-1) divides k. 
> 
> 
> 

I shall be really grateful.