Maths Olympiad Prep

Library / /45 of 55

, 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=x2ax2y2 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 0x<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(xy+(xy)24ax+y),y1=12(xy(xy)24ax+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=xyx_{1} + y_{1} = x - y and
x1=x2xy2ax+y=x+2(x2a)x+y=x+2k(xy), 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=xyv = x - y. The relation (1) can be rewritten as
u2(4k2)uv+(v24a)=0 u^{2} - (4k - 2) u v + (v^{2} - 4a) = 0
By Vieta's Theorem, the number z=v24auz = \frac{v^{2} - 4a}{u} satisfies
v2(4k2)vz+(z24a)=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=x1y1z = x_{1} - y_{1}, we can reverse the process and verify (1) for x1,y1x_{1}, y_{1}.

We first show that BAB \subset A. Take any kBk \in B so that (1) is satisfied for some integers x,yx, y with 0x<a0 \leqslant x < \sqrt{a}. Clearly, y0y \neq 0 and we may assume yy is positive. Since aa is not a square, we have k>1k > 1. Hence, we get 0x<y<a0 \leqslant x < y < \sqrt{a}. Define
x1=12xy+(xy)24ax+y,y1=12(xy(xy)24ax+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
x112(xy+(xy)24ax+y)=2a+x(yx)x+y2ax+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 kAk \in A and hence BAB \subset A.

Next, we shall show that ABA \subset B. Take any kAk \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=12xy+(xy)24ax+y,y1=12(xy(xy)24ax+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+y1max{xy,4a(xy)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 0x1<a0 \leqslant x_{1} < \sqrt{a}, which means kBk \in B so that ABA \subset B.

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

Solution 2

The relation (1) is equivalent to
ky2(k1)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 ((2k1)x0±2ky0,(2k1)y0±2(k1)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((2k1)y0±2(k1)x0)2(k1)((2k1)x0±2ky0)2=(k(2k1)2(k1)(2k)2)y02+(k(2(k1))2(k1)(2k1)2)x02=ky02(k1)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 0x<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=(2k1)x+2ky,y1=(2k1)y+2(k1)x. x_{1} = (2k - 1)x + 2k y, \quad y_{1} = (2k - 1)y + 2(k - 1)x.
It satisfies x1(2k1)x+2k(x+1)=(4k1)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 BAB \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=(2k1)x2ky,y1=(2k1)y2(k1)x. x_{1} = |(2k - 1)x - 2k y|, \quad y_{1} = (2k - 1)y - 2(k - 1)x.
From (2), we get ky>k1x\sqrt{k} y > \sqrt{k - 1} x. This implies ky>k(k1)x>(k1)xk y > \sqrt{k(k - 1)} x > (k - 1)x and hence (2k1)x2ky<x(2k - 1)x - 2k y < x. On the other hand, the relation (1) implies x>yx > y. Then it is clear that (2k1)x2ky>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 0x<a0 \leqslant x < \sqrt{a}. This shows ABA \subset B.

The desired result follows from BAB \subset A and ABA \subset B.

Solution 3

It suffices to show ABA \cup B is a subset of ABA \cap B. We take any kABk \in A \cup B, which means there exist integers x,yx, y satisfying (1). Since aa is not a square, it follows that k1k \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,y0x, y \geqslant 0. Let u=x+yu = x + y and v=xyv = x - y. Then uvu \geqslant v and (1) becomes
k=(u+v)24a4uv k = \frac{(u + v)^{2} - 4a}{4u v}
This is the same as
v2+(2u4ku)v+u24a=0 v^{2} + (2u - 4k u)v + u^{2} - 4a = 0
Let v1=4ku2uvv_{1} = 4k u - 2u - v. Then u+v1=4kuuv8uuv>u+vu + v_{1} = 4k u - u - v \geqslant 8u - u - v > u + v. By Vieta's Theorem, v1v_{1} satisfies
v12+(2u4ku)v1+u24a=0 v_{1}^{2} + (2u - 4k u)v_{1} + u^{2} - 4a = 0
This gives k=(u+v1)24a4uv1k = \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=v1u2y_{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=x0x_{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+(2v4kv)u+v24a=0 u^{2} + (2v - 4k v)u + v^{2} - 4a = 0
Let u2=4kv2vuu_{2} = 4k v - 2v - u. By Vieta's Theorem, we have uu2=v24au u_{2} = v^{2} - 4a and
u22+(2v4kv)u2+v24a=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 u20u_{2} \geqslant 0, then vu2uu2=v24a<v2v u_{2} \leqslant u u_{2} = v^{2} - 4a < v^{2}. This shows u2<vuu_{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=u2v2y_{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,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.