login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A184348 A307614 A363057 * A228287 A213636 A192393
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, May 16 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 20 08:27 EDT 2024. Contains 374442 sequences. (Running on oeis4.)