OFFSET
2,2
COMMENTS
Position of first occurrence of a gap of length P3 - P2 = 2*n containing no primes, immediately following the twin primes (P1,P2). To indicate impossible gaps of lengths 8, 14, 20, ..., a(3k+1) is set to 0 for all k >= 1.
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 2..209
EXAMPLE
a(5) = 23 because the prime gap following P1 = 6*23 - 1 = 137, P2 = 6*23 + 1 = 139 is the first such gap with length 2*n = 10. P3 - P2 = 149 - 139 = 10.
PROG
(PARI) my(v=vector(60), p1=5, p2=7, d); forprime(p3=11, 5e6, if(p2-p1==2, d=(p3-p2)/2; if(v[d]==0, v[d]=(p1+p2)/12)); p1=p2; p2=p3); v[2..49]
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Nov 10 2019
STATUS
approved