OFFSET
0,2
PROG
(PARI) isA004215(n)= n\4^valuation(n, 4)%8==7 \\ after M. F. Hasler
a364444(n) = sum (k=n^2+1, n^2+2*n, !isA004215(k))
(Python)
def A364444(n): return 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) # Chai Wah Wu, Aug 01 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Aug 01 2023
STATUS
approved