OFFSET
0,1
COMMENTS
From the 26th term the sequence gets into a cycle of 46.
PROG
(Python)
def aupton(nn):
alst = [2, 2]
for n in range(2, nn+1):
prev2, anstr = sorted(str(alst[-2]) + str(alst[-1])), ""
for d in sorted(set(prev2), reverse=True):
anstr += str(prev2.count(d)) + d
alst.append(int(anstr))
return alst
print(aupton(20)) # Michael S. Branicky, Feb 02 2021
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
STATUS
approved