OFFSET
1,2
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
PROG
(PARI)
up_to = 20000;
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.
A230593(n) = sumdiv(n, d, ((1==d)||isprime(d))*(n/d));
v349337 = DirInverseCorrect(vector(up_to, n, A230593(n)));
A349337(n) = v349337[n];
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Nov 15 2021
STATUS
approved