OFFSET
1,4
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
MATHEMATICA
k[n_] := (n / 2^IntegerExponent[n, 2] + 1)/2; kinv[1] = 1; kinv[n_] := kinv[n] = -DivisorSum[n, kinv[#] * k[n/#] &, # < n &]; a[n_] := DivisorSum[n, # * kinv[n/#] &]; Array[a, 100] (* Amiram Eldar, Nov 18 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.
A003602(n) = (1+(n>>valuation(n, 2)))/2;
v349134 = DirInverseCorrect(vector(up_to, n, A003602(n)));
A349134(n) = v349134[n];
A003602(n) = (1+(n>>valuation(n, 2)))/2;
A055615(n) = (n*moebius(n));
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Nov 17 2021
STATUS
approved