OFFSET
1,2
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
EXAMPLE
The ratio a(n)/A349630(n) for n = 1..15: 1/1, -3/2, -4/3, 1/2, -6/5, 2/1, -8/7, 0/1, 1/3, 9/5, -12/11, -2/3, -14/13, 12/7, 8/5.
MATHEMATICA
f[1] = 1; f[n_] := f[n] = -DivisorSum[n, f[#] * DivisorSigma[1, n/#] * #/n &, # < n &]; Numerator @ Array[f, 100] (* Amiram Eldar, Nov 28 2021 *)
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.
Abi(n) = (sigma(n)/n);
vDirInv_of_Abi = DirInverseCorrect(vector(up_to, n, Abi(n)));
A349629(n) = numerator(vDirInv_of_Abi[n]);
CROSSREFS
KEYWORD
sign,frac
AUTHOR
Antti Karttunen, Nov 27 2021
STATUS
approved