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.

A079016 Suppose p and q = p+12 are primes. Define the difference pattern of (p,q) to be the successive differences of the primes in the range p to q. There are 14 possible difference patterns, namely [12], [2,10], [4,8], [6,6], [8,4], [10,2], [2,4,6], [2,6,4], [4,2,6], [4,6,2], [6,2,4], [6,4,2], [2,4,2,4] and [4,2,4,2]. Sequence gives smallest value of p for each difference pattern, sorted by magnitude.

Original entry on oeis.org

5, 7, 17, 19, 29, 31, 47, 67, 89, 137, 139, 199, 397, 1601
Offset: 1

Views

Author

Labos Elemer, Jan 24 2003

Keywords

Examples

			p=1601, q=1613 has difference pattern [6,2,4] and {1601,1607,1609,1613} is the corresponding consecutive prime 4-tuple.
		

Crossrefs

A022006(1)=5, A022007(1)=7, A078847(1)=17, A078851(1)=19, A078848(1)=29, A078855(1)=31, A047948(1)=47, A078850(1)=67, A031930(1)=A000230(6)=199, A046137(1)=7, A078853(1)=1601.

Programs

  • Mathematica
    Function[s, Function[t, Union@ Flatten@ Map[s[[First@ Position[t, #]]] &, {{12}, {2, 10}, {4, 8}, {6, 6}, {8, 4}, {10, 2}, {2, 4, 6}, {2, 6, 4}, {4, 2, 6}, {4, 6, 2}, {6, 2, 4}, {6, 4, 2}, {2, 4, 2, 4}, {4, 2, 4, 2}}]]@ Map[Differences@ Select[Range[#, # + 12], PrimeQ] &, s]]@ Select[Prime@ Range[10^3], PrimeQ[# + 12] &] (* Michael De Vlieger, Feb 25 2017 *)

A139385 Primes p such that p, p+4 and p+12 are consecutive primes.

Original entry on oeis.org

397, 487, 739, 757, 907, 1567, 1999, 2239, 2269, 2659, 3037, 3217, 3697, 3877, 5167, 5569, 5689, 5779, 6199, 6217, 6469, 6829, 7669, 7687, 8089, 8167, 8677, 8929, 10099, 10627, 11239, 11317, 11677, 12277, 12409, 13147, 13159, 14407, 14419, 14767
Offset: 1

Views

Author

Zak Seidov, Apr 17 2008

Keywords

Comments

Subset of A046137.
Subsequence of A029710. - R. J. Mathar, May 06 2017

Crossrefs

Cf. A046137.

Programs

  • Mathematica
    Select[Partition[Prime[Range[2000]],3,1],Differences[#]=={4,8}&][[All,1]] (* Harvey P. Dale, Apr 02 2017 *)
  • PARI
    isok(p) = isprime(p) && (nextprime(p+1) == p+4) && (nextprime(p+5) == p+12); \\ Michel Marcus, Oct 13 2013
Showing 1-2 of 2 results.