I’m new to number theory and I’m solving questions in the textbook one by one. Here is one : If $m\geq 1$ and $n\geq2$ , which both of them are natural numbers , prove this statement:
$$(n-1)^2 | (n^m-1) \iff (n-1)| m.$$
This is my approach : I started from the left part of the statement; I used $$(a^n-b^n)=(a-b)(a^{n-1}+a^{n-2}b+...+b^{n-1}),$$ to expand $n^m-1$ in the statement , Then used geometric series sum and I came to this : $$1|n^m-1$$
And I don’t know how to continue this .
I’m looking for a hint , and not an answer. Give me an answer and you’ll be cursed :)
Thank you in advance.