OFFSET
1,6
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
The first abundant number is 12. The nearest prime less than 12 is 11, so a(1) = 12 - 11 = 1. Similarly, the sixth abundant number is 36. The nearest prime less than 36 is 31, so a(6) = 36 - 31= 5.
MATHEMATICA
fQ[n_] := DivisorSigma[1, n] > 2 n; f[n_] := n - NextPrime[n, -1]; f@# & /@ Select[ Range@ 450, fQ] (* Robert G. Wilson v, Jul 23 2010 *)
#-NextPrime[#, -1]&/@(Select[Range[500], DivisorSigma[1, #]>2#&]) (* Harvey P. Dale, May 21 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason G. Wurtzel, Jul 21 2010
EXTENSIONS
a(15) onwards from Robert G. Wilson v, Jul 23 2010
STATUS
approved