OFFSET
1,1
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16384
PROG
(PARI)
up_to = 65537;
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.
A005187(n) = { my(s=n); while(n>>=1, s+=n); s; };
v346237 = DirInverseCorrect(vector(up_to, n, A005187(n)));
A346237(n) = v346237[n];
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Jul 13 2021
STATUS
approved