OFFSET
1,1
EXAMPLE
The perfect numbers are all terms.
It is an infinite sequence since it includes all the powers of 2 (A000079) that are larger than 8 (as almost-perfect numbers).
MATHEMATICA
abu[x_] := Abs[DivisorSigma[1, x]-2*x]; Do[If[ !Greater[abu[n], Log[Log[n]]//N], Print[n]], {n, 1, 1000000}]
PROG
(PARI) is(n) = n > 1 && abs(sigma(n)-2*n) < log(log(n)); \\ Amiram Eldar, Jul 24 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 20 2003
EXTENSIONS
a(28)-a(34) from Donovan Johnson, Dec 21 2008
a(35)-a(36) from Amiram Eldar, Jul 24 2024
STATUS
approved