OFFSET
1,1
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16384
FORMULA
MATHEMATICA
f[p_, e_] := ((p-1)/2^IntegerExponent[p-1, 2])^e; s[1] = 1; s[n_] := Times @@ f @@@ FactorInteger[n]; sinv[1] = 1; sinv[n_] := sinv[n] = -DivisorSum[n, sinv[#] * s[n/#] &, # < n &]; a[n_] := s[n] + sinv[n]; Array[a, 100] (* Amiram Eldar, Dec 08 2021 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 08 2021
STATUS
approved