Skip to main content
OlympiadHQ

Browse · MathNet

Print

Estonian Math Competitions

Estonia number theory

Problem

Prove that is prime for no integers .
Solution
Note that . If then also . Otherwise, consider modulo . A case study shows that if is congruent to , , , , or , then is congruent to , and in all other cases, is congruent to . Hence whenever . This implies that and because and . Consequently, , implying that . Thus cannot be prime since obviously .

Techniques

Fermat / Euler / Wilson theoremsPrime numbersFactorization techniques