Baltic Way 2024 · Problem 20
Number Theory
Positive integers and satisfy the system of equations
(a) Prove that is a perfect square. (b) Find all such triples .
When you’re ready
Review material becomes available with the next Daily.
Review
Topics
Diophantine equations
Solutions
Solution 1
(a) Rearranging terms in the first equation gives
By substituting into the right-hand side and rearranging the terms we get
By adding to both sides and factorizing we get
Now it is obvious that has to be a square of an integer. (b) Let us say , where and is an integer. Then substituting this into the equation (10) and taking the square root of both sides (we can do that as all the terms are positive) we get
We can rearrange it to , which immediately tells us that either or . Note that in either case . Substituting this into the second equation of the given system we get , implying (as .
- If , then gives , so or , neither of which gives a positive , so cannot be a solution.
- If , then gives , so . The only positive solution is which gives . Substituting it once again into both equations we indeed get a solution.
Solution 2
(a) Substituting from the second equation to the first one gives
Rearranging terms in the obtained equation gives
which we can consider as a quadratic equation in . Its discriminant is
To have solutions in integers, must be a perfect square. Note that and can have no common odd prime factors. Hence is a power of 2 , so and are either both perfect squares or both twice of some perfect squares. In the first case, we are done. In the second case, note that
so must be modulo 5 . On the other hand, twice of a perfect square is modulo 5 . Consequently, and , the latter of which implies . This leads to contradiction since and cannot be both divisible by 5 . (b) By the solution of part (a), both and are perfect squares. However, due to we have , and for we also have . Thus is located between two consecutive perfect squares, which gives a contradiction with it being a square itself. Out of , only makes a perfect square. In this case, the quadratic equation yields , so or or . Out of those, only satisfies the equations. Remark: Part (a) of the problem can be solved yet another way. By substituting from the second equation to the first one, we obtain
Whenever an integer divides , it also divides . Therefore and . But then , i.e., divides . Thus the greatest common divisor of and divides 4 , i.e., it is either 1,2 or 4 . In the first and third case we are done. If their greatest common divisor is 2 , then clearly all three of are odd, so . Thus from the second equation we have , so is divisible by 64 . Now, if , then , which means that , giving a contradiction with being divisible by 64 . If instead , then . This means that both and are divisible by 4 , giving a contradiction with the assumption that their greatest common divisor is 2 . Therefore must be a perfect square.
Contest context
Results from Baltic Way 2024
11 teams
- Mean score
- 1.1 / 5
- Scores of 4 or 5
- 1 / 11
- Estonia
- 2 / 5
Score distribution
All team scores
| Team | Score |
|---|---|
| Poland | 0 / 5 |
| Estonia | 2 / 5 |
| Germany | 0 / 5 |
| Ukraine | 0 / 5 |
| Latvia | 5 / 5 |
| Norway | 0 / 5 |
| Lithuania | 3 / 5 |
| Sweden | 2 / 5 |
| Denmark | 0 / 5 |
| Finland | 0 / 5 |
| Iceland | 0 / 5 |