Maths Olympiad Prep

Library / Asian Pacific Mathematics Olympiad /6 of 55

Asian Pacific Mathematics Olympiad

Algebra Difficulty 6.8 National Olympiad Find the answer

Find all positive integers aa and bb such that a2+bb2−a\frac{a^{2}+b}{b^{2}-a} and b2+aa2−b\frac{b^{2}+a}{a^{2}-b} are both integers.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

By the symmetry of the problem, we may suppose that a≤ba \leq b. Notice that b2−a≥0b^{2}-a \geq 0, so that if a2+bb2−a\frac{a^{2}+b}{b^{2}-a} is a positive integer, then a2+b≥b2−aa^{2}+b \geq b^{2}-a. Rearranging this inequality and factorizing, we find that (a+b)(a−b+1)≥0(a+b)(a-b+1) \geq 0. Since a,b>0a, b>0, we must have a≥b−1a \geq b-1. We therefore have two cases: Case 1: a=ba=b. Substituting, we have a2+aa2−a=a+1a−1=1+2a−1\frac{a^{2}+a}{a^{2}-a}=\frac{a+1}{a-1}=1+\frac{2}{a-1} which is an integer if and only if (a−1)∣2(a-1) \mid 2. As a>0a>0, the only possible values are a−1=1a-1=1 or 2. Hence, (a,b)=(2,2)(a, b)=(2,2) or (3,3)(3,3). Case 2: a=b−1a=b-1. Substituting, we have b2+aa2−b=(a+1)2+aa2−(a+1)=a2+3a+1a2−a−1=1+4a+2a2−a−1\frac{b^{2}+a}{a^{2}-b}=\frac{(a+1)^{2}+a}{a^{2}-(a+1)}=\frac{a^{2}+3 a+1}{a^{2}-a-1}=1+\frac{4 a+2}{a^{2}-a-1}. For 4a+2a2−a−1\frac{4 a+2}{a^{2}-a-1} to be an integer, we must have 4a+2≥a2−a−14 a+2 \geq a^{2}-a-1, that is, a2−5a−3≤0a^{2}-5 a-3 \leq 0. Hence, since aa is an integer, we can bound aa by 1≤a≤51 \leq a \leq 5. Checking all the ordered pairs (a,b)=(1,2),(2,3),…,(5,6)(a, b)=(1,2),(2,3), \ldots,(5,6), we find that only (1,2)(1,2) and (2,3)(2,3) satisfy the given conditions. Thus, the ordered pairs that work are (2,2),(3,3),(1,2),(2,3),(2,1),(3,2)(2,2),(3,3),(1,2),(2,3),(2,1),(3,2).

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: Omni-MATH, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.