OFFSET
1,2
PROG
(Python)
from itertools import count, islice
def A364445_gen(): # generator of terms
a = 0
for n in count(1):
b = sum(1 for k in range(n**2+1, (n+1)**2) if (m:=(~k&k-1).bit_length())&1 or (k>>m)&7<7)
yield from range(a+1, b)
a = b
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Aug 01 2023
STATUS
approved