OFFSET
1,1
COMMENTS
LINKS
Alexei Kourbatov, Table of n, a(n) for n = 1..160
Alexei Kourbatov and Marek Wolf, On the first occurrences of gaps between primes in a residue class, arXiv preprint arXiv:2002.02115 [math.NT], 2020.
EXAMPLE
The first two primes of the form 6k-1 are 5 and 11, so we have a(1)=11. The next primes of this form are 17, 23, 29; the gaps 17-11 = 23-17 = 29-23 have size 6 which already occurred before; so nothing is added to the sequence. The next prime of this form is 41 and the gap size 41-29=12 has not occurred before, so a(2)=41.
PROG
(PARI) isFirstOcc=vector(9999, j, 1); s=5; forprime(p=11, 1e8, if(p%6!=5, next); g=p-s; if(isFirstOcc[g/6], print1(p", "); isFirstOcc[g/6]=0); s=p)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexei Kourbatov, May 05 2020
STATUS
approved