OFFSET
1,3
COMMENTS
For no known n is a(n) = 1. If there is such an n it must be greater than 10^35 and have seven or more distinct prime factors (Hagis and Cohen 1982). - Jonathan Vos Post, May 01 2011
a(n) = -1 iff n is a power of 2. a(n) = 1 - n iff n is prime. - Omar E. Pol, Jan 30 2014 [If a(n) = -1 then n is called a least deficient number or an almost perfect number. All the powers of 2 are least deficient numbers but it is not known if there exists a least deficient number that is not a power of 2. See A000079. - Jianing Song, Oct 13 2019]
According to Deléglise (1998), the abundant numbers have natural density 0.2474 < A(2) < 0.2480 (cf. A302991). Since the perfect numbers having density 0, the deficient numbers have density 0.7520 < 1 - A(2) < 0.7526 (cf. A318172). - Daniel Forgues, Oct 10 2015
2-abundance of n, a special case of the k-abundance of n, defined as (sum of divisors of n) - k*n, k >= 1. - Daniel Forgues, Oct 24 2015
Not to be confused with the abundancy of n, defined as (sum of divisors of n) / n. (Cf. A017665 / A017666.) - Daniel Forgues, Oct 25 2015
REFERENCES
Richard K. Guy, "Almost Perfect, Quasi-Perfect, Pseudoperfect, Harmonic, Weird, Multiperfect and Hyperperfect Numbers." Section B2 in Unsolved Problems in Number Theory, 2nd ed., New York: Springer-Verlag, pp. 45-53, 1994.
LINKS
J. G. Wurtzel, Table of n, a(n) for n = 1..10000 [This replaces an earlier b-file computed by T. D. Noe]
Nichole Davis, Dominic Klyve and Nicole Kraght, On the difference between an integer and the sum of its proper divisors, Involve, Vol. 6 (2013), No. 4, 493-504; DOI: 10.2140/involve.2013.6.493.
Marc Deléglise, Bounds for the density of abundant integers, Experiment. Math. Volume 7, Issue 2 (1998), 137-143.
Peter Hagis Jr. and Graeme L. Cohen, Some Results Concerning Quasiperfect Numbers, J. Austral. Math. Soc. Ser. A 33, 275-286, 1982.
Eric Weisstein's World of Mathematics, Abundance.
Eric Weisstein's World of Mathematics, Abundancy.
Eric Weisstein's World of Mathematics, Quasiperfect Number.
FORMULA
a(n) = A001065(n) - n. - Omar E. Pol, Dec 27 2013
Sum_{k=1..n} a(k) ~ c * n^2, where c = Pi^2/12 - 1 = -0.1775329665... . - Amiram Eldar, Apr 06 2024
EXAMPLE
For n = 10 the divisors of 10 are 1, 2, 5, 10. The sum of proper divisors of 10 minus 10 is 1 + 2 + 5 - 10 = -2, so the abundance of 10 is a(10) = -2. - Omar E. Pol, Dec 27 2013
MAPLE
with(numtheory); n->sigma(n) - 2*n;
MATHEMATICA
Array[Total[Divisors[#]]-2#&, 70] (* Harvey P. Dale, Sep 16 2011 *)
Table[DivisorSigma[1, n] - 2*n, {n, 1, 70}] (* Amiram Eldar, Jun 09 2022 *)
PROG
(PARI) a(n)=sigma(n)-2*n \\ Charles R Greathouse IV, Nov 20 2012
(Magma) [SumOfDivisors(n)-2*n: n in [1..100]]; // Vincenzo Librandi, Oct 11 2015
(Python)
from sympy import divisor_sigma
def A033880(n): return divisor_sigma(n)-(n<<1) # Chai Wah Wu, Apr 12 2024
CROSSREFS
KEYWORD
sign,nice
AUTHOR
EXTENSIONS
Definition corrected Jul 04 2005
STATUS
approved