[go: up one dir, main page]

login
Indices of primes followed by a gap (distance to next larger prime) of 14.
2

%I #9 Sep 08 2022 08:46:23

%S 30,62,66,137,146,150,162,223,250,283,309,350,360,382,402,410,424,434,

%T 503,514,526,532,536,570,610,649,654,666,687,704,706,747,780,790,867,

%U 906,919,929,967,978,981,992,1011,1023,1038,1042,1057,1072,1133,1154,1160,1177,1184

%N Indices of primes followed by a gap (distance to next larger prime) of 14.

%C Indices of the primes listed in A031932.

%H Vincenzo Librandi, <a href="/A320705/b320705.txt">Table of n, a(n) for n = 1..8000</a>

%H <a href="/index/Pri#gaps">Index entries for primes, gaps between</a>.

%F a(n) = A000720(A031932(n)).

%F A320705 = { i > 0 | prime(i+1) = prime(i) + 14 }.

%t Select[Range[1500], Prime[#] + 14 == Prime[# + 1] &] (* _Vincenzo Librandi_, Mar 19 2019 *)

%o (PARI) A(N=100,g=14,p=2,i=primepi(p)-1,L=List())={forprime(q=1+p,,i++; if(p+g==p=q, listput(L,i); N--||break));Vec(L)} \\ returns the list of first N terms of the sequence

%o (Magma) [n: n in [1..1500] | NthPrime(n+1) - NthPrime(n) eq 14]; // _Vincenzo Librandi_, Mar 19 2019

%Y Equals A000720 o A031932.

%Y Row 7 of A174349.

%Y Indices of 14's in A001223.

%Y Cf. A029707, A029709, A320701, A320702, ..., A320720 (analog for gaps 2, 4, 6, 8, ..., 44), A116493 (gap 70), A116496 (gap 100), A116497 (gap 200), A116495 (gap 210).

%K nonn

%O 1,1

%A _M. F. Hasler_, Oct 19 2018