OFFSET
1,9
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
PROG
(PARI)
up_to = 65537;
A003602(n) = (1+(n>>valuation(n, 2)))/2;
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
v323881 = DirInverseCorrect(vector(up_to, n, A126760(n)));
A323881(n) = v323881[n];
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Apr 20 2022
STATUS
approved