OFFSET
0,3
COMMENTS
LINKS
Michael S. Branicky, Table of n, a(n) for n = 0..10000
EXAMPLE
For k=2, after a(2) = 2 = 10_2, we get a(5) = 5 = 101_2 and a(6) = 8 = 1000_2 since 101_2, 1000_2 have no 1's in common with 10_2.
PROG
(Python)
from itertools import count, islice
def agen(): # generator of terms
alst = [0, 1]; aset = {0, 1}; yield from alst
mink = 2
for n in count(2):
ahalf, k = alst[(n-1)//2], mink
while k in aset or k&ahalf: k += 1
alst.append(k); aset.add(k); yield k
while mink in aset: mink += 1
print(list(islice(agen(), 68))) # Michael S. Branicky, May 17 2022
CROSSREFS
KEYWORD
nonn,look
AUTHOR
N. J. A. Sloane, May 17 2022
EXTENSIONS
More terms from Michael S. Branicky, May 17 2022
STATUS
approved