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.

A165682 Primes p such that 3*p*(p-1)+1 is also prime.

Original entry on oeis.org

2, 3, 5, 7, 11, 29, 31, 43, 53, 59, 67, 89, 109, 137, 157, 173, 197, 239, 313, 347, 353, 389, 449, 521, 547, 557, 571, 577, 599, 613, 647, 677, 733, 743, 787, 857, 907, 941, 977, 1051, 1069, 1093, 1153, 1193, 1223, 1229, 1237, 1303, 1433, 1453, 1459, 1481, 1571
Offset: 1

Views

Author

Vincenzo Librandi, Sep 24 2009

Keywords

Examples

			For p=5 = a(3), 3*p^2-3*p+1=61 = A165683(3). For a(4)=p=7: 3*p^2-3*p+1=127 = A165684(4).
		

Crossrefs

Programs

  • Magma
    [p: p in PrimesUpTo(1600) | IsPrime(3*p*(p-1)+1)]; // Vincenzo Librandi, Apr 15 2013
  • Mathematica
    Select[Prime[Range[800]], PrimeQ[3 # (# - 1) + 1]&] (* Vincenzo Librandi, Apr 15 2013 *)

Formula

3*a(n)*(a(n)-1)+1 = A165683(n).

Extensions

2 and 3 inserted by R. J. Mathar, Sep 26 2009

A165681 Primes p such that 3*p*(p-1)+1 is not prime.

Original entry on oeis.org

13, 17, 19, 23, 37, 41, 47, 61, 71, 73, 79, 83, 97, 101, 103, 107, 113, 127, 131, 139, 149, 151, 163, 167, 179, 181, 191, 193, 199, 211, 223, 227, 229, 233, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 317, 331, 337, 349, 359, 367, 373, 379, 383, 397, 401
Offset: 1

Views

Author

Vincenzo Librandi, Sep 24 2009

Keywords

Crossrefs

Programs

Formula

a(n) ~ n log n. - Charles R Greathouse IV, Feb 23 2017

Extensions

2 and 3 removed by R. J. Mathar, Sep 26 2009
Showing 1-2 of 2 results.