Maths Olympiad Prep

Library / IMO Shortlist /297 of 365

IMO Shortlist, 2016

Number theory Difficulty 8.9 Shortlist Prove it IMO

Let aa be a positive integer which is not a square number. Denote by AA the set of all positive integers kk such that
k=x2−ax2−y2 k = \frac{x^{2} - a}{x^{2} - y^{2}}
for some integers xx and yy with x>ax > \sqrt{a}. Denote by BB the set of all positive integers kk such that (1) is satisfied for some integers xx and yy with 0⩽x<a0 \leqslant x < \sqrt{a}. Prove that A=BA = B.

Solutions — 3

Solution 1

We first prove the following preliminary result.
- Claim. For fixed kk, let x,yx, y be integers satisfying (1). Then the numbers x1,y1x_{1}, y_{1} defined by
x1=12(x−y+(x−y)2−4ax+y),y1=12(x−y−(x−y)2−4ax+y) x_{1} = \frac{1}{2}\left(x - y + \frac{(x - y)^{2} - 4a}{x + y}\right), \quad y_{1} = \frac{1}{2}\left(x - y - \frac{(x - y)^{2} - 4a}{x + y}\right)
are integers and satisfy (1) (with x,yx, y replaced by x1,y1x_{1}, y_{1} respectively).

Proof. Since x1+y1=x−yx_{1} + y_{1} = x - y and
x1=x2−xy−2ax+y=−x+2(x2−a)x+y=−x+2k(x−y), x_{1} = \frac{x^{2} - x y - 2a}{x + y} = -x + \frac{2(x^{2} - a)}{x + y} = -x + 2k(x - y),
both x1x_{1} and y1y_{1} are integers. Let u=x+yu = x + y and v=x−yv = x - y. The relation (1) can be rewritten as
u2−(4k−2)uv+(v2−4a)=0 u^{2} - (4k - 2) u v + (v^{2} - 4a) = 0
By Vieta's Theorem, the number z=v2−4auz = \frac{v^{2} - 4a}{u} satisfies
v2−(4k−2)vz+(z2−4a)=0 v^{2} - (4k - 2) v z + (z^{2} - 4a) = 0
Since x1x_{1} and y1y_{1} are defined so that v=x1+y1v = x_{1} + y_{1} and z=x1−y1z = x_{1} - y_{1}, we can reverse the process and verify (1) for x1,y1x_{1}, y_{1}.

We first show that B⊂AB \subset A. Take any k∈Bk \in B so that (1) is satisfied for some integers x,yx, y with 0⩽x<a0 \leqslant x < \sqrt{a}. Clearly, y≠0y \neq 0 and we may assume yy is positive. Since aa is not a square, we have k>1k > 1. Hence, we get 0⩽x<y<a0 \leqslant x < y < \sqrt{a}. Define
x1=12∣x−y+(x−y)2−4ax+y∣,y1=12(x−y−(x−y)2−4ax+y). x_{1} = \frac{1}{2}\left|x - y + \frac{(x - y)^{2} - 4a}{x + y}\right|, \quad y_{1} = \frac{1}{2}\left(x - y - \frac{(x - y)^{2} - 4a}{x + y}\right).
By the Claim, x1,y1x_{1}, y_{1} are integers satisfying (1). Also, we have
x1⩾−12(x−y+(x−y)2−4ax+y)=2a+x(y−x)x+y⩾2ax+y>a. x_{1} \geqslant -\frac{1}{2}\left(x - y + \frac{(x - y)^{2} - 4a}{x + y}\right) = \frac{2a + x(y - x)}{x + y} \geqslant \frac{2a}{x + y} > \sqrt{a}.
This implies k∈Ak \in A and hence B⊂AB \subset A.

