OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16384
FORMULA
a(1) = 1, for n > 1, a(n) = -Sum_{d|n, d<n} A062830(n/d) * a(d).
PROG
(PARI)
up_to = 16384;
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 (correctly!).
A062830(n) = 1+(n-eulerphi(n));
v340094 = DirInverseCorrect(vector(up_to, n, A062830(n)));
A340094(n) = v340094[n];
\\ Or as:
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Jan 05 2021
STATUS
approved