Maths Olympiad Prep

Library / /307 of 520

Number theory Difficulty 5.7 AIME, harder Find the answer

Solve the following equation in the set of natural numbers:

[a,b]+(a,b)+a+b=ab [a, b]+(a, b)+a+b=a \cdot b

(Here [a,b][a, b] denotes the least common multiple of aa and bb, while (a,b)(a, b) denotes their greatest common divisor.)

A number or a short expression. Spacing and $ signs are ignored.

Solution

Let the greatest common divisor of aa and bb be denoted by AA, and let a=a1Aa = a_1 \cdot A, b=b1Ab = b_1 \cdot A. Then the least common multiple is Aa1b1A \cdot a_1 \cdot b_1, which can be verified by examining the prime factorization of the numbers: if a=p1α1p2α2prαra = p_1^{\alpha_1} \cdot p_2^{\alpha_2} \cdots \cdots p_r^{\alpha_r}, b=p1β1p2β2prβr(αi0,βi0)b = p_1^{\beta_1} \cdot p_2^{\beta_2} \cdots \cdots p_r^{\beta_r} (\alpha_i \geq 0, \beta_i \geq 0), then

A=(a,b)=p1min(α1,β1)prmin(αr,βr),[a,b]=p1max(α1,β1)prmax(αr,βr)a1=p1α1min(α1,β1)prαrmin(αr,βr),b1=p1β1min(α1,β1)prβrmin(αr,βr) \begin{array}{cc} A = (a, b) = p_1^{\min(\alpha_1, \beta_1)} \cdots \cdots p_r^{\min(\alpha_r, \beta_r)}, & [a, b] = p_1^{\max(\alpha_1, \beta_1)} \cdots \cdots p_r^{\max(\alpha_r, \beta_r)} \\ a_1 = p_1^{\alpha_1 - \min(\alpha_1, \beta_1)} \cdots \cdots p_r^{\alpha_r - \min(\alpha_r, \beta_r)}, & b_1 = p_1^{\beta_1 - \min(\alpha_1, \beta_1)} \cdots \cdots p_r^{\beta_r - \min(\alpha_r, \beta_r)} \end{array}

that is,

Aa1b1=p1α1+β1min(α1,β1)prαr+βrmin(αr,βr)=p1max(α1,β1)prmax(αr,βr) A \cdot a_1 \cdot b_1 = p_1^{\alpha_1 + \beta_1 - \min(\alpha_1, \beta_1)} \cdots p_r^{\alpha_r + \beta_r - \min(\alpha_r, \beta_r)} = p_1^{\max(\alpha_1, \beta_1)} \cdots p_r^{\max(\alpha_r, \beta_r)}

since for any α,β\alpha, \beta, α+βmin(α,β)=max(α,β)\alpha + \beta - \min(\alpha, \beta) = \max(\alpha, \beta).

Substituting the above into the equation and simplifying:

Aa1b1+A+Aa1+Ab1=Aa1Ab1,A(a1b1+a1+b1+1)=A(Aa1b1),A(a1+1)(b1+1)=A(Aa1b1) A \cdot a_1 \cdot b_1 + A + A \cdot a_1 + A \cdot b_1 = A \cdot a_1 \cdot A \cdot b_1, \quad A \cdot (a_1 b_1 + a_1 + b_1 + 1) = A \cdot (A \cdot a_1 \cdot b_1), \quad A \cdot (a_1 + 1) \cdot (b_1 + 1) = A \cdot (A \cdot a_1 \cdot b_1)

First, let's consider the case A=0A = 0. If a0a \neq 0 and b0b \neq 0, then A0A \neq 0, so at least one of aa and bb must be zero. By definition, (a,0)=a(a, 0) = a if a0a \neq 0, so the only remaining case is a=b=0a = b = 0. The number (0,0)(0, 0) is not usually defined; if we do define it, then (0,0)=0(0, 0) = 0 in which case a=b=0a = b = 0 is a solution, while (0,0)0(0, 0) \neq 0 in which case it is not. Whether or not 00 is considered a natural number does not affect the essential part (and the grading) of the solution, regardless of whether the solution a=b=0a = b = 0 is missing or present.

Thus, we can assume A0A \neq 0, and we can simplify by dividing by AA:

(a1+1)(b1+1)=Aa1b1 (a_1 + 1) \cdot (b_1 + 1) = A \cdot a_1 \cdot b_1

It is clear that the cases a1=0a_1 = 0 and b1=0b_1 = 0 do not provide solutions, so the following rearrangement is permissible:

A=a1+1a1b1+1b1 A = \frac{a_1 + 1}{a_1} \cdot \frac{b_1 + 1}{b_1}

Since 1a11 \leq a_1 and 1b11 \leq b_1, we have

1<a1+1a12,1<b1+1b12 1 < \frac{a_1 + 1}{a_1} \leq 2, \quad 1 < \frac{b_1 + 1}{b_1} \leq 2

Thus, only A=2,3,4A = 2, 3, 4 are possible.

1. Case: A=2A = 2. From (1), we get

a1b1+a1+b1+1=2a1b1 a_1 b_1 + a_1 + b_1 + 1 = 2 a_1 b_1

Adding 2 to both sides,

2=a1b1a1b1+1=(a11)(b11) 2 = a_1 b_1 - a_1 - b_1 + 1 = (a_1 - 1)(b_1 - 1)

This is only possible if a11=1a_1 - 1 = 1 and b11=2b_1 - 1 = 2, or vice versa. In the former case, a1=2a_1 = 2, b1=3b_1 = 3, so a=4a = 4, b=6b = 6; in the latter case, a=6a = 6, b=4b = 4.

2. Case: A=3A = 3. From (1), we get

3a1b1=a1b1+a1+b1+12a1b1a1b11=04a1b12a12b12=0(2a11)(2b11)=3 \begin{gathered} 3 a_1 b_1 = a_1 b_1 + a_1 + b_1 + 1 \\ 2 a_1 b_1 - a_1 - b_1 - 1 = 0 \\ 4 a_1 b_1 - 2 a_1 - 2 b_1 - 2 = 0 \\ (2 a_1 - 1)(2 b_1 - 1) = 3 \end{gathered}

Then necessarily 2a11=32 a_1 - 1 = 3 and 2b11=12 b_1 - 1 = 1, or vice versa, from which a=6a = 6, b=3b = 3, or a=3a = 3, b=6b = 6.

3. Case: A=4A = 4. Then

4a1b1=a1b1+a1+b1+13a1b1a1b11=09a1b13a13b13=0(3a11)(3b11)=4 \begin{gathered} 4 a_1 b_1 = a_1 b_1 + a_1 + b_1 + 1 \\ 3 a_1 b_1 - a_1 - b_1 - 1 = 0 \\ 9 a_1 b_1 - 3 a_1 - 3 b_1 - 3 = 0 \\ (3 a_1 - 1)(3 b_1 - 1) = 4 \end{gathered}

Since 3a11=43 a_1 - 1 = 4 and 3b11=13 b_1 - 1 = 1 are not possible, we must have 3a11=3b11=23 a_1 - 1 = 3 b_1 - 1 = 2, from which a=b=4a = b = 4.

We have found five pairs of numbers, and it is easy to verify that each of them is indeed a solution; the solutions are:

(3,6),(4,6),(4,4),(6,4),(6,3) (3, 6), \quad (4, 6), \quad (4, 4), \quad (6, 4), \quad (6, 3)

Reviczky Ágnes (München, Gymnasium Der Armen Schulschwestern, II. o.t.)

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.