OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n=1..2000
FORMULA
a(n) = sum_{d|n} d * mu(n).
Multiplicative with a(p^e) = -p-1, if e = 1, 0 otherwise. - Mitch Harris, Jun 27 2005, sign flipped by R. J. Mathar, May 29 2011
sum(n>0, a(n)/n^s) = product(p prime, 1-p^(-s)-p^(1-s) ). - Ralf Stephan, Jul 07 2013
EXAMPLE
n=6: divisors of 6 are = [1, 2, 3, 6] and 1 * mu(6) + 2 * mu(6) + 3 * mu(6) + 6 * mu(6) = 12.
MATHEMATICA
a[n_] := DivisorSigma[1, n] MoebiusMu[n]; Array[a, 90] (* Jean-François Alcover, Dec 05 2015 *)
PROG
(PARI) j=[]; for(n=1, 200, j=concat(j, sumdiv(n, d, d*moebius(n)))); j
(PARI) a(n)=if(n<1, 0, direuler(p=2, n, 1-X-p*X)[n]) /* Ralf Stephan, Jul 07 2013 */
(PARI) { for (n=1, 2000, write("b063441.txt", n, " ", direuler(p=2, n, 1-X-p*X)[n]) ) } \\ Harry J. Smith, Aug 21 2009
CROSSREFS
KEYWORD
easy,sign,mult
AUTHOR
Jason Earls, Jul 23 2001
STATUS
approved