OFFSET
1,3
COMMENTS
Dirichlet inverse of A000265.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(1) = 1; a(n) = -Sum_{d|n, d<n} A000265(n/d) * a(d).
Multiplicative with a(p) = -1 for p = 2 and -p for odd primes p, and a(p^e) = 0 if e > 1. - Amiram Eldar, Dec 02 2020
MATHEMATICA
a[1] = 1; a[n_] := -Sum[(n/d)/2^IntegerExponent[n/d, 2] a[d], {d, Most @ Divisors[n]}]; Table[a[n], {n, 1, 75}]
Table[MoebiusMu[n] n/2^IntegerExponent[n, 2], {n, 1, 75}]
f[2, e_] := -Boole[e == 1]; f[p_, e_] := -Boole[e == 1]*p; a[1] = 1; a[n_] := Times @@ (f @@@ FactorInteger[n]); Array[a, 100] (* Amiram Eldar, Dec 02 2020 *)
PROG
(PARI) a(n)={n*moebius(n)/2^valuation(n, 2)} \\ Andrew Howroyd, Oct 25 2019
CROSSREFS
KEYWORD
sign,mult
AUTHOR
Ilya Gutkovskiy, Oct 22 2019
STATUS
approved