OFFSET
1,6
COMMENTS
LINKS
FORMULA
a(1) = 1, and for n > 1, a(n) = -Sum_{d|n, d<n} A010051(n/d) * a(d).
Dirichlet g.f.: 1/(1 + B(s)), where B(s) is d.g.f. of characteristic function of primes. - Vaclav Kotesovec, Jul 22 2022
MATHEMATICA
s[n_] := If[CompositeQ[n], 0, 1]; a[1] = 1; a[n_] := a[n] = -DivisorSum[n, s[n/#]*a[#] &, # < n &]; Array[a, 100] (* Amiram Eldar, Jul 21 2022 *)
PROG
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Jul 21 2022
STATUS
approved