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.

A178145 6n-1,6n+1, 6n+5, 6n+7 are all primes. That is they are adjacent pairs of twin primes.

Original entry on oeis.org

1, 2, 17, 32, 137, 247, 312, 347, 542, 577, 942, 1572, 2167, 2607, 2622, 2677, 3007, 3152, 3237, 3502, 3712, 4217, 5287, 5807, 7297, 8557, 9222, 10497, 11202, 11582, 12037, 12877, 13282, 13507, 13787, 14802, 16307, 16522, 16852, 18307, 19422
Offset: 1

Views

Author

Anthony C Robin, May 21 2010

Keywords

Comments

The sequence A002822, gives the values of n to generate the twin primes, 6n+/-1. It has the values 1, 2, 3, 5, 7, 10, 12, 17, 18, 23, . This new sequence lists the lower of the values of this which are adjacent, namely 1(&2), 2 (&3), 17 (&18)..

Crossrefs

Programs

  • Mathematica
    (First[#]+1)/6&/@Select[Partition[Prime[Range[12000]],4,1], Differences[#] == {2,4,2}&] (* Harvey P. Dale, Jan 23 2012 *)

Extensions

Extended by D. S. McNeil, May 23 2010