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

A378749
Dirichlet inverse of A378747, where A378747(n) = A048673(n) - A001065(n).
0
1, -1, -2, -1, -3, 2, -5, -4, -5, 3, -6, -1, -8, 3, 3, -13, -9, -3, -11, -1, 3, 6, -14, -4, -10, 6, -22, -3, -15, -5, -18, -37, 6, 9, 4, -7, -20, 9, 6, -4, -21, -7, -23, -1, -1, 10, -26, -10, -28, -2, 9, -3, -29, -18, 7, -4, 9, 15, -30, 3, -33, 14, 1, -94, 7, -8, -35, -1, 10, -8, -36, 4, -39, 18, 2, -3, 7, -10, -41
OFFSET
1,3
FORMULA
a(1) = 1, and for n > 1, a(n) = -Sum_{d|n, d<n} A378747(n/d) * a(d).
PROG
(PARI)
A048673(n) = { my(f = factor(n)); for(i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); (factorback(f)+1)/2; };
A378747(n) = (A048673(n)-(sigma(n)-n));
memoA378749 = Map();
A378749(n) = if(1==n, 1, my(v); if(mapisdefined(memoA378749, n, &v), v, v = -sumdiv(n, d, if(d<n, A378747(n/d)*A378749(d), 0)); mapput(memoA378749, n, v); (v)));
CROSSREFS
Cf. also A378750.
Sequence in context: A123231 A246995 A238782 * A058736 A097451 A005916
KEYWORD
sign,new
AUTHOR
Antti Karttunen, Dec 09 2024
STATUS
approved