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”).

A378219
Dirichlet inverse of A253249.
2
1, -3, -3, 2, -3, 7, -3, 0, 2, 7, -3, -4, -3, 7, 7, 0, -3, -4, -3, -4, 7, 7, -3, 0, 2, 7, 0, -4, -3, -15, -3, 0, 7, 7, 7, 2, -3, 7, 7, 0, -3, -15, -3, -4, -4, 7, -3, 0, 2, -4, 7, -4, -3, 0, 7, 0, 7, 7, -3, 8, -3, 7, -4, 0, 7, -15, -3, -4, 7, -15, -3, 0, -3, 7, -4, -4, 7, -15, -3, 0, 0, 7, -3, 8, 7, 7, 7, 0, -3, 8, 7
OFFSET
1,2
LINKS
FORMULA
a(1) = 1, and for n > 1, a(n) = -Sum_{d|n, d<n} A253249(n/d) * a(d).
PROG
(PARI)
A074206(n) = if(n>1, sumdiv(n, i, if(i<n, A074206(i))), n); \\ From A074206
A253249(n) = if(1==n, n, 4*A074206(n)-1);
memoA378219 = Map();
A378219(n) = if(1==n, 1, my(v); if(mapisdefined(memoA378219, n, &v), v, v = -sumdiv(n, d, if(d<n, A253249(n/d)*A378219(d), 0)); mapput(memoA378219, n, v); (v)));
CROSSREFS
Sequence in context: A262212 A378451 A123676 * A326814 A374902 A122775
KEYWORD
sign
AUTHOR
Antti Karttunen, Nov 23 2024
STATUS
approved