Maths Olympiad Prep

Library / /69 of 106

Number theory Difficulty 8.5 Shortlist Prove it China

Determine all pairs of positive integers (a,b)(a, b) such that
a22ab2b3+1 \frac{a^2}{2ab^2 - b^3 + 1}
is a positive integer.

Solutions — 2

Solution 1

Solution I Let (a,b)(a, b) be a pair of positive integers satisfying the condition. Since k=a22ab2b3+1>0k = \frac{a^2}{2ab^2 - b^3 + 1} > 0, we have 2ab2b3+1>02ab^2 - b^3 + 1 > 0 or a>b212b2a > \frac{b}{2} - \frac{1}{2b^2}, and hence ab2a \ge \frac{b}{2}. Using this, we infer from k1k \ge 1, or a2b2(2ab)+1a^2 \ge b^2(2a-b)+1, that a2>b2(2ab)0a^2 > b^2(2a-b) \ge 0. Hence
a>b or 2a=b.1 a > b \text{ or } 2a = b. \qquad \textcircled{1}
Now consider the two solutions a1,a2a_1, a_2 of the equation
a22kb2a+k(b31)=02 a^2 - 2kb^2a + k(b^3 - 1) = 0 \qquad \textcircled{2}
for any fixed positive integers kk and bb, and assume that one of them is an integer. Then the other is also an integer because a1+a2=2kb2a_1 + a_2 = 2kb^2. We may assume that a1a2a_1 \ge a_2, and we have a1kb2>0a_1 \ge kb^2 > 0. Furthermore, since a1a2=k(b31)a_1 a_2 = k(b^3 - 1), we get
0a2=k(b31)a1k(b31)kb2<b. 0 \le a_2 = \frac{k(b^3 - 1)}{a_1} \le \frac{k(b^3 - 1)}{kb^2} < b.
Together with (1), we conclude that a2=0a_2 = 0 or a2=b2a_2 = \frac{b}{2} (in the latter case bb must be even).
If a2=0a_2 = 0, then b31=0b^3 - 1 = 0, and hence a1=2ka_1 = 2k and b=1b = 1.
If a2=b2a_2 = \frac{b}{2}, then k=b24k = \frac{b^2}{4} and a1=b42b2a_1 = \frac{b^4}{2} - \frac{b}{2}.
Therefore the only possibilities are
(a,b)=(2l,1),(l,2l) or (8l4l,2l) (a, b) = (2l, 1), (l, 2l) \text{ or } (8l^4 - l, 2l)
for some positive integer ll. All of these pairs satisfy the given condition.

Solution II If b=1b=1, it follows from the given condition that aa must be even.
Let a22ab2b3+1=k\frac{a^2}{2ab^2 - b^3 + 1} = k. If b>1b > 1, then there are two solutions to the equation (②) and one of them is a positive integer. Thus the discriminant Δ\Delta of the equation (②) is a perfect square, that is Δ=4k2b44k(b31)\Delta = 4k^2b^4 - 4k(b^3 - 1) is a perfect square.
Note that, if b2b \ge 2, we have
(2kb2b1)2<Δ<(2kb2b+1)2.3 (2kb^2 - b - 1)^2 < \Delta < (2kb^2 - b + 1)^2. \quad \textcircled{3}
The proof is given as follows,
Δ(2kb2b1)2=4kb2b22b+4k1=(4k1)(b2+1)2b2(4k1)b2b>0, \begin{align*} \Delta - (2kb^2 - b - 1)^2 &= 4kb^2 - b^2 - 2b + 4k - 1 \\ &= (4k - 1)(b^2 + 1) - 2b \\ &\ge 2(4k - 1)b - 2b > 0, \end{align*}
(2kb2b+1)2Δ=4kb24k(b1)2=4k(b21)(b1)2>(4k1)(b21)>0, \begin{align*} (2kb^2 - b + 1)^2 - \Delta &= 4kb^2 - 4k - (b-1)^2 \\ &= 4k(b^2 - 1) - (b-1)^2 \\ &> (4k-1)(b^2-1) > 0, \end{align*}
this completes the proof of (3).
Since Δ\Delta is a perfect square, it follows from (3) that
Δ=4k2b44k(b31)=(2kb2b)2. \Delta = 4k^2b^4 - 4k(b^3 - 1) = (2kb^2 - b)^2.
Then 4k=b24k = b^2, and hence bb must be even. Let b=2lb = 2l. We have k=l2k = l^2. Together with ②, we have a=la = l or 8l4l8l^4 - l.
Therefore the only possibilities are
(a,b)=(2l,1),(l,2l) or (8l4l,2l)(a, b) = (2l, 1), (l, 2l) \text{ or } (8l^4 - l, 2l)
for some positive integer ll. All of these pairs satisfy the given condition.

