OFFSET
1,3
COMMENTS
Partial sums of A066829.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Polya Conjecture
FORMULA
MATHEMATICA
Boole[OddQ[PrimeOmega[#]]]& /@ Range[100] // Accumulate (* Jean-François Alcover, Nov 21 2019 *)
PROG
(Haskell)
a055038 n = a055038_list !! (n-1)
a055038_list = scanl1 (+) a066829_list
-- Reinhard Zumkeller, Nov 19 2011
(PARI) first(n)=my(s); vector(n, k, s+=bigomega(k)%2) \\ Charles R Greathouse IV, Sep 02 2015
(Python)
from operator import ixor
from functools import reduce
from sympy import factorint
def A055038(n): return sum(1 for i in range(1, n+1) if 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 Reinhard Zumkeller, Nov 19 2011
STATUS
approved