OFFSET
1,3
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
Rémy Sigrist, C program
PROG
(C) See Links section.
(Python)
from collections import Counter
from itertools import count, islice
def agen():
num, inventory = 0, Counter([0, 0])
yield 0
for k in count(2):
c = [inventory[num], num]
if c[0] == 0: yield num; num = 0
else: num = num + 1
inventory.update(c)
print(list(islice(agen(), 63))) # Michael S. Branicky, Sep 25 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 24 2022
EXTENSIONS
More terms from Rémy Sigrist, Sep 25 2022
STATUS
approved