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.

A219096 Indices of primes p such that the next two larger primes are p+6 and p+12.

This page as a plain text file.
%I A219096 #26 Apr 03 2023 10:36:13
%S A219096 15,36,39,54,55,73,102,107,110,118,129,160,164,184,187,194,199,218,
%T A219096 271,272,291,339,358,387,419,426,464,465,508,520,553,605,621,629,667,
%U A219096 682,683,702,709,710,733,761,791,813,821,822,829,830,882,896,952,962,988
%N A219096 Indices of primes p such that the next two larger primes are p+6 and p+12.
%C A219096 The primes themselves are given by A047948. Conjecture: if k == 0 mod 6 then there exists a prime p such that p-k, p, p+k are consecutive primes.  (This would follow from a proof of Dickson's conjecture; see the Comments and References at A186311.)
%H A219096 Clark Kimberling, <a href="/A219096/b219096.txt">Table of n, a(n) for n = 1..10000</a>
%H A219096 <a href="https://t5k.org/top20/page.php?id=13">Consecutive primes in arithmetic progression</a>
%F A219096 a(n) = A000720(A047948(n)). - _M. F. Hasler_, Mar 11 2013
%e A219096 a(1) = 15 since p(15), p(16), p(17) are consecutive primes (47, 53, 59) with common difference 6: 53 - 47 = 6, and 59 - 53 = 6.
%t A219096 z = 1000; t = Differences[Prime[Range[z]]];
%t A219096 f[n_] := If[t[[n + 1]] - t[[n]] == 0, t[[n]], 0]
%t A219096 u = Table[f[n], {n, 1, z - 2}]; s = Flatten[Position[u, 6]] (*A219096*)
%t A219096 Prime[s]  (*A047948*)
%t A219096 Flatten[Position[Partition[Prime[Range[1000]],3,1],_?(Differences[#] == {6,6}&),{1},Heads->False]] (* _Harvey P. Dale_, Jan 01 2015 *)
%o A219096 (PARI) n=0;p=2;q=3;forprime(r=5,1e6,n++;if(r-p==12&&q-p==6,print1(n", "));p=q;q=r) \\ _Charles R Greathouse IV_, Mar 05 2013
%Y A219096 Cf. A047948, A128940, A000720.
%K A219096 nonn,easy
%O A219096 1,1
%A A219096 _Clark Kimberling_, Mar 05 2013