reviewed
reviewed
proposed
editing
This is a variation of A342585. The same rules apply except that each number, as it iterates from counting zeros to counting the next number until zero occurrences are found, is treated as a string. The number of occurrences of this string is counted in the concatenation of all previous terms which is also treated as a string. For example when the sequence is adding the number of occurrences of 10, this is treated as the string '10', and thus any occurrence of '10' in the concatenation of all previous terms is counted. This would therefore count the term 1 followed by 0 as an occurrence of '10'. The strings are allowed to overlap, e.g. the number '111' would increment the count of 1's three times, the count of 11's two times, and the count of 111's one time.
Unlike A342585 the number of occurrences of the smaller values does not seem to change order as n gets larger. After 5 million terms the order of most frequent occurrences is 1,2,3,4,5,6,7,8,9,0,11,12,10,21,13,14,15,16. It is unlikely the single digit order changes although, considering 21 appears high on the count for 2 digit numbers, the order of these and other 2 digit values may change as n gets larger. See the linked image.
approved
proposed
editing
proposed
editing
Counting the occurrences of each number treated as a string leads to many more terms being found before a zero term is recorded. For example the iteration spanning the 5 millionth term has a(4989648) = 0, a(4989649) = 1115869, then a(5009652) = 5, a(5009653) = 0. Therefore at this stage every number, treated as a string, from 0 to 20004 has occurred at least once in the concatenation of all previous terms.
Scott R. Shannon, <a href="/A348288/a348288.png">Image of the first 5 million terms</a>.