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.

A143835 a(n) = Number of x <= 10^n such that 2x^2-1 is prime.

Original entry on oeis.org

7, 45, 303, 2202, 17185, 141444, 1200975, 10448345, 92435171, 828797351, 7511268020, 68680339342
Offset: 1

Views

Author

Artur Jasinski, Sep 02 2008, Sep 04 2008

Keywords

Examples

			a(1) = 7 because are 7 different x ={2, 3, 4, 6, 7, 8, 10} <= 10^1 where 2x^2-1 is prime = {7, 17, 31, 71, 97, 127, 199}.
		

Crossrefs

Programs

  • Mathematica
    l = 0; p = 2; a = {}; Do[k = p x^2 - 1; If[PrimeQ[k], l = l + 1]; If[N[Log[x]/Log[10]] == Round[N[Log[x]/Log[10]]], Print[l]; AppendTo[a, l]], {x, 1, 10000000}]; a (*Artur Jasinski*)

Extensions

Added link and extended to agree with website. - Ray Chandler, Jun 30 2015

A143833 Numbers n such that 14n^2 - 1 is prime.

Original entry on oeis.org

1, 4, 5, 6, 10, 11, 16, 21, 26, 34, 36, 44, 45, 49, 54, 55, 59, 65, 69, 71, 76, 80, 85, 91, 95, 96, 100, 104, 106, 110, 114, 115, 120, 121, 125, 135, 139, 166, 169, 176, 180, 190, 195, 201, 204, 206, 214, 226, 230, 231, 234, 241, 254, 256, 264, 265, 269, 270, 275, 280
Offset: 1

Views

Author

Artur Jasinski, Sep 02 2008

Keywords

Crossrefs

Programs

  • Mathematica
    p = 14; a = {}; Do[k = p x^2 - 1; If[PrimeQ[k], AppendTo[a, x]], {x, 1, 1000}]; a
    Select[Range[300],PrimeQ[14#^2-1]&] (* Harvey P. Dale, Aug 29 2011 *)
  • PARI
    is(n)=isprime(14*n^2-1) \\ Charles R Greathouse IV, Feb 20 2017
Showing 1-2 of 2 results.