login
A373923
a(n) = Sum_{d|n} (-1)^pi(d).
2
1, 0, 2, 1, 0, 0, 2, 2, 3, 0, 0, 0, 2, 2, 2, 3, 0, 0, 2, 2, 4, 0, 0, 0, -1, 0, 2, 2, 2, 2, 0, 2, 0, -2, 0, -1, 2, 2, 4, 4, 0, 2, 2, 2, 4, 0, 0, 0, 1, -2, 0, 0, 2, 0, 0, 4, 4, 2, 0, 2, 2, 0, 6, 3, 2, 0, 0, -2, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 2, 6, 3, 0, 0, 0, -2, 0, 2, 2
OFFSET
1,3
COMMENTS
Inverse Möbius transform of (-1)^pi(n) (A065357).
LINKS
MAPLE
f:= proc(n) local d; add((-1)^numtheory:-pi(d), d=numtheory:-divisors(n)) end proc:
map(f, [$1..100]); # Robert Israel, Sep 13 2024
MATHEMATICA
Table[DivisorSum[n, (-1)^PrimePi[#] &], {n, 100}]
CROSSREFS
Cf. A000720 (pi), A065357, A065358 (Jacob's Ladder sequence).
Sequence in context: A352194 A327757 A373122 * A191400 A168315 A120730
KEYWORD
sign
AUTHOR
Wesley Ivan Hurt, Jun 22 2024
STATUS
approved