Removing digits 1 and adding N to the number on the blackboard
Source: 2022 3rd OMpD L2 P3 - Brazil - Olimpíada Matemáticos por Diversão
July 8, 2023
combinatoricsDigits
Problem Statement
Let be a positive integer. Initially, a positive integer is written on the board. At each step, we can perform one of the following two operations with the number written on the board:(i) Add to the number written on the board and replace that number with the sum obtained;(ii) If the number on the board is greater than and has at least one digit , then we can remove the digit from that number, and replace the number initially written with this one (with removal of possible leading zeros)For example, if and , we can do the following sequence of operations:
And if and , we can do the following sequence of operations:
For what values of is it always possible, regardless of the initial value of on the blackboard, to obtain the number on the blackboard, through a finite number of operations?