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.

A226657 Smallest of the first four consecutive primes that comprise two sets of primes with difference 2*n.

This page as a plain text file.
%I A226657 #12 Jun 07 2022 16:42:22
%S A226657 5,7,23,389,409,1511,5309,3373,7351,37223,19867,18593,142811,14563,
%T A226657 13933,763271,276637,174491,363989,383179,180907,687179,8066923,
%U A226657 913589,458069,6358777,2507093,5650871,9182389,5256071,10237391,9955009,4091393,24374033
%N A226657 Smallest of the first four consecutive primes that comprise two sets of primes with difference 2*n.
%C A226657 An equivalent definition of this sequence: smallest prime which gives a cluster of primes with the spacing pattern 2*n; x; 2*n, x > 0.
%C A226657 A229021 gives the record values. - _Arkadiusz Wesolowski_, Sep 11 2013
%H A226657 <a href="/index/Pri#gaps">Index entries for primes, gaps between</a>
%e A226657 Difference two - primes: 5, 7, 11, 13.
%e A226657 Difference four - primes: 7, 11, 13, 17.
%e A226657 Difference six - primes: 23, 29, 31, 37.
%t A226657 lst = {}; Do[a = 3; While[True, b = NextPrime[a]; If[b - a == n && NextPrime[b, 2] - NextPrime[b] == n, AppendTo[lst, a]; Break[]]; a = b], {n, 2, 68, 2}]; lst
%t A226657 Table[SelectFirst[Partition[Prime[Range[16*10^5]],4,1],AllTrue[{#[[2]]-#[[1]],#[[4]]- #[[3]]}, EvenQ]&&#[[2]]-#[[1]]==#[[4]]-#[[3]]==2n&],{n,35}][[All,1]] (* _Harvey P. Dale_, Jun 07 2022 *)
%Y A226657 Cf. A000230, A133429, A133430, A229021, A229028, A229030, A229033, A229034.
%K A226657 nonn
%O A226657 1,1
%A A226657 _Arkadiusz Wesolowski_, Jun 14 2013