Skip to main content
OlympiadHQ

Browse · MathNet

Print

Balkan Mathematical Olympiad

North Macedonia number theory

Problem

For each integer () let denote the sum of all positive integers that are at most and not relatively prime to . Prove that for each such and for every prime .
Solution
Let , and be positive integers and be a prime. Since , we have

where is the Euler function. If , and , then a contradiction. Therefore, if , then for some positive integer and This implies that and for some positive integer . In particular, and So, we have . Substituting this in (1) and (2) we obtain and We shall prove that and . If , the relation (4) implies , a contradiction. On the other hand if , then (3) implies . Setting , where is an integer such that , and substituting this in (3) we get . So and . Now substituting this in (4) gives a contradiction. Using this observation, we obtain from (3) and (4) the equalities and In particular, and . Moreover and either or . If , then or , where is an odd prime and is an integer. From the equality (5) we obtain If , from (5) we obtain the relation . So, must be odd, must be even and . This contradicts the equality (6). If , then or , where is an odd prime and is an integer. From the equality (6) we obtain If , then this implies and therefore by (5) we must have Which is impossible. On the other hand, if , then and, as divides , we also have . Using (6) again, we see that leads to a contradiction, and leads to , which was already ruled out.

Techniques

φ (Euler's totient)Prime numbersGreatest common divisors (gcd)