2016 Latvia National Olympiad 3rd Round Grade9Problem5
Source:
July 22, 2016
recursionalgebra
Problem Statement
The integer sequence "having pattern 2016'" is defined as follows:\\
The first member is 2.\\
The second member is the least positive integer exceeding and having digit 0 in its decimal notation.\\
The third member is the least positive integer exceeding and having digit 1 in its decimal notation.\\
The third member is the least positive integer exceeding and having digit 6 in its decimal notation.\\
The following members are defined in the same way. The required digits change periodically: . The first members of this sequence are the following: . What are the 4 numbers that immediately follow in this sequence?