OFFSET
1,3
LINKS
FORMULA
PROG
(PARI)
up_to = 16384;
A003961(n) = { my(f=factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); }; \\ From A003961
DirInverseCorrect(v) = { my(u=vector(#v)); u[1] = (1/v[1]); for(n=2, #v, u[n] = (-u[1]*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.
Aux347096(n) = if(1==n, n, A341512(n));
v347096 = DirInverseCorrect(vector(up_to, n, Aux347096(n)));
A347096(n) = v347096[n];
CROSSREFS
KEYWORD
sign,look
AUTHOR
Antti Karttunen, Aug 19 2021
STATUS
approved