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-3 of 3 results.

A088878 Prime numbers p such that 3p - 2 is a prime.

Original entry on oeis.org

3, 5, 7, 11, 13, 23, 37, 43, 47, 53, 61, 67, 71, 103, 113, 127, 137, 163, 167, 181, 191, 193, 211, 251, 257, 263, 271, 277, 293, 307, 313, 331, 337, 347, 373, 401, 431, 433, 443, 461, 467, 487, 491, 523, 541, 557, 587, 593, 601, 673, 677, 727, 751, 757, 761
Offset: 1

Views

Author

Giovanni Teofilatto, Nov 27 2003

Keywords

Comments

Indices of semiprime octagonal numbers. - Jonathan Vos Post, Feb 16 2006
Daughter primes of order 1. - Artur Jasinski, Dec 12 2007
A010051(3*a(n)-2) = 1. - Reinhard Zumkeller, Jul 02 2015

Examples

			For p = 3, 3p - 2 = 7;
for p = 523, 3p - 2 = 1567.
		

References

  • M. Cerasoli, F. Eugeni and M. Protasi, Elementi di Matematica Discreta, Bologna 1988
  • Emanuele Munarini and Norma Zagaglia Salvi, Matematica Discreta, UTET, CittaStudiEdizioni, Milano 1997

Crossrefs

Programs

  • Haskell
    a088878 n = a088878_list !! (n-1)
    a088878_list = filter ((== 1) . a010051' . subtract 2 . (* 3)) a000040_list
    -- Reinhard Zumkeller, Jul 02 2015
  • Magma
    [ p: p in PrimesUpTo(770) | IsPrime(3*p-2) ]; // Klaus Brockhaus, Dec 21 2008
    
  • Mathematica
    lst={};Do[p=Prime[n];If[PrimeQ[3*p-2],AppendTo[lst,p]],{n,5!}];lst (* Vladimir Joseph Stephan Orlovsky, Dec 22 2008 *)
    n = 1; a = {}; Do[If[PrimeQ[(Prime[k] + 2n)/(2n + 1)], AppendTo[a, (Prime[k] + 2n)/(2n + 1)]], {k, 1, 500}]; a (* Artur Jasinski, Dec 12 2007 *)
    Select[Prime[Range[150]],PrimeQ[3#-2]&] (* Harvey P. Dale, Feb 27 2024 *)
  • PARI
    list(lim)=select(p->isprime(3*p-2),primes(primepi(lim))) \\ Charles R Greathouse IV, Jul 25 2011
    

Extensions

Corrected and extended by Ray Chandler, Dec 27 2003
Entry revised by N. J. A. Sloane, Nov 28 2006, Jul 08 2010

A153183 Numbers k such that 3k-2 is prime.

Original entry on oeis.org

3, 5, 7, 11, 13, 15, 21, 23, 25, 27, 33, 35, 37, 43, 47, 51, 53, 55, 61, 65, 67, 71, 75, 77, 81, 91, 93, 95, 103, 105, 111, 113, 117, 123, 125, 127, 133, 137, 141, 145, 147, 153, 155, 163, 167, 175, 181, 183, 191, 193, 201, 203, 205, 207, 211, 215, 221, 225, 231
Offset: 1

Views

Author

Vincenzo Librandi, Dec 20 2008

Keywords

Crossrefs

Cf. A153184 (complement)
Cf. A088878 (3p-2 is prime), A024892 (3*k+1 is prime).

Programs

Formula

a(n) = A024892(n)+1. - Klaus Brockhaus, Dec 21 2008

Extensions

More terms from Klaus Brockhaus, Dec 21 2008

A153261 Primes p such that 3*p-2 is not prime.

Original entry on oeis.org

2, 17, 19, 29, 31, 41, 59, 73, 79, 83, 89, 97, 101, 107, 109, 131, 139, 149, 151, 157, 173, 179, 197, 199, 223, 227, 229, 233, 239, 241, 269, 281, 283, 311, 317, 349, 353, 359, 367, 379, 383, 389, 397, 409, 419, 421, 439, 449, 457, 463, 479, 499, 503, 509, 521
Offset: 1

Views

Author

Keywords

Comments

3*2-2=4 not prime, 17*3-2=49 not prime,... 3*3-2=7 is prime and not in this sequence.

Crossrefs

Cf. A153238 [From Vincenzo Librandi, Jan 01 2009]

Programs

  • Mathematica
    lst={};Do[p=Prime[n];If[ !PrimeQ[3*p-2],AppendTo[lst,p]],{n,6!}];lst

Extensions

Minor edits by N. J. A. Sloane, Jul 08 2010
Showing 1-3 of 3 results.