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.

A224494 Smallest k such that k*2*p(n)^2+1=q is prime and k*2*q^2+1 is also prime.

Original entry on oeis.org

5, 2, 29, 41, 9, 2, 71, 30, 32, 6, 35, 11, 6, 50, 2, 20, 9, 120, 56, 21, 9, 75, 90, 51, 51, 29, 107, 9, 74, 155, 116, 11, 29, 86, 116, 35, 200, 12, 11, 39, 9, 105, 51, 422, 36, 65, 6, 32, 27, 44, 9, 41, 14, 116, 266, 41, 29, 5, 50, 95, 27, 71, 69, 330, 21, 194
Offset: 1

Views

Author

Pierre CAMI, Apr 08 2013

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_] := For[k = 1, True, k++, p = Prime[n]; If[PrimeQ[q = k*2*p^2 + 1] && PrimeQ[k*2*q^2 + 1], Return[k]]]; Table[ a[n] , {n, 1, 66}] (* Jean-François Alcover, Apr 12 2013 *)

A224495 Smallest k such that k*2*p(n)^2+1=q is prime 2*k*q^2+1=r 2*k*r^2+1=s, r and s are also prime.

Original entry on oeis.org

9, 126, 29, 237, 420, 2, 186, 30, 2349, 896, 1266, 147, 741, 140, 3021, 924, 19571, 896, 791, 11495, 32, 7016, 3522, 5336, 932, 5480, 107, 1439, 1770, 209, 4239, 1716, 477, 1196, 1446, 900, 9176, 1920, 2375, 39, 2351, 590, 2724, 422, 3171, 179, 1751, 426, 65
Offset: 1

Views

Author

Pierre CAMI, Apr 08 2013

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_] := For[k = 1, True, k++, p = Prime[n]; If[PrimeQ[q = k*2*p^2 + 1] && PrimeQ[r = k*2*q^2 + 1] && PrimeQ[k*2*r^2 + 1], Return[k]]]; Table[ a[n] , {n, 1, 49}] (* Jean-François Alcover, Apr 12 2013 *)
Showing 1-2 of 2 results.