Skip to main content
OlympiadHQ

Browse · MathNet

Print

Balkan Mathematical Olympiad

number theory

Problem

Determine all quadruplets of positive integers, such that
Solution
Consider equation modulo . We have , and , so must be odd. Also, , which implies , .

Consider equation modulo . We have , so . Now, if we consider equation modulo we get (by FLT) , so . Therefore, we need to examine the following two cases:

First case: and , i.e. and . Then , , so , and , so . Since is even this implies . Also, , so and it follows that . Then , , and , so , . Now , since and . Considering modulo , equation becomes , and it is enough to check residues of , and . Both of them give the set of residues . Since there are no two number in this set with difference or modulo , equation does not have any solutions in this case.

Second case: and , i.e. and . Then , so . Now, and , or and (i.e. ). If and , then . Since , we have that , and therefore , . Now, considering equation modulo we obtain , and , which implies . This is not possible since is odd. So, , , and the equation is equivalent to . Suppose . Then , so . Therefore , which implies . Since , we have . Now, it is easy to check that . On the other hand, by FLT, we have . Then . Also , so which is a contradiction.

So , which leads to the only solution of the equation .
Final answer
(1, 3, 2, 1)

Techniques

Techniques: modulo, size analysis, order analysis, inequalitiesFermat / Euler / Wilson theoremsMultiplicative order