OFFSET
1,2
COMMENTS
A variant of A109812. Sharing an even number of common 1-bits is equivalent to zero correlation between sequences in the vector space F_2^k.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, PARI program
PROG
(PARI) \\ See Links section.
(Python)
from itertools import islice
def A352716_gen(): # generator of terms
yield 1
l1, s, b = 1, 2, set()
while True:
i = s
while True:
if not (i in b or (i & l1).bit_count() % 2):
yield i
l1 = i
b.add(i)
while s in b:
b.remove(s)
s += 1
break
i += 1
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved