login
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
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
KEYWORD
easy,nonn
AUTHOR
Jason Earls, May 04 2001
EXTENSIONS
More terms from Erich Friedman, Jun 01 2001
STATUS
approved