Maths Olympiad Prep

Library / HMMT February /631 of 1302

HMMT February, 2019

Number theory Difficulty 5.3 AIME, harder Prove it United States

Problem:
How many pairs of integers (x,y)(x, y) are there such that ∣x2−2y2∣≤1|x^{2}-2 y^{2}| \leq 1 and ∣3x−4y∣≤1|3 x-4 y| \leq 1?

Solution

Solution:
Note that if (x,y)(x, y) is a solution, so is (−x,−y)(-x,-y). Thus, we consider x≥0x \geq 0.

When x≡0(mod4)x \equiv 0 \pmod{4}, y=3x/4y = 3x/4 by inequality 2. Inequality 1 gives ∣x2/9∣≤1|x^{2}/9| \leq 1, so x≤3x \leq 3, so x=0x = 0.

When x≡1(mod4)x \equiv 1 \pmod{4}, y=(3x+1)/4y = (3x+1)/4 by inequality 2. Beyond x=1x = 1, 2y2−x2>12y^{2} - x^{2} > 1, so there are no more solutions.

When x≡2(mod4)x \equiv 2 \pmod{4}, there are no solutions for yy.

When x≡3(mod4)x \equiv 3 \pmod{4}, y=(3x−1)/4y = (3x-1)/4 by inequality 2. Beyond x=7x = 7, 2y2−x2>12y^{2} - x^{2} > 1, so there are no more solutions.

Thus, the solutions are (0,0),(1,1),(3,2),(7,5)(0,0), (1,1), (3,2), (7,5), and the negations of the latter three, giving 7 solutions.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.