OFFSET
1,4
COMMENTS
Partial sums of A065043.
LINKS
Eric Weisstein's World of Mathematics, Polya Conjecture
FORMULA
MATHEMATICA
Table[Length[Select[Range[n], EvenQ[PrimeOmega[#]] &]], {n, 75}] (* Alonso del Arte, May 28 2012 *)
PROG
(PARI) first(n)=my(s); vector(n, k, s+=1-bigomega(k)%2) \\ Charles R Greathouse IV, Sep 02 2015
(Python)
from functools import reduce
from operator import ixor
from sympy import factorint
def A055037(n): return sum(1 for i in range(1, n+1) if not (reduce(ixor, factorint(i).values(), 0)&1)) # Chai Wah Wu, Jan 01 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Antreas P. Hatzipolakis (xpolakis(AT)otenet.gr), Jun 01 2000
EXTENSIONS
Formula and more terms from Vladeta Jovovic, Dec 03 2001
Offset corrected by Ray Chandler, May 30 2012
STATUS
approved