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.

Showing 1-2 of 2 results.

A269521 Primes 8k + 7 at the end of the maximal gaps in A269519.

Original entry on oeis.org

23, 71, 311, 359, 599, 6551, 37423, 42703, 66751, 183823, 259583, 308263, 471391, 1071023, 1801727, 5904247, 6886367, 16936991, 22414079, 38821039, 63978127, 84165271, 147453599, 150335431, 239423519, 300412927, 387155903, 473154943, 539527199, 760401839, 788129191
Offset: 1

Views

Author

Alexei Kourbatov, Feb 28 2016

Keywords

Comments

Subsequence of A007522.
A269519 lists the corresponding record gap sizes. See more comments there.

Examples

			The first two primes of the form 8k + 7 are 7 and 23, so a(1)=23. The next primes of this form are 31, 47; the gaps 31-23 and 47-31 are not records so nothing is added to the sequence. The next prime of this form is 71 and the gap 71-47=24 is a new record, so a(2)=71.
		

Crossrefs

Programs

  • PARI
    re=0; s=7; forprime(p=23, 1e8, if(p%8!=7, next); g=p-s; if(g>re, re=g; print1(p", ")); s=p)

A269519 Record (maximal) gaps between primes of the form 8k + 7.

Original entry on oeis.org

16, 24, 40, 48, 96, 184, 200, 216, 288, 296, 312, 344, 384, 456, 504, 560, 624, 744, 760, 776, 800, 824, 840, 864, 880, 896, 952, 984, 1008, 1056, 1152, 1208, 1312, 1384, 1448, 1464, 1472, 1720, 1872
Offset: 1

Views

Author

Alexei Kourbatov, Feb 28 2016

Keywords

Comments

Dirichlet's theorem on arithmetic progressions suggests that average gaps between primes of the form 8k + 7 below x are about phi(8)*log(x). This sequence shows that the record gap ending at p grows almost as fast as phi(8)*log^2(p). Here phi(n) is A000010, Euler's totient function; phi(8)=4.
Conjecture: a(n) < phi(8)*log^2(A269521(n)) almost always.
A269520 lists the primes preceding the maximal gaps.
A269521 lists the corresponding primes at the end of the maximal gaps.

Examples

			The first two primes of the form 8k + 7 are 7 and 23, so a(1)=23-7=16. The next primes of this form are 31, 47; the gaps 31-23 and 47-31 are not records so nothing is added to the sequence. The next prime of this form is 71 and the gap 71-47=24 is a new record, so a(2)=24.
		

Crossrefs

Programs

  • PARI
    re=0; s=7; forprime(p=23, 1e8, if(p%8!=7, next); g=p-s; if(g>re, re=g; print1(g", ")); s=p)
Showing 1-2 of 2 results.