OFFSET
0,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 0..10000
EXAMPLE
PROG
(Python)
from itertools import count, islice
def agen(): # generator of terms
A352808lst, A352808set, mink = [0], {0}, 1
for n in count(1):
yield mink
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: mink += 1
print(list(islice(agen(), 78))) # Michael S. Branicky, May 18 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 18 2022
STATUS
approved