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.

A155736 Numbers n such that 4*n^2+2*n-1 is a prime.

Original entry on oeis.org

1, 2, 3, 4, 5, 8, 10, 12, 13, 14, 15, 19, 22, 23, 24, 25, 27, 28, 30, 32, 33, 34, 35, 38, 43, 47, 48, 50, 57, 60, 63, 65, 67, 69, 70, 72, 74, 77, 79, 80, 82, 87, 88, 90, 92, 93, 94, 98, 103, 109, 110, 115, 118, 120, 122, 123, 124, 129, 132, 134, 144, 145, 147, 148, 149
Offset: 1

Views

Author

Vincenzo Librandi, Jan 26 2009

Keywords

Crossrefs

Programs

  • Magma
    [n: n in [0..150] | IsPrime(4*n^2+2*n-1)]; // Vincenzo Librandi, Sep 24 2012
  • Mathematica
    Select[Range[0, 200], PrimeQ[4#^2+2#-1]&] (* Vincenzo Librandi, Sep 24 2012 *)

Extensions

Edited by N. J. A. Sloane, Jun 25 2010

A155737 Primes of the form 4*n^2 + 2*n -1.

Original entry on oeis.org

5, 19, 41, 71, 109, 271, 419, 599, 701, 811, 929, 1481, 1979, 2161, 2351, 2549, 2969, 3191, 3659, 4159, 4421, 4691, 4969, 5851, 7481, 8929, 9311, 10099, 13109, 14519, 16001, 17029, 18089, 19181, 19739, 20879, 22051, 23869, 25121, 25759, 27059
Offset: 1

Views

Author

Vincenzo Librandi, Jan 26 2009

Keywords

Comments

Primes in A125202. - Klaus Purath, Dec 09 2020

Crossrefs

Programs

  • Magma
    [a: n in [0..100] | IsPrime(a) where a is  4*n^2+2*n-1]; // Vincenzo Librandi, Jul 23 2012
    
  • Mathematica
    Select[Table[4n^2+2n-1,{n,0,200}],PrimeQ] (* Vincenzo Librandi, Jul 23 2012 *)
  • PARI
    (for (n=0, 100, if (isprime (k=4*n^2+2*n-1), print1 (k, ", ")))); \\ Vincenzo Librandi, Jul 23 2012

Extensions

Incorrect formula deleted by N. J. A. Sloane, Jun 16 2010
Showing 1-2 of 2 results.