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
FORMULA
a(n) = A048050(n) mod n
MAPLE
with(numtheory): [seq((sigma(i) - i - 1) mod i, i=2..100)];
MATHEMATICA
Table[Mod[DivisorSigma[1, n]-n-1, n], {n, 90}] (* Harvey P. Dale, Dec 01 2011 *)
PROG
(PARI) A054013(n) = ((sigma(n)-n-1) % n); \\ Antti Karttunen, Oct 30 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Asher Auel, Jan 17 2000
STATUS
approved