OFFSET
1,4
COMMENTS
Chowla's function (A048050) = sum of divisors of n except 1 and n.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16384
MAPLE
with(numtheory): [seq((sigma(i)-i-1) mod tau(i), i=1..120)];
MATHEMATICA
Array[Mod[DivisorSigma[1, #] - # - 1, DivisorSigma[0, #]] &, 103] (* Michael De Vlieger, Oct 30 2017 *)
PROG
(PARI) A054014(n) = ((sigma(n)-n-1) % numdiv(n)); \\ Antti Karttunen, Oct 30 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Asher Auel, Jan 17 2000
STATUS
approved