Skip to main content
OlympiadHQ

Browse · MathNet

Print

THE 68th NMO SELECTION TESTS FOR THE BALKAN AND INTERNATIONAL MATHEMATICAL OLYMPIADS

Romania number theory

Problem

Let be a positive integer, let be a prime, let , and let , . Determine the primes for which the products , , are all integral.
Solution
The required primes are and . Begin by noticing that if is any even integer, then is an integral power of for all . Thus, if , then for some non-negative integer . An easy induction on shows that is divisible by for all non-negative integers , so is an integer for . Consequently, if , then



is an integer, provided that is divisible by . On the other hand, since is coprime to , the product is an integer if and only if is divisible by .

Let , where is a positive integer. Then , and the general problem consists in determining so that is divisible by . This is clearly the case if is a power of , so is a solution.

The other case in the problem is , where is an odd prime. The divisibility condition implies that is a divisor of , so . Since is coprime to both and , the latter must be a divisor of , so . The number is clearly divisible by , and it is divisible by , since , where is Euler's totient function; hence it is divisible by . This ends the proof.
Final answer
p = 2 or p = 5

Techniques

Fermat / Euler / Wilson theoremsMultiplicative orderFactorization techniquesφ (Euler's totient)Recurrence relations