Skip to main content
OlympiadHQ

Browse · MathNet

Print

41st Balkan Mathematical Olympiad

number theory

Problem

Let be positive integers such that and are all perfect squares. Prove that is also a perfect square.
Solution
Let , where are positive integers. We prove the result by induction on . Define which is an integer as is a perfect square. Define . We will now prove the following: is a perfect square (noting that it follows immediately from the construction that are perfect squares.) * We will then be done by induction as by repeatedly applying this process, we preserve the and must eventually reach a case with which we have proved above. For the first part, where the inequality is strict since . Furthermore, leading to So and therefore .

For the second part, expanding the definition of we get: We can rearrange this to: which shows is a perfect square. For the final part, note that if and then from (2), . Then from (1) we have: Thus . Setting , we see that . But the condition we're using in (1) is symmetric in and so in a similar way we get . Combining, we must have .

---

Alternative solution.

Using the notation from the solution above, define then, as is a perfect square, there exists positive integers with such that: Then the pairs and satisfy the Pell equation: If is the fundamental solution to this equation, then all other solutions are generated from the recurrences: and in particular, for all . Thus and hence so . But then, considering the fundamental solution: as required.

Techniques

Greatest common divisors (gcd)Pell's equationsInfinite descent / root flipping