A329818 Look left and tell the least frequent digit string; a(0) = 0, a(n) = concat(c,s), where c > 0 is the number of times the string s, composed of one or more digits, has appeared in a(0) to a(n-1) such that a(n) is minimal. Digit strings with leading zeros are ignored.
0, 10, 11, 20, 12, 22, 30, 13, 23, 33, 40, 14, 24, 34, 44, 50, 15, 25, 35, 45, 55, 60, 16, 26, 36, 46, 56, 66, 70, 17, 27, 37, 47, 57, 67, 77, 80, 18, 28, 38, 48, 58, 68, 78, 88, 90, 19, 29, 39, 49, 59, 69, 79, 89, 99, 100, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 122
Offset: 0
Examples
a(56) = 111 as a(2) = 11, and as 11 has only appeared once, the next smallest value is that of 'one 11', that is 111. After this entry the string '11' has now appeared three times, and the string '111' has appeared once. a(199903) = 14342 as a(199902) = 434224 and as that contains the first appearance of the digit string '4342' in any entry, the next smallest value is that of 'one 4342', that is 14342. This leads to the largest drop in value for the first 200000 terms of the sequence. As a comparison after 199902 terms the digit '1' has occurred 153333 times.
Links
- Scott R. Shannon, Table of n, a(n) for n = 0..20000
- Eric Angelini, Look left and say, Nov 14 2019.
- Scott R. Shannon, Scatter plot for the first 200000 terms.
Comments