OFFSET
1,6
COMMENTS
LINKS
Daniel Forgues, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = omega(n) * (-1)^mu(n), where mu is the Moebius function.
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
KEYWORD
sign
AUTHOR
Daniel Forgues, Mar 14 2009
EXTENSIONS
Edited by Joerg Arndt, Feb 12 2024
STATUS
approved