OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16383
PROG
(PARI)
up_to = 20000;
DirInverse(v) = { my(u=vector(#v)); u[1] = (1/v[1]); for(n=2, #v, u[n] = -sumdiv(n, d, if(d<n, v[n/d]*u[d], 0))); (u) }; \\ Compute the Dirichlet inverse of the sequence given in input vector v.
A003961(n) = my(f = factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); \\ From A003961
v323893 = DirInverse(vector(up_to, n, A048673(n)));
A323893(n) = v323893[n];
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Feb 08 2019
STATUS
approved