Each number in the sequence is determined by looking at the previous two numbers in the sequence. The rightmost digit is equal to the number of 1s, the tens digit is equal to the number of 2s, the hundreds digit is equal to the number of 3s, etc.
After a while, the sequence will begin to loop. The sequence begins with the following:
1, 1, 2, 11, 12, 13, 112, 113, 114, 1104, 2004, 2012, 1031, 123, 213, 222, 141,
And then the rest of the numbers loop infinitely:
1032, 1113, 214, 1114, 2014, 2014, 2022, 1041 |