Next, we shall show that A⊂BA \subset B. Take any k∈Ak \in A so that (1) is satisfied for some integers x,yx, y with x>ax > \sqrt{a}. Again, we may assume yy is positive. Among all such representations of kk, we choose the one with smallest x+yx + y. Define
x1=12∣x−y+(x−y)2−4ax+y∣,y1=12(x−y−(x−y)2−4ax+y). x_{1} = \frac{1}{2}\left|x - y + \frac{(x - y)^{2} - 4a}{x + y}\right|, \quad y_{1} = \frac{1}{2}\left(x - y - \frac{(x - y)^{2} - 4a}{x + y}\right).
By the Claim, x1,y1x_{1}, y_{1} are integers satisfying (1). Since k>1k > 1, we get x>y>ax > y > \sqrt{a}. Therefore, we have y1>4ax+y>0y_{1} > \frac{4a}{x + y} > 0 and 4ax+y<x+y\frac{4a}{x + y} < x + y. It follows that
x1+y1⩽max⁡{x−y,4a−(x−y)2x+y}<x+y x_{1} + y_{1} \leqslant \max \left\{x - y, \frac{4a - (x - y)^{2}}{x + y}\right\} < x + y
If x1>ax_{1} > \sqrt{a}, we get a contradiction due to the minimality of x+yx + y. Therefore, we must have 0⩽x1<a0 \leqslant x_{1} < \sqrt{a}, which means k∈Bk \in B so that A⊂BA \subset B.

The two subset relations combine to give A=BA = B.

Solution 2

The relation (1) is equivalent to
ky2−(k−1)x2=a k y^{2} - (k - 1) x^{2} = a
Motivated by Pell's Equation, we prove the following, which is essentially the same as the Claim in Solution 1.
- Claim. If (x0,y0)(x_{0}, y_{0}) is a solution to (2), then ((2k−1)x0±2ky0,(2k−1)y0±2(k−1)x0)((2k - 1)x_{0} \pm 2k y_{0}, (2k - 1)y_{0} \pm 2(k - 1)x_{0}) is also a solution to (2).

Proof. We check directly that
k((2k−1)y0±2(k−1)x0)2−(k−1)((2k−1)x0±2ky0)2=(k(2k−1)2−(k−1)(2k)2)y02+(k(2(k−1))2−(k−1)(2k−1)2)x02=ky02−(k−1)x02=a. \begin{aligned} & k\left((2k - 1)y_{0} \pm 2(k - 1)x_{0}\right)^{2} - (k - 1)\left((2k - 1)x_{0} \pm 2k y_{0}\right)^{2} \\ = & \left(k(2k - 1)^{2} - (k - 1)(2k)^{2}\right) y_{0}^{2} + \left(k(2(k - 1))^{2} - (k - 1)(2k - 1)^{2}\right) x_{0}^{2} \\ = & k y_{0}^{2} - (k - 1) x_{0}^{2} = a. \end{aligned}
If (2) is satisfied for some 0⩽x<a0 \leqslant x < \sqrt{a} and nonnegative integer yy, then clearly (1) implies y>xy > x. Also, we have k>1k > 1 since aa is not a square number. By the Claim, consider another solution to (2) defined by
x1=(2k−1)x+2ky,y1=(2k−1)y+2(k−1)x. x_{1} = (2k - 1)x + 2k y, \quad y_{1} = (2k - 1)y + 2(k - 1)x.
It satisfies x1⩾(2k−1)x+2k(x+1)=(4k−1)x+2k>xx_{1} \geqslant (2k - 1)x + 2k(x + 1) = (4k - 1)x + 2k > x. Then we can replace the old solution by a new one which has a larger value in xx. After a finite number of replacements, we must get a solution with x>ax > \sqrt{a}. This shows B⊂AB \subset A.

If (2) is satisfied for some x>ax > \sqrt{a} and nonnegative integer yy, by the Claim we consider another solution to (2) defined by
x1=∣(2k−1)x−2ky∣,y1=(2k−1)y−2(k−1)x. x_{1} = |(2k - 1)x - 2k y|, \quad y_{1} = (2k - 1)y - 2(k - 1)x.
From (2), we get ky>k−1x\sqrt{k} y > \sqrt{k - 1} x. This implies ky>k(k−1)x>(k−1)xk y > \sqrt{k(k - 1)} x > (k - 1)x and hence (2k−1)x−2ky<x(2k - 1)x - 2k y < x. On the other hand, the relation (1) implies x>yx > y. Then it is clear that (2k−1)x−2ky>−x(2k - 1)x - 2k y > -x. These combine to give x1<xx_{1} < x, which means we have found a solution to (2) with xx having a smaller absolute value. After a finite number of steps, we shall obtain a solution with 0⩽x<a0 \leqslant x < \sqrt{a}. This shows A⊂BA \subset B.

