Skip to main content
OlympiadHQ

Browse · MathNet

Print

Baltic Way 2023 Shortlist

Baltic Way 2023 number theory

Problem

Let denote the number of positive divisors of and let denote the number of non-negative integers less than and relatively prime to . Find all positive integers such that .
Solution
Answer: , .

Let be the canonical representation of , where are positive integers. It is known that and

Hence, the given equation reduces to Note that , for every , whereby equalities hold if and only if and . Multiplying the inequalities , for , leads to the inequality obtained from by replacing equality with inequality. Hence equality holds if and only if every inequality that was multiplied holds as an equality. I.e., if and , for every . As primes in the canonical representation are distinct, this holds if and only if or and , i.e., if or .
Final answer
1, 2

Techniques

φ (Euler's totient)τ (number of divisors)Factorization techniques