OFFSET
1,2
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 1..10000
PROG
(Python)
from collections import Counter
from itertools import count, islice
def A397177_gen(): # generator of terms
alst, an, c = [], 0, Counter()
for n in count(1):
an = c[an]
yield n - an
c.update(an+ai for ai in alst)
alst.append(an)
print(list(islice(A397177_gen(), 91))) # Michael S. Branicky, Jul 01 2026
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jun 30 2026
STATUS
approved