login
A359786
Dirichlet inverse of A322353, where A322353(n) is the number of factorizations of n into distinct semiprimes.
2
1, 0, 0, -1, 0, -1, 0, 0, -1, -1, 0, 0, 0, -1, -1, 1, 0, 0, 0, 0, -1, -1, 0, 1, -1, -1, 0, 0, 0, 0, 0, 0, -1, -1, -1, 2, 0, -1, -1, 1, 0, 0, 0, 0, 0, -1, 0, 0, -1, 0, -1, 0, 0, 1, -1, 1, -1, -1, 0, 2, 0, -1, 0, -1, -1, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, -1, 0, 0, 0, 1, -1, 0, 2, -1, -1, -1, 1, 0, 2, -1, 0, -1, -1, -1, -1, 0, 0, 0, 2, 0, 0, 0, 1, 0
OFFSET
1,36
LINKS
FORMULA
a(1) = 1, and for n > 1, a(n) = -Sum_{d|n, d<n} A322353(n/d) * a(d).
PROG
(PARI)
A322353(n, m=n) = if(1==n, 1, my(s=0); fordiv(n, d, if((2==bigomega(d)&&(d<=m)), s += A322353(n/d, d-1))); (s));
memoA359786 = Map();
A359786(n) = if(1==n, 1, my(v); if(mapisdefined(memoA359786, n, &v), v, v = -sumdiv(n, d, if(d<n, A322353(n/d)*A359786(d), 0)); mapput(memoA359786, n, v); (v)));
CROSSREFS
Cf. A320655 (seems to give the absolute values), A322353, A359785.
Sequence in context: A348452 A309163 A320655 * A359763 A277017 A178498
KEYWORD
sign
AUTHOR
Antti Karttunen, Jan 16 2023
STATUS
approved