OFFSET
1,3
COMMENTS
mu(k)=-1 if k is the product of an odd number of distinct primes. See A057627 for mu(k)=0.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
MAPLE
ListTools:-PartialSums([seq(-min(numtheory:-mobius(n), 0), n=1..100)]); # Robert Israel, Jan 08 2018
MATHEMATICA
a[n_]:=Sum[Boole[MoebiusMu[k]==-1], {k, n}]; Array[a, 78] (* Stefano Spezia, Jan 30 2023 *)
PROG
(PARI) for(n=1, 150, print1(sum(i=1, n, if(moebius(i)+1, 0, 1)), ", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, May 02 2002
STATUS
approved