Solution 2

First Solution. (Based on work by Anders Kaseorg) Rewrite equation ()(*) as a22ab2k=b3k+ka^2 - 2ab^2k = -b^3k + k. Adding b4k2b^4k^2 to both sides completes the square on the left-hand side and gives
(kb2a)2=b4k2b3k+k, (kb^2 - a)^2 = b^4k^2 - b^3k + k,
or
(2kb22a)2=(2b2k)22b(2b2k)+4k. (2kb^2 - 2a)^2 = (2b^2k)^2 - 2b(2b^2k) + 4k.
Completing the square on the right-hand side gives
(2kb22a)2=(2b2kb)2+4kb2. (2kb^2 - 2a)^2 = (2b^2k - b)^2 + 4k - b^2.
or,
y2x2=4kb2, y^2 - x^2 = 4k - b^2,
where x=2kb2bx = 2kb^2 - b and y=2kb22ay = 2kb^2 - 2a.
If 4k=b24k = b^2, then either x=yx = y or x=yx = -y. In the former case, b=2ab = 2a; in the latter case, 4kb2b=2a4kb^2 - b = 2a, that is, b4b=2ab^4 - b = 2a. Because k=b2/4k = b^2/4 is an integer if and only if bb is even, we get the solutions
(b2,b)and(b4b2,b) \left(\frac{b}{2}, b\right) \quad \text{and} \quad \left(\frac{b^4 - b}{2}, b\right)
for any even bb; that is, (a,b)=(t,2t)(a, b) = (t, 2t) and (a,b)=(8t4t,2t)(a, b) = (8t^4 - t, 2t) for all positive integers tt.
If 4k<b24k < b^2, then y2<x2y^2 < x^2, so y2(x1)2y^2 \le (x-1)^2 (since xx is clearly positive). Thus,
4kb2(x1)2x2=2x+1=4kb2+2b+1, 4k - b^2 \le (x - 1)^2 - x^2 = -2x + 1 = -4kb^2 + 2b + 1,
or, 4k(b2+1)b2+2b+1<3b2+14k(b^2 + 1) \le b^2 + 2b + 1 < 3b^2 + 1. Because 4k>34k > 3, this is a contradiction.
Similarly, if 4k>b24k > b^2, then y2>x2y^2 > x^2, so y2(x+1)2y^2 \ge (x+1)^2. Thus,
4kb2(x+1)2x2=2x+1=4kb22b+1, 4k - b^2 \ge (x + 1)^2 - x^2 = 2x + 1 = 4kb^2 - 2b + 1,
or 4k(b21)+(b1)204k(b^2 - 1) + (b - 1)^2 \le 0. We must have b=1b = 1 and
k=a22a1+1=a2. k = \frac{a^2}{2a - 1 + 1} = \frac{a}{2}.
This is an integer whenever aa is even, so we get the solutions (a,b)=(2t,1)(a, b) = (2t, 1) for all positive integers tt.

