OFFSET
0,3
LINKS
Michael S. Branicky, Table of n, a(n) for n = 0..10000
PROG
(Python)
from collections import Counter
from itertools import islice
def agen(): # generator of terms
a, c = [0], Counter()
while True:
yield a[-1]
c[a[-1]] += 1
a.append(a[-1] - a[a[-1]] if c[a[-1]] == 1 else c[a[-1]])
print(list(islice(agen(), 100))) # Michael S. Branicky, Feb 15 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Austin Blake, Feb 14 2026
STATUS
approved
