cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A290488 Lower ends of record gaps between numbers that are either prime or twice a prime.

Original entry on oeis.org

2, 7, 47, 181, 467, 526, 1069, 1262, 1327, 2477, 3274, 5119, 12854, 20809, 28229, 31397, 338038, 520462, 546391, 1050631, 1761206, 1964987, 3466943, 6084986, 27348829, 27915754, 111108769, 113652443, 230126378, 231902267, 327764081, 438981007, 581755318, 1837981547, 2489382697
Offset: 1

Views

Author

Bobby Jacobs, Aug 03 2017

Keywords

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.

Examples

			a(3) = 47 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.
		

Crossrefs

Programs

  • Mathematica
    nxt[n_] := Block[{k = n +1}, While[ !PrimeQ[ k] && ! PrimeQ[ k/2], k++]; k]; p = 2; q = 3; mx = 0; lst = {}; While[p < 2500000000, If[q > mx + p, mx = q - p; AppendTo[ lst, p]]; p = q; q = nxt@ q]; lst (* Robert G. Wilson v, Aug 03 2017 *)

Formula

a(n) = A290489(n) - A290541(n).

Extensions

a(11) onward from Robert G. Wilson v, Aug 03 2017