Second Solution. (Based on work by Po-Ru Loh) Assume that b=1b = 1. Then
a22ab2b3+1=a22a=a2 \frac{a^2}{2ab^2 - b^3 + 1} = \frac{a^2}{2a} = \frac{a}{2}
is a positive integer if and only if aa is even. Thus, (a,b)=(2t,1)(a, b) = (2t, 1) are solutions of the problem for all positive integers tt.
Now we assume that b>1b > 1. Viewing equation ()(*) as a quadratic in aa, replace aa by xx to consider the equation
x22b2kx+(b31)k=0() x^2 - 2b^2kx + (b^3 - 1)k = 0 \quad (*)'
for fixed positive integers bb and kk. Its roots are
x=2b2k±4b4k24b3k+4k2=b2k±b4k2b3k+k. x = \frac{2b^2k \pm \sqrt{4b^4k^2 - 4b^3k + 4k}}{2} = b^2k \pm \sqrt{b^4k^2 - b^3k + k}.
Assume that x1=ax_1 = a is an integer root of equation ()(*'). Then b4k2b3k+kb^4k^2 - b^3k + k must be a perfect square. We claim that
(b2kb212)2<b4k2b3k+k<(b2kb2+12)2. \left(b^2k - \frac{b}{2} - \frac{1}{2}\right)^2 < b^4k^2 - b^3k + k < \left(b^2k - \frac{b}{2} + \frac{1}{2}\right)^2.
Note first that
(b2kb212)2=b4k22b2k(b2+12)2+14(b+1)2=b4k2b3kb2k+14(b+1)2. \begin{aligned} \left(b^2 k - \frac{b}{2} - \frac{1}{2}\right)^2 &= b^4 k^2 - 2b^2 k \left(\frac{b}{2} + \frac{1}{2}\right)^2 + \frac{1}{4}(b+1)^2 \\ &= b^4 k^2 - b^3 k - b^2 k + \frac{1}{4}(b+1)^2. \end{aligned}
To establish the first inequality in our claim, it suffices to show that
b2k+14(b+1)2<k, -b^2 k + \frac{1}{4}(b+1)^2 < k,
or, (b+1)2<4(b2+1)k(b+1)^2 < 4(b^2+1)k, which is evident as (b+1)2<2(b2+1)(b+1)^2 < 2(b^2+1) and k1k \ge 1.
Note also that
(b2kb2+1)2=b4k2+2b2k(12b2)+14(1b)2>b4k2b3k+b2k>b4k2b3k+k,as b>1, \begin{aligned} \left(b^2 k - \frac{b}{2} + 1\right)^2 &= b^4 k^2 + 2b^2 k \left(\frac{1}{2} - \frac{b}{2}\right) + \frac{1}{4}(1-b)^2 \\ &> b^4 k^2 - b^3 k + b^2 k \\ &> b^4 k^2 - b^3 k + k, \quad \text{as } b > 1, \end{aligned}
which establishes the second inequality in our claim.
Because all of b,kb, k, and b4k2b3k+k\sqrt{b^4 k^2 - b^3 k + k} are positive integers, we conclude from our claim that b2kb2b^2 k - \frac{b}{2} is an integer and that
b4k2b3k+k=(b2kb2)2=b4kb3k+b24, b^4 k^2 - b^3 k + k = \left(b^2 k - \frac{b}{2}\right)^2 = b^4 k - b^3 k + \frac{b^2}{4},
and so k=b2/4k = b^2/4. Thus, b=2tb = 2t for some positive integer tt. The two solutions of the equation ()(*) becomes
x=b2k±(b2kb2), x = b^2 k \pm \left(b^2 k - \frac{b}{2}\right),
that is. x=tx = t or x=8t4tx = 8t^4 - t. Hence, (a,b)=(t,2t)(a, b) = (t, 2t) and (a,b)=(8t4t,2t)(a, b) = (8t^4 - t, 2t) are the possible solutions of the problem, in addition to the solutions (2t,1)(2t, 1).

Third Solution. Because both kk and a2a^2 are positive, 2ab2b3+1>02ab^2 - b^3 + 1 > 0, or,
2a>b1b2. 2a > b - \frac{1}{b^2}.
Because aa and bb are positive integers, we have 2ab2a \ge b. Because kk is a positive integer, a22ab2b3+1a^2 \ge 2ab^2 - b^3 + 1, or, a2b2(2ab)+1a^2 \ge b^2(2a - b) + 1. Because
a2>b2(2ab)0, a^2 > b^2(2a - b) \geq 0,
we have
a>bor2a=b.() a > b \quad \text{or} \quad 2a = b. \qquad (\dagger)
We consider again the quadratic equation ()(*) for fixed positive integers bb and kk, and assume that x1=ax_1 = a is an integer root of equation ()(*). Then the other root x2x_2 is also an integer because x1+x2=2b2kx_1 + x_2 = 2b^2k. Without loss of generality, we assume that x1x2x_1 \geq x_2. Then x1b2k>0x_1 \geq b^2k > 0. Furthermore, because x1x2=(b31)kx_1x_2 = (b^3 - 1)k, we obtain
0x2=(b31)kx1(b31)kb2k<b. 0 \leq x_2 = \frac{(b^3 - 1)k}{x_1} \leq \frac{(b^3 - 1)k}{b^2k} < b.
If x2=0x_2 = 0, then b31=0b^3 - 1 = 0, and so x1=2kx_1 = 2k and (a,b)(a, b) can be written in the form of (2t,1)(2t, 1) for some integers tt.
If x2>0x_2 > 0, then (a,b)=(x2,b)(a, b) = (x_2, b) is a pair of positive integers satisfying the equations ()(\dagger) and ()(*). We conclude that 2x2=b2x_2 = b, and so
k=x222x2b2b3+1=x22=b24, k = \frac{x_2^2}{2x_2b^2 - b^3 + 1} = x_2^2 = \frac{b^2}{4},
and x1=b4/2b/2x_1 = b^4/2 - b/2. Thus, (a,b)(a, b) can be written in the form of either (t,2t)(t, 2t) or (8t3t,2t)(8t^3 - t, 2t) for some positive integers tt.

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.