OFFSET
1,1
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
FORMULA
MATHEMATICA
s[n_] := n * DivisorSum[n, 1/# &, !CompositeQ[#] &]; sinv[1] = 1; sinv[n_] := sinv[n] = -DivisorSum[n, sinv[#] * s[n/#] &, # < n &]; f[p_, e_] := e/p; d[1] = 1; d[n_] := n*(1 + Plus @@ f @@@ FactorInteger[n]); dinv[1] = 1; dinv[n_] := dinv[n] = -DivisorSum[n, dinv[#] * d[n/#] &, # < n &]; a[n_] := DivisorSum[n, dinv[#] * s[n/#] + sinv[#] * d[n/#] &]; Array[a, 100] (* Amiram Eldar, Nov 18 2021 *)
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Nov 17 2021
STATUS
approved