The Fermat little theorem states that if is a prime number, then for every integer . Equivalently, for , .
To prove it when , multiplication by permutes the nonzero residues . Indeed, implies , and the Euclid lemma implies in this range. Multiplying all these residues gives
None of the factors of is divisible by , so the factorial has a modular inverse. Cancelling it proves , hence . When , the latter identity has both sides zero, completing the proof.
For an odd prime number , the numbers are coprime. The Fermat little theorem gives , and consequently
These exponents are distinct, so infinitely many are obtained.
Write the repdigit with copies of as
If , choose to be any positive multiple of . Then has a modular inverse modulo , so . Division by cannot be used modulo ; instead gives , so for every . If , every is divisible by . Thus
The separate treatment of accounts for the prime factor of the geometric-sum denominator.

Articles by others on the same topic (0)

There are currently no matching articles.