OFFSET
0,3
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..16384
Rémy Sigrist, PARI program
PROG
(PARI) See Links section.
(Python)
from itertools import count, islice
def A353710_gen(): # generator of terms
s, a, b, c, ab = {0, 1}, 0, 1, 2, 1
yield from (0, 1)
while True:
for n in count(c):
if not (n & ab or n in s):
yield c
a, b = b, n
ab = a|b
s.add(n)
while c in s:
c += 1
break
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, May 06 2022
STATUS
approved