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.

A214518 Record differences between the numbers n such that 4*n^2 + 1 is prime.

Original entry on oeis.org

1, 2, 5, 7, 8, 10, 17, 20, 23, 44, 50, 56, 65, 76, 106, 144, 165, 173
Offset: 1

Views

Author

T. D. Noe, Aug 06 2012

Keywords

Examples

			a(1) = 1 because 4*1^2 + 1 = 5 and 4*2^2 + 1 = 17 are primes.
a(2) = 2 because 4*3^2 + 1 = 37 is prime, 4*4^2 + 1 = 65 is composite, and 4*5^2 + 1 = 101 is prime.
a(3) = 5 because 4*13^2 + 1 is prime, 4*n^2 + 1 is composite for n = 14..17, and 4*18^2 + 1 is prime.
		

Crossrefs

Cf. A121326 (primes of the form 1+4*n^2), A001912 (values of n).
Cf. A214517 (differences), A214519 (where record differences occur).

Programs

  • Mathematica
    n = 1; last = 1; t = {1}; While[Length[t] < 15, n++; p = 1 + 4*n^2; If[PrimeQ[p], If[n - last > t[[-1]], AppendTo[t, n - last]]; last = n]]; t

A215233 Primes of the form 4m^2 + 1 such that the next prime of this form is a record distance away.

Original entry on oeis.org

5, 37, 677, 1601, 8837, 33857, 122501, 246017, 11492101, 12503297, 2058436901, 6844914757, 9813676097, 127566122897, 707119537217, 15058714869137, 779243651884097, 1641669426950401, 10965274367622437, 1269017804759665217, 4346851918104880901
Offset: 1

Views

Author

T. D. Noe, Aug 14 2012

Keywords

Comments

Distance from 4m^2+1 to 4n^2+1 is measured as n-m.

Crossrefs

See A215234 for the next larger prime of the form 4m^2 + 1.
Cf. A214518 (record differences of m), A214519 (values of m).

Programs

  • PARI
    r=0;last=2;forstep(n=4,1e9,2, if(!ispseudoprime(n^2+1),next); if(n-last>r, r=n-last; print1(last^2+1", ")); last=n) \\ Charles R Greathouse IV, Apr 09 2013

Extensions

a(19)-a(21) from Charles R Greathouse IV, Apr 09 2013
Showing 1-2 of 2 results.