login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A378524
Dirichlet inverse of A333794.
2
1, -3, -6, 2, -12, 23, -20, 0, 14, 47, -36, -27, -40, 79, 102, 0, -48, -81, -64, -57, 174, 143, -96, 10, 68, 159, -24, -97, -112, -517, -116, 0, 314, 191, 360, 170, -128, 255, 350, 22, -144, -885, -176, -177, -400, 383, -240, 0, 218, -393, 414, -197, -216, 211, 656, 38, 566, 447, -284, 947, -232, 463, -696, 0, 724
OFFSET
1,2
LINKS
FORMULA
a(1) = 1, and for n > 1, a(n) = -Sum_{d|n, d<n} A333794(n/d) * a(d).
PROG
(PARI)
A052126(n) = if(1==n, n, (n/vecmax(factor(n)[, 1])));
A333794(n) = if(1==n, n, n + A333794(n-A052126(n)));
memoA378524 = Map();
A378524(n) = if(1==n, 1, my(v); if(mapisdefined(memoA378524, n, &v), v, v = -sumdiv(n, d, if(d<n, A333794(n/d)*A378524(d), 0)); mapput(memoA378524, n, v); (v)));
CROSSREFS
Cf. also A378523.
Sequence in context: A268717 A002516 A073807 * A345671 A090774 A147995
KEYWORD
sign,new
AUTHOR
Antti Karttunen, Dec 01 2024
STATUS
approved