OFFSET
1,3
COMMENTS
Multiplicative because A320111 is.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..100000
FORMULA
a(1) = 1, and for n > 1, a(n) = -Sum_{d|n, d<n} A320111(n/d) * a(d).
Multiplicative with a(2^e) = A010892(e+2) and for a prime p > 2, a(p) = -2, a(p^2) = 1 and a(p^e) = 0 when e > 2. - Sebastian Karlsson, Oct 21 2022
Dirichlet g.f.: 4^s/(zeta(s)^2*(1 - 2^s + 4^s)). - Amiram Eldar, Dec 30 2022
MATHEMATICA
f[2, e_] := Switch[Mod[e, 6], 0, 0, 1, -1, 2, -1, 3, 0, 4, 1, 5, 1]; f[p_, 1] = -2; f[p_, 2] = 1; f[p_, e_] := 0; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Dec 30 2022 *)
PROG
CROSSREFS
KEYWORD
sign,mult
AUTHOR
Antti Karttunen, Jul 15 2022
STATUS
approved