Maths Olympiad Prep

Library / NMO Selection Tests /10 of 23

NMO Selection Tests

Number theory Difficulty 8.4 Shortlist Prove it Romania

Determine all positive integers a,b,ca, b, c such that the numbers ab+cab + c, bc+abc + a, and ca+bca + b are powers of 2.

Solution

We will prove that there are only two families of solutions:
(1,1,2x−1),(1,2x−1,2x+1), (1, 1, 2^x - 1), \quad (1, 2^x - 1, 2^x + 1),
where xx is a positive integer.

Step I: a,b,ca, b, c are odd and pairwise coprime in pairs.
It is easy to see that
a≡b≡c(mod2). a \equiv b \equiv c \pmod{2}.
If a,b,ca, b, c are all even, denote by d,e,fd, e, f the exponents of 2 in their prime factorization, respectively, with 1≤d≤e≤f1 \le d \le e \le f. Then the exponent of 2 in bc+abc+a is dd. Since bc+abc+a is a power of 2, we get
bc+a=2d, bc + a = 2^d,
which is impossible because 2d≤a2^d \le a. Thus, a,b,ca, b, c must be odd numbers.
If a,ba, b have a common odd prime factor pp, then pp divides ac+bac + b, so ac+bac + b is divisible by pp and thus cannot be a power of 2. Similarly, one shows (a,c)=1(a, c) = 1 and (b,c)=1(b, c) = 1, which completes Step I.

Hence, we can assume a≤b≤ca \le b \le c, where a,b,ca, b, c are odd positive integers pairwise coprime such that
ab+c,ac+b,bc+a ab + c, \quad ac + b, \quad bc + a
are powers of 2. Since a≤b≤ca \le b \le c, we have
ab+c≤ac+b≤bc+a. ab + c \le ac + b \le bc + a.
Step II: a=1a = 1. Suppose, by contradiction, that 1<a1 < a. Then 1<a<b<c1 < a < b < c, and
ab+c=2k,ac+b=2m,bc+a=2n, ab + c = 2^k, \quad ac + b = 2^m, \quad bc + a = 2^n,
with 3≤k<m<n3 \le k < m < n (since 2k≥3+5=82^k \ge 3 + 5 = 8).
From the above equalities, we get the congruences:
ab≡−c(mod2k),ac≡−b(mod2k),bc≡−a(mod2k). ab \equiv -c \pmod{2^k}, \quad ac \equiv -b \pmod{2^k}, \quad bc \equiv -a \pmod{2^k}.
Multiplying these congruences and noting that a,b,ca, b, c are odd, we obtain
abc≡−1(mod2k) abc \equiv -1 \pmod{2^k}
and
a2≡b2≡c2≡1(mod2k) a^2 \equiv b^2 \equiv c^2 \equiv 1 \pmod{2^k}
(by multiplying the first congruence by cc, the second by bb, and the third by aa).

Since for any odd natural number xx,
gcd⁡(x−1,x+1)=2, \gcd(x - 1, x + 1) = 2,
we deduce that
a≡±1(mod2k−1),b≡±1(mod2k−1),c≡±1(mod2k−1). a \equiv \pm 1 \pmod{2^{k-1}}, \quad b \equiv \pm 1 \pmod{2^{k-1}}, \quad c \equiv \pm 1 \pmod{2^{k-1}}.
From these congruences, it follows that
a,b,c≥2k−1−1. a, b, c \ge 2^{k-1} - 1.
This inequality implies
2k=ab+c≥(2k−1−1)2+2k−1−1=22k−2−2k−1, 2^k = ab + c \ge (2^{k-1} - 1)^2 + 2^{k-1} - 1 = 2^{2k-2} - 2^{k-1},
which means 2≥2k−1−1≥32 \ge 2^{k-1} - 1 \ge 3, a contradiction since k>3k > 3. Therefore, the assumption is false and a=1a = 1.

Step III: the solutions. If b=1b = 1, then clearly c=2x−1c = 2^x - 1. Otherwise, assume a=1a = 1 and 1<b<c1 < b < c. From Step II, we know that c>b≥2k−1−1c > b \ge 2^{k-1} - 1. Since b+c=2kb + c = 2^k and b,cb, c are odd, the only possibility is b=2k−1−1b = 2^{k-1} - 1, c=2k−1+1c = 2^{k-1} + 1.
Hence, the only solutions are: (1,1,2x−1)(1, 1, 2^x - 1) and (1,2x−1,2x+1)(1, 2^x - 1, 2^x + 1), x∈N∗x \in \mathbb{N}^*.

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: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.