Skip to main content
OlympiadHQ

Browse · MathNet

Print

62nd Czech and Slovak Mathematical Olympiad

Czech Republic number theory

Problem

There is written a number (in the decimal representation) on the board. In a step we erase the last digit and instead of the number , which is now left on the board, we write number (for example, if was written on the board, then after the step there will be ). We continue until there is a one-digit number on the board. Find all positive integers such that after a finite number of steps number is left on the board.
Solution
Let us find , which lead to zero on the board after only one step. Obviously iff , which is . All such are of the form , .

We show that the solution of the problem are exactly all multiples of . Since , there is , that is the divisibility by is preserved in the step. Now we show, that a multiple of actually decreases in the step. We have already shown that for . Let , where . Then , , thus and we are done.
Final answer
All positive multiples of 31

Techniques

Divisibility / FactorizationInvariants / monovariants