The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A290489 Upper ends of record gaps between numbers that are either prime or twice a prime. 5
3, 10, 53, 191, 478, 538, 1082, 1277, 1346, 2498, 3299, 5147, 12889, 20849, 28277, 31454, 338098, 520526, 546461, 1050706, 1761289, 1965077, 3467038, 6085103, 27348949, 27915898, 111108917, 113652593, 230126531, 231902434, 327764249, 438981203, 581755523, 1837981759, 2489382911 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The gap between 31397 and 31454 is due to the record prime gap between 31397 and 31469 being almost exactly twice the record prime gap between 15683 and 15727.
LINKS
FORMULA
a(n) = A290488(n) + A290541(n).
EXAMPLE
a(3) = 53 because the next number that is a prime or twice a prime after 47 is 53, and that is a record gap of size 6.
MATHEMATICA
p = op = 2; r = 0; Reap[While[p < 10^6, p++; If[PrimeQ[p] || PrimeQ[p/2], g = p - op; If[g > r, Sow@p; r = g]; op = p]]][[2, 1]] (* Giovanni Resta, Aug 04 2017 *)
CROSSREFS
Sequence in context: A363209 A052446 A362062 * A002873 A309910 A042171
KEYWORD
nonn
AUTHOR
Bobby Jacobs, Aug 03 2017
EXTENSIONS
a(17)-a(35) from Giovanni Resta, Aug 04 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 12 19:25 EDT 2024. Contains 372494 sequences. (Running on oeis4.)