OFFSET
0,3
LINKS
Michael S. Branicky, Table of n, a(n) for n = 0..10000
PROG
(Python)
from itertools import count, islice
def agen(): # generator of terms
A352808lst = [0, 1]; A352808set = {0, 1}; yield from [0, 1]
mink = 2
for n in count(2):
ahalf, k = A352808lst[n//2], mink
while k in A352808set or k&ahalf: k += 1
A352808lst.append(k); A352808set.add(k)
while mink in A352808set: yield A352808lst.index(mink); mink += 1
print(list(islice(agen(), 87))) # Michael S. Branicky, May 17 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 17 2022
STATUS
approved