Maths Olympiad Prep

Library / /1 of 4

, 2020

Number theory Difficulty 7.4 National olympiad, round 2 Prove it Netherlands

Determine all pairs (a,b)(a, b) of positive integers for which
a+b=φ(a)+φ(b)+gcd(a,b). a + b = \varphi(a) + \varphi(b) + \gcd(a, b).
Here, φ(n)\varphi(n) is the number of integers k{1,2,,n}k \in \{1, 2, \dots, n\} satisfying gcd(n,k)=1\gcd(n, k) = 1.

Solution

First suppose that a=1a = 1. Then φ(1)=1\varphi(1) = 1. For all positive integers bb we have gcd(a,b)=1\gcd(a, b) = 1. Therefore in this case the equation is 1+b=1+φ(b)+11 + b = 1 + \varphi(b) + 1, or equivalently, φ(b)=b1\varphi(b) = b - 1. This is equivalent to the statement that there exists a unique integer from {1,2,,b}\{1, 2, \dots, b\}; which then has to be bb itself (since unless b=1b = 1, we have gcd(b,b)>1\gcd(b, b) > 1, but if b=1b = 1 we have φ(b)=b\varphi(b) = b). In other words, this is equivalent to bb being a prime number. Hence the solutions for a=1a = 1 are precisely the pairs (1,p)(1, p) with pp a prime number. Similarly, the solutions for b=1b = 1 are precisely the pairs (p,1)(p, 1) with pp a prime number.

Now assume that a,b2a, b \ge 2. As gcd(b,b)>1\gcd(b, b) > 1 we have φ(b)b1\varphi(b) \le b - 1. Therefore
gcd(a,b)=a+bφ(a)φ(b)aφ(a)+1. \gcd(a, b) = a + b - \varphi(a) - \varphi(b) \geq a - \varphi(a) + 1.
Let pp be the minimal prime divisor of aa (which exists as a2a \ge 2). Since for all multiples tpatp \le a of pp, we have gcd(tp,a)>1\gcd(tp, a) > 1, it follows that aφ(a)1paa - \varphi(a) \ge \frac{1}{p} \cdot a. Therefore we have
gcd(a,b)aφ(a)+1ap+1. \gcd(a, b) \geq a - \varphi(a) + 1 \geq \frac{a}{p} + 1.
The two largest divisors of aa are aa and ap\frac{a}{p}. Since gcd(a,b)\gcd(a, b) is a divisor of aa that is at least ap+1\frac{a}{p} + 1, it must equal aa. Hence gcd(a,b)=a\gcd(a, b) = a. In the same way we prove that gcd(a,b)=b\gcd(a, b) = b. So a=ba = b.

The equation now is equivalent to 2a=2φ(a)+a2a = 2\varphi(a) + a, so also to a=2φ(a)a = 2\varphi(a). Note that 2a2 \mid a. Therefore write a=2kma = 2^k \cdot m with k1k \ge 1 and mm odd. By a well-known property of the φ\varphi-function, we have φ(a)=φ(2k)φ(m)=2k1φ(m)\varphi(a) = \varphi(2^k) \cdot \varphi(m) = 2^{k-1} \cdot \varphi(m), and the equation becomes 2km=22k1φ(m)2^k \cdot m = 2 \cdot 2^{k-1} \cdot \varphi(m), or equivalently
m=φ(m). m = \varphi(m).
Therefore m=1m = 1, and a=b=2ka = b = 2^k. Indeed, the equation holds for all pairs (2k,2k)(2^k, 2^k) with k1k \ge 1.

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.