Skip to main content
OlympiadHQ

Browse · MathNet

Print

Estonian Mathematical Olympiad

Estonia number theory

Problem

Find all positive integers for which you can replace a digit with the digits and obtain a number divisible by .
Solution
Let satisfy the condition and be the number obtained by the replacement of digits. Denote by the number formed by the digits to the left of the replaced digit and denote by the number formed by the digits to the right of the replaced digit. Let be the number of digits in . Then and . As is divisible by , then so must also be and , which yields We will consider the following cases.

If , then by (2), for some integer . As , the only option is . The equation yields . Altogether .

If , then by (2), for some integer . As , the only option is , but the equation has no integer solutions, because .

If , then by (2), for some integer . As , the only option is . The equation yields . Altogether .

If , then by (3) we have , which yields . On the other hand . The equations contradict each other, so no such can exist.
Final answer
All n of the form 4510^t or 247510^t for integer t >= 0.

Techniques

Divisibility / Factorization