login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A088818
Numbers k whose abundance-radius does not exceed log(log(k)), i.e., abs(sigma(k)-2*k) <= log(log(k)).
1
6, 16, 28, 32, 64, 128, 256, 496, 512, 1024, 1952, 2048, 4096, 8128, 8192, 16384, 32768, 32896, 65536, 130304, 131072, 262144, 522752, 524288, 1048576, 2097152, 4194304, 8382464, 8388608, 16777216, 33550336, 33554432, 67108864, 134193152, 134217728, 268435456
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
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