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!)
A060862 a(n) = 0 if n is deficient, 1 if n is abundant, 2 if n is perfect. 2
0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 2, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,6
LINKS
EXAMPLE
a(6) = 2 because 6 = 1+2+3 and is perfect.
a(10) = 0 because 10 > 1+2+5 and is deficient.
a(12) = 1 because 12 < 1+2+3+4+6 and is abundant.
MATHEMATICA
Table[Sign[DivisorSigma[1, n] - 2*n], {n, 1, 100}] /. {-1 -> 0, 0 -> 2, 1 -> 1} (* Amiram Eldar, Mar 15 2024 *)
PROG
(PARI) A060862(n) = { my(def=((2*n)-sigma(n))); if(def>0, 0, if(def<0, 1, 2)); }; \\ Antti Karttunen, Sep 27 2018
CROSSREFS
Sequence in context: A080225 A122841 A326075 * A325801 A325194 A066087
KEYWORD
easy,nonn
AUTHOR
Jason Earls, May 04 2001
EXTENSIONS
More terms from Erich Friedman, Jun 01 2001
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 April 24 09:18 EDT 2024. Contains 371935 sequences. (Running on oeis4.)