A294347 a(n) is the smallest number whose deficiency or abundance is equal to n, or a(n) = 0 if such a number does not exist.
6, 1, 3, 18, 5, 9, 7, 50, 22
Offset: 0
Links
- 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.
- Raven Dean, Rick Erdman, Dominic Klyve, Emily Lycette, Melissa Pidde, and Derek Wheel, Families of Values of the Excedent Function sigma(n)-2n, Missouri J. Math. Sci., Volume 27, Issue 1 (2015), 37-46.
Crossrefs
Programs
-
Mathematica
Table[k = 1; While[Abs[2 k - DivisorSigma[1, k]] != n, k++]; k, {n, 0, 8}] (* Michael De Vlieger, Oct 30 2017 *)
-
PARI
a(n) = {my(k=1); while (abs(2*k-sigma(k)) != n, k++); k;} \\ Michel Marcus, Oct 29 2017
Comments