Maths Olympiad Prep

Track / Stage 7 / 161 of 300 #1561 of 1964

Problem 1561

National olympiad second round; IMO P1/P4
Number theory Difficulty 7.3 Prove it

For each nNn \in N let S(n)S(n) be the sum of all numbers in the set {1,2,3,…,n} which are relatively prime to nn.
a. Show that 2S(n)2S(n) is not aperfect square for any nn.
b. Given positive integers m,nm,n with odd n, show that the equation 2S(x)=yn2S(x)=y^n has at least one solution (x,y)(x,y) among positive integers such that mxm|x.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

### Part (a)
1. Base Case:
For n=1 n = 1 , the set {1}\{1\} contains only one number which is relatively prime to 1. Therefore, S(1)=1 S(1) = 1 . Hence,
2S(1)=2×1=2 2S(1) = 2 \times 1 = 2
Since 2 is not a perfect square, the statement holds for n=1 n = 1 .

2. General Case:
For n>1 n > 1 , consider the set {1,2,,n}\{1, 2, \ldots, n\}. If a a is relatively prime to n n , then na n - a is also relatively prime to n n . Therefore, the sum of all numbers in the set that are relatively prime to n n can be paired as (a,na) (a, n-a) .

3. Sum Calculation:
The sum of each pair (a,na) (a, n-a) is n n . If there are φ(n)\varphi(n) such pairs, where φ(n)\varphi(n) is Euler's totient function, then:
2S(n)=nφ(n) 2S(n) = n \varphi(n)

4. Prime Factor Analysis:
Let p p be the largest prime that divides n n with exponent k k . The exponent of p p in nφ(n) n \varphi(n) is k+(k1)=2k1 k + (k-1) = 2k-1 , which is odd. Since a perfect square must have even exponents for all prime factors, nφ(n) n \varphi(n) cannot be a perfect square.

5. Conclusion:
Therefore, 2S(n) 2S(n) is not a perfect square for any n n .

\blacksquare

### Part (b)
1. Given:
We need to show that for given positive integers m m and n n with n n odd, the equation 2S(x)=yn 2S(x) = y^n has at least one solution (x,y) (x, y) among positive integers such that mx m \mid x .

2. **Case m=2 m = 2 :**
Let n=2k1 n = 2k - 1 (since n n is odd). Take x=2k x = 2^k . Then:
2S(2k)=2×(1a2k,gcd(a,2k)=1a) 2S(2^k) = 2 \times \left( \sum_{1 \leq a \leq 2^k, \gcd(a, 2^k) = 1} a \right)
The numbers relatively prime to 2k 2^k are the odd numbers from 1 to 2k1 2^k - 1 . The sum of the first 2k1 2^{k-1} odd numbers is 2k1×2k1=22k2 2^{k-1} \times 2^{k-1} = 2^{2k-2} . Therefore:
2S(2k)=2×22k2=22k1 2S(2^k) = 2 \times 2^{2k-2} = 2^{2k-1}
Since 22k1=(2k1)n 2^{2k-1} = (2^{k-1})^n for n=2k1 n = 2k - 1 , we have y=2k1 y = 2^{k-1} .

3. **General m m :**
For any m m , we can use a similar approach by considering x x as a multiple of m m and adjusting the powers accordingly. The key idea is to ensure that x x is chosen such that 2S(x) 2S(x) forms a perfect n n -th power.

4. Conclusion:
Therefore, the equation 2S(x)=yn 2S(x) = y^n has at least one solution (x,y) (x, y) among positive integers such that mx m \mid x .

\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.