OFFSET
1,3
LINKS
Jaroslav Krizek, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
a(3) = 2 because sigma(3) = 4 = 1 mod 3 and a(2) + 1 = 2.
a(4) = 5 because sigma(4) = 7 = 3 mod 4 and a(3) + 3 = 5.
a(5) = 6 because sigma(5) = 6 = 1 mod 5 and a(4) + 1 = 6.
MATHEMATICA
Table[Sum[Mod[DivisorSigma[1, i], i], {i, n}], {n, 60}] (* Alonso del Arte, Mar 30 2014 *)
Accumulate[Table[Mod[DivisorSigma[1, n], n], {n, 60}]] (* Harvey P. Dale, Jun 06 2021 *)
PROG
(Magma) [&+[SumOfDivisors (k) mod k: k in [1..n]]: n in [1..1000]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Mar 28 2014
STATUS
approved