Olympiad Maths Prep

Track / Stage 5 / 207 of 400 #807 of 2000

Problem 807

AIME late
Number theory Difficulty 5.5 Find the answer

4. Find all pairs of natural numbers (a,b)(a, b) such that a2a^{2} is divisible by bb, b2b^{2} is divisible by aa, and (b+1)2(b+1)^{2} is divisible by a+1a+1.

Official solution

Solution. Let dd be the greatest common divisor of the numbers aa and bb. Suppose a=a1da = a_1 d and b=b1db = b_1 d. Then, by the condition, b12d2b_1^2 d^2 is divisible by a1da_1 d, from which (since a1a_1 and b1b_1 are coprime) it is clear that dd is divisible by a1a_1. Similarly, dd is divisible by b1b_1, and thus d=a1b1kd = a_1 b_1 k (we again use the coprimality of the numbers a1a_1 and b1b_1). Then a=a12b1ka = a_1^2 b_1 k and b=b12a1kb = b_1^2 a_1 k. Substituting these equalities into the last condition, we get that b14a12k2+2b12a1k+1b_1^4 a_1^2 k^2 + 2 b_1^2 a_1 k + 1 is divisible by a12b1k+1a_1^2 b_1 k + 1. Subtract the second number from the first and simplify by b1kb_1 k. Then we get that b13a12k+2a1b1a12b_1^3 a_1^2 k + 2 a_1 b_1 - a_1^2 is divisible by a12b1k+1a_1^2 b_1 k + 1. Now replace a12b1ka_1^2 b_1 k with -1 in the first term of the expression b13a12k+2a1b1a12b_1^3 a_1^2 k + 2 a_1 b_1 - a_1^2 and we get that (a1b1)2-(a_1 - b_1)^2 is divisible by a12b1k+1a_1^2 b_1 k + 1. Now discard the minus sign in the dividend (it does not affect divisibility) and consider several cases. First, if a1=b1a_1 = b_1, then clearly a=ba = b and this case works. If a1>b1a_1 > b_1, then we have the inequalities a12b1k+1>a12(a1b1)2a_1^2 b_1 k + 1 > a_1^2 \geq (a_1 - b_1)^2, which contradicts divisibility. Then the only remaining case is b1>a1b_1 > a_1. From the inequality b12>(b1a1)2>a12b1b_1^2 > (b_1 - a_1)^2 > a_1^2 b_1, we get that b1>a12b_1 > a_1^2. Modulo b1b_1, the number (b1a1)2(b_1 - a_1)^2 is congruent to a12a_1^2, which, in turn, is less than b1b_1. If we write (b1a1)2=t(a12b1k+1)(b_1 - a_1)^2 = t(a_1^2 b_1 k + 1) and look at this equation modulo b1b_1, and also remember that t<b1t < b_1, then we can understand that t=a12t = a_1^2. From this, we deduce that b12a1=a14kb_1 - 2 a_1 = a_1^4 k. Thus b1b_1 is divisible by a1a_1, from which (again, due to coprimality) it is clear that a1=1a_1 = 1. Then b1=k+2b_1 = k + 2 and we get the series of solutions a=k(k+2)a = k(k + 2) and b=k(k+2)2b = k(k + 2)^2 for all natural kk.

## Senior League

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.