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”).

A179626
Distance between the n-th abundant number and the nearest prime below it.
1
1, 1, 1, 1, 1, 5, 3, 1, 1, 1, 3, 1, 5, 3, 1, 5, 1, 1, 5, 1, 7, 3, 1, 1, 1, 3, 1, 7, 13, 1, 1, 1, 5, 1, 5, 3, 5, 1, 1, 3, 1, 5, 1, 3, 1, 1, 5, 9, 11, 5, 9, 11, 1, 1, 1, 1, 5, 1, 1, 3, 1, 1, 1, 5, 3, 1, 5, 1, 7, 11, 13, 1, 1, 1, 3, 7, 13, 5, 3, 5, 1, 1, 3, 1, 1, 5, 7, 1, 5, 5, 1, 1, 1, 3, 7, 3, 1, 7, 5, 7, 1, 5, 1
OFFSET
1,6
LINKS
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
Sequence in context: A368602 A132199 A111142 * A174965 A159671 A094853
KEYWORD
nonn
AUTHOR
Jason G. Wurtzel, Jul 21 2010
EXTENSIONS
a(15) onwards from Robert G. Wilson v, Jul 23 2010
STATUS
approved