OFFSET
1,4
COMMENTS
LINKS
Jaroslav Krizek, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(8) = [(8*(8+1)/2) mod 8 + sigma(8) mod 8 + antisigma(8) mod 8] / 8 = (36 mod 8 + 15 mod 8 + 21 mod 8) / 8 = (4 + 7 + 5 ) / 8 = 2.
PROG
(Magma) [((n*(n+1)div 2 mod n + SumOfDivisors(n) mod n + (n*(n+1)div 2-SumOfDivisors(n)) mod n))div n: n in [1..1000]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, May 16 2014
STATUS
approved