login
A364957
Dirichlet inverse of A365463.
2
1, -2, -3, 3, -1, 6, -1, -12, 0, 3, -1, -9, -1, 2, 3, 35, -1, 0, -1, -10, 3, 3, -1, 36, -24, 2, 0, -3, -1, -9, -1, -82, 3, 2, -5, 0, -1, 2, 3, 37, -1, -6, -1, -10, 0, 3, -1, -105, 0, 46, 3, -6, -1, 0, -9, 18, 3, 3, -1, 30, -1, 2, 0, 226, -3, -9, -1, -6, 3, 12, -1, 0, -1, 2, 72, -3, 1, -6, -1, -127, 0, 3, -1, 9, -3, 2, 3
OFFSET
1,2
LINKS
FORMULA
a(1) = 1, and for n > 1, a(n) = -Sum_{d|n, d<n} A365463(n/d) * a(d).
PROG
(PARI)
\\ Uses also code from A356867:
A365463(n) = gcd(n, A356867(n));
memoA364957 = Map();
A364957(n) = if(1==n, 1, my(v); if(mapisdefined(memoA364957, n, &v), v, v = -sumdiv(n, d, if(d<n, A365463(n/d)*A364957(d), 0)); mapput(memoA364957, n, v); (v)));
CROSSREFS
Cf. also A364257.
Sequence in context: A298599 A138677 A193885 * A076239 A019798 A214734
KEYWORD
sign
AUTHOR
Antti Karttunen, Sep 16 2023
STATUS
approved