Maths Olympiad Prep

Library / Czech-Polish-Slovak Mathematics Competition /8 of 11

Czech-Polish-Slovak Mathematics Competition

Number theory Difficulty 7.3 National Olympiad, round 2 Prove it Czech-Polish-Slovak Mathematical Match

For any positive integer nn, let τ(n)\tau(n) denote the number of positive divisors of nn and φ(n)\varphi(n) the number of positive integers not greater than nn which are relatively prime to nn. Find all positive integers nn for which one of the three numbers nn, τ(n)\tau(n), and φ(n)\varphi(n) is the arithmetic mean of the other two.

Solution

We have τ(1)=φ(1)=1\tau(1) = \varphi(1) = 1, that is n=1n = 1 satisfies the given condition. In the following, we assume n>1n > 1. For such nn, clearly τ(n)≤n\tau(n) \le n and φ(n)<n\varphi(n) < n. This means nn cannot be the arithmetic mean of τ(n)\tau(n) and φ(n)\varphi(n). We are left with two cases.

Case 1: τ(n)=12(φ(n)+n)\tau(n) = \frac{1}{2}(\varphi(n) + n). Then we have τ(n)>12n\tau(n) > \frac{1}{2}n. For each divisor dd of nn, the number n/dn/d is also the divisor. One of the numbers d,n/dd, n/d is less or equal n\sqrt{n}, which means the set {1,2,…,⌊n⌋}\{1, 2, \dots, \lfloor\sqrt{n}\rfloor\} contains at least half of the divisors¹. This clearly implies 12τ(n)≤n\frac{1}{2}\tau(n) \le \sqrt{n}. We get
2n≥τ(n)>12n⇒4n>14n2⇒16>n. 2\sqrt{n} \ge \tau(n) > \frac{1}{2}n \quad \Rightarrow \quad 4n > \frac{1}{4}n^2 \quad \Rightarrow \quad 16 > n.
For 1<n<161 < n < 16, we can easily calculate τ(n)\tau(n), check the condition τ(n)>12n\tau(n) > \frac{1}{2}n, and calculate φ(n)\varphi(n) in the remaining few cases:

n23456789101112131415
τ(n)\tau(n)22324243426244
τ(n)>1/2n\tau(n) > 1/2 n ?✓✓✓✓✓✓✓✓✓✓✓✓✓✓
φ(n)\varphi(n)1222
τ(n)=1/2(φ(n)+n)\tau(n) = 1/2 (\varphi(n) + n) ?××✓✓

We have n=4n = 4 and n=6n = 6 as solutions.

Case 2: φ(n)=12(τ(n)+n)\varphi(n) = \frac{1}{2}(\tau(n) + n). We transform this relation into
τ(n)=2φ(n)−n.(1) \tau(n) = 2\varphi(n) - n. \qquad (1)
If nn is even, then no even number is relatively prime to nn, thus φ(n)≤12n\varphi(n) \le \frac{1}{2}n. But then from (1) we get τ(n)≤0\tau(n) \le 0, which is impossible. Therefore, nn must be odd. Then (1) implies τ(n)\tau(n) must be odd as well, which means nn is a perfect square (of an odd number). Write the prime factorization of nn in the form
n=p12α1⋯pk2αk,k≥1, pi≥3, αi≥1. n = p_1^{2\alpha_1} \cdots p_k^{2\alpha_k}, \quad k \ge 1, \ p_i \ge 3, \ \alpha_i \ge 1.

Applying the well-known formula for τ(n)\tau(n) and φ(n)\varphi(n), we rewrite (1) as
(2α1+1)⋯(2αk+1)=2p12α1−1(p1−1)⋯pk2αk−1(pk−1)−p12α1⋯pk2αk==p12α1−1⋯pk2αk−1(2(p1−1)⋯(pk−1)−p1⋯pk). (2\alpha_1 + 1) \cdots (2\alpha_k + 1) = 2p_1^{2\alpha_1-1}(p_1-1) \cdots p_k^{2\alpha_k-1}(p_k-1) - p_1^{2\alpha_1} \cdots p_k^{2\alpha_k} = \\ = p_1^{2\alpha_1-1} \cdots p_k^{2\alpha_k-1}(2(p_1-1) \cdots (p_k-1) - p_1 \cdots p_k).
The right hand side is divisible by p12α1−1⋯pk2αk−1p_1^{2\alpha_1-1} \cdots p_k^{2\alpha_k-1}, and so must be the left hand side as well. From this, we obtain
p12α1−1⋯pk2αk−1≤(2α1+1)⋯(2αk+1).(2) p_1^{2\alpha_1-1} \cdots p_k^{2\alpha_k-1} \le (2\alpha_1 + 1) \cdots (2\alpha_k + 1). \quad (2)
However, for every integers p≥3p \ge 3 and α≥1\alpha \ge 1, the inequality p2α−1≥(2α+1)p^{2\alpha-1} \ge (2\alpha + 1) holds, with equality only for p=3p = 3 and α=1\alpha = 1. To prove this, we use induction on α\alpha: The case α=1\alpha = 1 is trivial (with equality only for p=3p = 3) and when α\alpha increases by 1, the right hand size increases by 2, while the left hand size increases by 1.
p2(α+1)−1−p2α−1=p2α−1(p2−1)>2. p^{2(\alpha+1)-1} - p^{2\alpha-1} = p^{2\alpha-1}(p^2 - 1) > 2.
Therefore, each of the (positive) factors on the left hand side of (2) is greater or equal than the corresponding factor on the right hand side. The only possible way to satisfy (2) is to put k=1k = 1, p1=3p_1 = 3, α1=1\alpha_1 = 1, that is, n=9n = 9. Indeed, we have τ(9)=3\tau(9) = 3 and φ(9)=6\varphi(9) = 6, thus (1) holds for n=9n = 9.

Answer. The given condition is fulfilled for n∈{1,4,6,9}n \in \{1, 4, 6, 9\}.

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.