OFFSET
1,1
REFERENCES
R. K. Guy, Unsolved Problems in Number Theory, A4.
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..43
Jens Kruse Andersen, Consecutive Congruent Primes
EXAMPLE
{Prime[k], Mod[Prime[k], 6]} = {2, 2}, {3, 3}, {5, 5}, {7, 1}, {11, 5}, {13, 1}, {17, 5}, {19, 1}, {23, 5}, {29, 5}, {31, 1}, {37, 1}, {41, 5}, {43, 1}, {47, 5}, {53, 5}, {59, 5}, {61, 1}, {67, 1}, {71, 5}, {73, 1}, {79, 1}, . ., so a(n) = 53, 29, 67, 37 for n = 1, 2, 3, 4 and a(7) = 5.
MATHEMATICA
i = 2; While[ Mod[ Prime[i] - Prime[i - 1], 6] != 0 || Mod[ Prime[i + 1] - Prime[i], 6] != 0, i++]; T = {Prime[i]}; Do[j = 3; While[ ! (Product[ Mod[ Prime[k + 1] - Prime[k], 6], {k, j, j + n}] != 0 && (Mod[ Prime[j] - Prime[j - 1], 6] == 0 || j == 3) && Mod[ Prime[j + n + 2] - Prime[j + n + 1], 6] == 0), j++]; T = Append[T, Prime[j]], {n, 0, 16}]; T
CROSSREFS
KEYWORD
nonn
AUTHOR
Jonathan Sondow, Jun 28 2017
EXTENSIONS
a(19)-a(33) from Giovanni Resta, Jun 29 2017
STATUS
approved