Maths Olympiad Prep

Library / /6 of 16

, 2024

Number theory Difficulty 8.0 National olympiad, round 2 Prove it Turkey

Find all functions f:Z+Z+f: \mathbb{Z}^+ \to \mathbb{Z}^+ such that the following conditions hold:
(i) abf(a)f(b)a - b \mid f(a) - f(b) for all positive integers aba \neq b,
(ii) f(φ(a))=φ(f(a))f(\varphi(a)) = \varphi(f(a)) for all aZ+a \in \mathbb{Z}^+.
Note. φ\varphi is the Euler's totient function: φ(n)\varphi(n) is the total number of positive integers not exceeding nn and co-prime with nn.

Solution

Answer: f(x)1f(x) \equiv 1 and f(x)=xf(x) = x.
By putting a=1a = 1 to f(φ(a))=φ(f(a))f(\varphi(a)) = \varphi(f(a)) we get f(1)=φ(f(1))f(1) = \varphi(f(1)) and hence f(1)=1f(1) = 1. By putting a=2a = 2 we get f(1)=φ(f(2))f(1) = \varphi(f(2)) and since f(1)=1f(1) = 1 we get that either f(2)f(2) is either 1 or 2.

Case 1: f(2)=1f(2) = 1. Since 1=f(2)=f(φ(3))=φ(f(3))1 = f(2) = f(\varphi(3)) = \varphi(f(3)) we get that f(3)f(3) is either 1 or 2. But since (31)f(3)f(1)(3-1) \mid f(3) - f(1) we get that f(3)=1f(3) = 1. By induction we show that f(n)=1f(n) = 1 for all positive integers nn. Assume that f(a)=1f(a) = 1 for all a=1,2,,n1a = 1, 2, \dots, n-1. Then since f(φ(n))=φ(f(n))f(\varphi(n)) = \varphi(f(n)) and φ(n)n1\varphi(n) \le n-1 we get φ(f(n))=1\varphi(f(n)) = 1 and hence f(n)f(n) is either 1 or 2. Finally again since n(n2)f(n)f(n2)n - (n-2) \mid f(n) - f(n-2) we get that f(n)=1f(n) = 1. Done.

Case 2: f(2)=2f(2) = 2. By induction we show that f(n)=nf(n) = n for all positive integers aa. Assume that f(a)=af(a) = a for all a=1,2,,n1a = 1, 2, \dots, n-1. By the first condition and by inductive hypothesis for each 1an11 \le a \le n-1 we have naf(n)an-a \mid f(n)-a or equivalently naf(n)nn-a \mid f(n)-n. Therefore, for each integer 1mn11 \le m \le n-1 we have mf(n)nm \mid f(n)-n. Hence the common divisor MM of all integers 1mn11 \le m \le n-1 also divides f(n)nf(n)-n; f(n)=Ms+nf(n) = Ms+n, where ss is integer. Then since φ(n)<n\varphi(n) < n by the second condition and by inductive hypothesis φ(n)=φ(Ms+n)\varphi(n) = \varphi(Ms+n). On the other hand, since each integer kk with (n,k)=1(n, k) = 1 and k<nk < n divides MM we have (k,Ms+n)=1(k, Ms+n) = 1. Therefore, φ(n)φ(Ms+n)\varphi(n) \le \varphi(Ms+n). If s0s \ne 0 then (Ms+n1,Ms+n)=1(Ms+n-1, Ms+n) = 1 and hence we get that φ(n)<φ(Ms+n)\varphi(n) < \varphi(Ms+n). This contradiction shows that s=0s=0 and f(n)=nf(n) = n. Done.

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.