OFFSET
1,30
COMMENTS
Dirichlet inverse of A087802. - Antti Karttunen, Nov 29 2024
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
Eric Weisstein's World of Mathematics, Distinct Prime Factors
FORMULA
G.f. A(x) satisfies: A(x) = x - Sum_{k>=2} omega(k) * A(x^k).
Dirichlet g.f.: 1 / (1 + zeta(s) * primezeta(s)).
MATHEMATICA
a[n_] := If[n == 1, n, -Sum[If[d < n, PrimeNu[n/d] a[d], 0], {d, Divisors[n]}]]; Table[a[n], {n, 90}]
PROG
(PARI)
memoA334743 = Map();
A334743(n) = if(1==n, 1, my(v); if(mapisdefined(memoA334743, n, &v), v, v = -sumdiv(n, d, if(d<n, omega(n/d)*A334743(d), 0)); mapput(memoA334743, n, v); (v))); \\ Antti Karttunen, Nov 29 2024
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, May 09 2020
STATUS
approved