Skip to main content
OlympiadHQ

Browse · MathNet

Print

IMO Team Selection Contest

Estonia number theory

Problem

Find all prime numbers for which one can find a positive integer and non-negative integers less than such that
Solution
Answer: 2003.

Subtracting the second equation from the first one gives As the l.h.s. of the obtained equality is divisible by , must also be divisible by . Thus equals one of and . Since is prime, only and remain. The first equation of the given system is the -ary representation of 2013, whence the coefficients are uniquely determined by .

Now we study all cases. 1. If then as . The second equation implies that all s must be ones, but . Hence there is no solution in this case.

2. Let . As whereas , this case gives no solution either.

3. Let . As while , this case gives no solution either.

4. For , we get and , so the conditions are satisfied. Consequently, 2003 is the only prime number with the desired property.
Final answer
2003

Techniques

Factorization techniquesPolynomial operationsIntegers