OFFSET
0,2
PROG
(Python)
from itertools import accumulate, groupby, repeat
def K(n, _):
c, s = "12", ""
for i, k in enumerate(str(n)): s += c[i%2]*int(k)
return int(s + c[(i+1)%2])
def aupton(nn): return list(accumulate(repeat(1, nn+1), K))
print(aupton(8)) # Michael S. Branicky, Jan 12 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 07 2000
EXTENSIONS
More terms from Antonio G. Astudillo (afg_astudillo(AT)lycos.com), Apr 05 2003
STATUS
approved