OFFSET
1,2
COMMENTS
Terms beginning with 1 will appear in runs of long linear succession. These are interspersed with clusters of values that tend to increase at other, uneven rates in the sequence.
PROG
(PARI) lista(nn) = my(list=List(), k=1); while (k < nn, my(s="", n=digits(k)[1]); for (j=1, n, s = concat(s, Str(k+j-1)); ); listput(list, eval(s)); k += n; ); Vec(list); \\ Michel Marcus, Oct 14 2023
(Python)
from itertools import islice
def A366585_gen(): # generator of terms
a = 1
while True:
c = a+int(str(a)[0])
yield int(''.join(str(i) for i in range(a, c)))
a = c
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Tamas Sandor Nagy, Oct 14 2023
STATUS
approved