OFFSET
1,2
COMMENTS
A variant of A109812. Sharing floor(k/2) common 1-bits is akin to minimal or zero correlation between sequences whose elements are in {+1,-1}.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, PARI program
PROG
(PARI) See Links section.
(Python 3.10+)
from itertools import islice
def A352715_gen(): # generator of terms
yield 1
l1, s, b, bli = 1, 2, set(), 0
while True:
i = s
while True:
if not (i in b or (i & l1).bit_count() != bli):
yield i
l1 = i
bli = l1.bit_length()//2
b.add(i)
while s in b:
b.remove(s)
s += 1
break
i += 1
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved