Skip to main content
OlympiadHQ

Browse · MathNet

Print

SAUDI ARABIAN MATHEMATICAL COMPETITIONS

Saudi Arabia number theory

Problem

1. Let be an odd prime number. a. Show that divides for infinitely many positive integers . b. Find all satisfying the condition above when .
Solution
a. We will show that for all , the number satisfies . Indeed, by Fermat's Little Theorem, we have And then Since there are infinitely many numbers of the form , we get the conclusion.

b. Notice that is periodic modulo , with a period of , and is periodic modulo , with period . Hence, is periodic, with period (at most) , and only the first positive integers need to be analyzed. The answer is or .
Final answer
Infinitely many n exist; for example, all n of the form (p k + 1)(p − 1). For p = 3, all positive integers congruent to 1 or 2 modulo 6.

Techniques

Fermat / Euler / Wilson theoremsMultiplicative orderDivisibility / Factorization