OFFSET
1,1
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1) = 56197 since it is the least prime that is the first of six consecutive primes, {56197, 56207, 56209, 56237, 56239, 56249}, which are congruent to {1, 2, 4, 5, 7, 8} (mod 9).
217 is not a term because [217, 223, 227, 229, 233, 239] (mod 9) = [1, 7, 2, 4, 8, 5].
MATHEMATICA
p = 19; lst = {}; Do[ While[ !PrimeQ[p] || Mod[ NextPrime[p], 9] != 2 || Mod[NextPrime[p, 2], 9] != 4 || Mod[NextPrime[p, 3], 9] != 5 || Mod[NextPrime[p, 4], 9] != 7 || Mod[NextPrime[p, 5], 9] != 8, p += 18]; AppendTo [lst, p]; p += 18, {33}]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov and Robert G. Wilson v, Jan 29 2023
STATUS
approved