MathDB
list of 21 different numbers related to 4-digit no

Source: IV May Olympiad (Olimpiada de Mayo) 1998 L1 P5

September 17, 2022
number theory

Problem Statement

Choose a four-digit number (none of them zero) and, starting with it, build a list of 2121 different numbers, each with four digits, that satisfies the following rule: after writing each new number in the list, all the averages are calculated Between two digits of that number, those averages that do not give a whole number are discarded, and with the rest a four-digit number is formed that will occupy the next place in the list. For example, if 29462946 was written in the list, the next one can be 33333333 or 34343434 or 53455345 or any other number armed with the figures 33, 44 or 55.