Skip to main content
OlympiadHQ

Browse · MathNet

Print

Iranian Mathematical Olympiad

Iran number theory

Problem

We call a natural number nice if it has no zero digit in its decimal representation and it has a digit in this representation such that the resulting number would be a divisor of , after its removal. Prove that there are only finitely many nice numbers.
Solution
We prove that a nice number has at most 20 digits which proves that there are finitely many nice numbers. Assume that where can have more than one digit and is a digit such that for some natural number . If has digits, then (mod ) therefore we have (mod ). Because there is no zero digit in , we know that or . If then we have (mod ), on the other hand so which implies that . Similarly if we have .

Now assume that has more than 10 digits, we have , therefore . But the previous paragraph implies that has at most 10 digits which implies that . So we should have which is in contradiction with the fact that is an interesting number. ■

Techniques

Divisibility / FactorizationInverses mod nIntegers