Skip to main content
OlympiadHQ

Browse · MathNet

Print

SELECTION and TRAINING SESSION

Belarus number theory

Problem

Find all positive integers such that for some primes and .
Solution
(Solution by V. Vityaz.) First, otherwise from we would have which gives , which is not prime.

Hence (1) implies , so , . Eliminating we obtain The discriminant of this equation is equal to and must be a perfect square. Note that for . Hence But the last equation has no integer roots.

If , then (2) becomes , which is not prime. Note that is odd since is odd. If , then (2) has no integer solutions. If , then (2) becomes , then , , and .
Final answer
2015

Techniques

Techniques: modulo, size analysis, order analysis, inequalitiesQuadratic functions