login
A158210
a(n) = omega(n) * (-1)^mu(n), where mu is the Moebius function.
2
0, -1, -1, 1, -1, -2, -1, 1, 1, -2, -1, 2, -1, -2, -2, 1, -1, 2, -1, 2, -2, -2, -1, 2, 1, -2, 1, 2, -1, -3, -1, 1, -2, -2, -2, 2, -1, -2, -2, 2, -1, -3, -1, 2, 2, -2, -1, 2, 1, 2, -2, 2, -1, 2, -2, 2, -2, -2, -1, 3, -1, -2, 2, 1, -2, -3, -1, 2, -2, -3, -1, 2, -1, -2, 2, 2, -2, -3, -1, 2, 1
OFFSET
1,6
COMMENTS
Numbers k such that: a(k) < -1: A120944; a(k) = -1: A000040, a(k) > -1: A162966; a(k) = +1: A246547; a(k) > +1: A126706.
LINKS
FORMULA
a(n) = omega(n) * (-1)^mu(n), where mu is the Moebius function.
a(n) = A001221(n) * (-1)^A008683(n).
a(mn) = [|a(m)| + |a(n)|] * max(sign[a(n)], sign[a(m)]), gcd(m,n) = 1, m > 1, n > 1.
Sum_{k=1..n} a(k) = (1-2/zeta(2)) * n * log(log(n)) + O(n). - Amiram Eldar, Oct 05 2024
MATHEMATICA
Table[(-1)^MoebiusMu[n]*PrimeNu[n], {n, 81}] (* L. Edson Jeffery, Dec 08 2014 *)
PROG
(PARI) a(n) = {my(f= factor(n)); omega(f) * (-1)^moebius(f); } \\ Amiram Eldar, Oct 05 2024
CROSSREFS
Cf. A001221 (omega), A008683 (mu).
Sequence in context: A237353 A293460 A231813 * A322307 A087802 A079553
KEYWORD
sign
AUTHOR
Daniel Forgues, Mar 14 2009
EXTENSIONS
Edited by Joerg Arndt, Feb 12 2024
STATUS
approved