-1

I’m super new to number theory and here is a question from a textbook:

Prove this : if $1\le m$ and $2\le n$ ,m and n are natural numbers then we have : $$(n-1)^2|(n^m-1) \iff (n-1)|m$$

I even appreciate a hint or guiding me through the answer.

Bill Dubuque
  • 282,220

1 Answers1

2

Factorize the value of $n^m-1$ as below: $$(n-1)(n^{m-1}+n^{m-2}+\cdots+n+1)$$ Now, the second factor has to be divisible by $(n-1)$. It has $m$ terms. All of them are $1 \bmod{(n-1)}$. Can you complete the proof? Can you use this same factorization to show the converse?

Haran
  • 11,978
  • 1
  • 19
  • 56