login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A054013
Chowla function of n read modulo n.
7
0, 0, 0, 2, 0, 5, 0, 6, 3, 7, 0, 3, 0, 9, 8, 14, 0, 2, 0, 1, 10, 13, 0, 11, 5, 15, 12, 27, 0, 11, 0, 30, 14, 19, 12, 18, 0, 21, 16, 9, 0, 11, 0, 39, 32, 25, 0, 27, 7, 42, 20, 45, 0, 11, 16, 7, 22, 31, 0, 47, 0, 33, 40, 62, 18, 11, 0, 57, 26, 3, 0, 50, 0, 39, 48, 63, 18, 11, 0, 25, 39, 43, 0
OFFSET
1,4
COMMENTS
Chowla's function (A048050) = sum of divisors of n except 1 and n.
LINKS
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