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.

A089188 Lesser member p of a pair of twin primes such that p-1 is squarefree.

Original entry on oeis.org

3, 11, 59, 71, 107, 179, 191, 227, 239, 311, 347, 419, 431, 599, 659, 827, 1019, 1031, 1091, 1319, 1427, 1487, 1607, 1619, 1787, 1871, 1931, 2027, 2087, 2111, 2267, 2339, 2591, 2687, 2711, 2999, 3119, 3167, 3299, 3359, 3371, 3467, 3527, 3539, 3671, 3767
Offset: 1

Views

Author

Cino Hilliard, Dec 07 2003

Keywords

Examples

			71 is a term because it is a prime, 71 + 2 = 73 is a prime, and 71 - 1 = 70 = 2 * 5 * 7 is squarefree.
17 is not a term because 17 - 1 = 2^4.
		

Crossrefs

Intersection of A001359 and A039787.
Cf. A005117.

Programs

  • Mathematica
    Select[Transpose[Select[Partition[Prime[Range[600]],2,1],#[[2]]-#[[1]]==2&]][[1]],SquareFreeQ[#-1]&] (* Harvey P. Dale, Aug 10 2013 *)
  • PARI
    pm1th(n) = { c=0; pc=0; forprime(x=2,n, pc++; y=x-1; if(isprime(x+2), if(issquarefree(y), c++; print1(x","); ) ) ); print(); print(c","pc","c/pc+.0) }

Extensions

Offset corrected by Amiram Eldar, Jun 29 2024