Skip to main content
OlympiadHQ

Browse · MathNet

Print

49th Mathematical Olympiad in Ukraine

Ukraine number theory

Problem

Find all prime and natural , that satisfy the equation:
Solution
Let us rewrite our equation in the following way: . Since is prime, we have that or .



2) , so . If , then . Analogously, , which implies that or . Number is odd, thus . For we have that which is impossible.

It remains to consider the cases . It can be easily seen that in these cases there're no other solutions.
Final answer
p=5, m=8

Techniques

Prime numbersFactorization techniquesTechniques: modulo, size analysis, order analysis, inequalities