A373924 a(n) = Sum_{d|n} (-1)^pi(d) * mu(n/d).
1, -2, 0, 2, -2, 0, 0, 0, 0, 4, -2, -2, 0, 2, 2, 0, -2, 0, 0, -2, 0, 4, -2, 0, 0, 0, -2, -4, 0, -2, -2, -2, 0, 2, 0, 0, 0, 2, 0, 0, -2, -2, 0, -2, 0, 4, -2, 0, -2, -2, 0, -2, 0, 4, 4, 2, 0, 2, -2, 0, 0, 4, 0, 2, 2, 0, -2, -2, 0, -4, 0, 2, -2, 0, -2, -4, 0, 0, 0, 0, 2
Offset: 1
Keywords
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Programs
-
Maple
f:= proc(n) local d; add((-1)^numtheory:-pi(d)*numtheory:-mobius(n/d),d=numtheory:-divisors(n)) end proc: map(f, [$1..100]); # Robert Israel, Sep 13 2024
-
Mathematica
Table[DivisorSum[n, (-1)^PrimePi[#] MoebiusMu[n/#] &], {n, 100}]
Comments