The desired result follows from B⊂AB \subset A and A⊂BA \subset B.

Solution 3

It suffices to show A∪BA \cup B is a subset of A∩BA \cap B. We take any k∈A∪Bk \in A \cup B, which means there exist integers x,yx, y satisfying (1). Since aa is not a square, it follows that k≠1k \neq 1. As in Solution 2, the result follows readily once we have proved the existence of a solution (x1,y1x_{1}, y_{1}) to (1) with ∣x1∣>∣x∣|x_{1}| > |x|, and, in case of x>ax > \sqrt{a}, another solution (x2,y2x_{2}, y_{2}) with ∣x2∣<∣x∣|x_{2}| < |x|.

Without loss of generality, assume x,y⩾0x, y \geqslant 0. Let u=x+yu = x + y and v=x−yv = x - y. Then u⩾vu \geqslant v and (1) becomes
k=(u+v)2−4a4uv k = \frac{(u + v)^{2} - 4a}{4u v}
This is the same as
v2+(2u−4ku)v+u2−4a=0 v^{2} + (2u - 4k u)v + u^{2} - 4a = 0
Let v1=4ku−2u−vv_{1} = 4k u - 2u - v. Then u+v1=4ku−u−v⩾8u−u−v>u+vu + v_{1} = 4k u - u - v \geqslant 8u - u - v > u + v. By Vieta's Theorem, v1v_{1} satisfies
v12+(2u−4ku)v1+u2−4a=0 v_{1}^{2} + (2u - 4k u)v_{1} + u^{2} - 4a = 0
This gives k=(u+v1)2−4a4uv1k = \frac{(u + v_{1})^{2} - 4a}{4u v_{1}}. As kk is an integer, u+v1u + v_{1} must be even. Therefore, x1=u+v12x_{1} = \frac{u + v_{1}}{2} and y1=v1−u2y_{1} = \frac{v_{1} - u}{2} are integers. By reversing the process, we can see that (x1,y1)(x_{1}, y_{1}) is a solution to (1), with x1=u+v12>u+v2=x⩾0x_{1} = \frac{u + v_{1}}{2} > \frac{u + v}{2} = x \geqslant 0. This completes the first half of the proof.

Suppose x>ax > \sqrt{a}. Then u+v>2au + v > 2\sqrt{a} and (3) can be rewritten as
u2+(2v−4kv)u+v2−4a=0 u^{2} + (2v - 4k v)u + v^{2} - 4a = 0
Let u2=4kv−2v−uu_{2} = 4k v - 2v - u. By Vieta's Theorem, we have uu2=v2−4au u_{2} = v^{2} - 4a and
u22+(2v−4kv)u2+v2−4a=0 u_{2}^{2} + (2v - 4k v)u_{2} + v^{2} - 4a = 0
By u>0,u+v>2au > 0, u + v > 2\sqrt{a} and (3), we have v>0v > 0. If u2⩾0u_{2} \geqslant 0, then vu2⩽uu2=v2−4a<v2v u_{2} \leqslant u u_{2} = v^{2} - 4a < v^{2}. This shows u2<v⩽uu_{2} < v \leqslant u and 0<u2+v<u+v0 < u_{2} + v < u + v. If u2<0u_{2} < 0, then (u2+v)+(u+v)=4kv>0(u_{2} + v) + (u + v) = 4k v > 0 and u2+v<u+vu_{2} + v < u + v imply ∣u2+v∣<u+v|u_{2} + v| < u + v. In any case, since u2+vu_{2} + v is even from (4), we can define x2=u2+v2x_{2} = \frac{u_{2} + v}{2} and y2=u2−v2y_{2} = \frac{u_{2} - v}{2} so that (1) is satisfied with ∣x2∣<x|x_{2}| < x, as desired. The proof is thus complete.

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.