Browse · MathNet
Print12th Czech-Polish-Slovak Mathematics Competition
number theory
Problem
For any positive integer , let denote the number of positive divisors of and the number of positive integers not greater than which are relatively prime to . Find all positive integers for which one of the three numbers , , and is the arithmetic mean of the other two.
Solution
We have , that is satisfies the given condition. In the following, we assume . For such , clearly and . This means cannot be the arithmetic mean of and . We are left with two cases.
Case 1: . Then we have . For each divisor of , the number is also the divisor. One of the numbers is less or equal , which means the set contains at least half of the divisors¹. This clearly implies . We get For , we can easily calculate , check the condition , and calculate in the remaining few cases:
We have and as solutions.
Case 2: . We transform this relation into If is even, then no even number is relatively prime to , thus . But then from (1) we get , which is impossible. Therefore, must be odd. Then (1) implies must be odd as well, which means is a perfect square (of an odd number). Write the prime factorization of in the form
Applying the well-known formula for and , we rewrite (1) as The right hand side is divisible by , and so must be the left hand side as well. From this, we obtain However, for every integers and , the inequality holds, with equality only for and . To prove this, we use induction on : The case is trivial (with equality only for ) and when increases by 1, the right hand size increases by 2, while the left hand size increases by 1. 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 , , , that is, . Indeed, we have and , thus (1) holds for .
Answer. The given condition is fulfilled for .
Case 1: . Then we have . For each divisor of , the number is also the divisor. One of the numbers is less or equal , which means the set contains at least half of the divisors¹. This clearly implies . We get For , we can easily calculate , check the condition , and calculate in the remaining few cases:
| n | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 2 | 3 | 2 | 4 | 2 | 4 | 3 | 4 | 2 | 6 | 2 | 4 | 4 | |
| ? | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| 1 | 2 | 2 | 2 | |||||||||||
| ? | × | × | ✓ | ✓ |
Case 2: . We transform this relation into If is even, then no even number is relatively prime to , thus . But then from (1) we get , which is impossible. Therefore, must be odd. Then (1) implies must be odd as well, which means is a perfect square (of an odd number). Write the prime factorization of in the form
Applying the well-known formula for and , we rewrite (1) as The right hand side is divisible by , and so must be the left hand side as well. From this, we obtain However, for every integers and , the inequality holds, with equality only for and . To prove this, we use induction on : The case is trivial (with equality only for ) and when increases by 1, the right hand size increases by 2, while the left hand size increases by 1. 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 , , , that is, . Indeed, we have and , thus (1) holds for .
Answer. The given condition is fulfilled for .
Final answer
{1, 4, 6, 9}
Techniques
φ (Euler's totient)τ (number of divisors)Factorization techniques