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”).

A242481
a(n) = ((n*(n+1)/2) mod n + sigma(n) mod n + antisigma(n) mod n) / n.
7
0, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1
OFFSET
1,4
COMMENTS
a(1) = 0. If there is no odd multiply-perfect number then a(n) = 1 or 2 for n >= 2. See A242482 = numbers m such that a(n) = 1, A242483 = numbers m such that a(n) = 2. If there are any odd multiply-perfect numbers m > 1 then a(m) = 0.
LINKS
FORMULA
a(n) = (A142150(n) + A054024(n) + A229110(n)) / n = ((A000217(n) mod n) + (A000203(n) mod n) + (A024816(n) mod n)) / n.
a(n) = A242480(n) / n.
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