OFFSET
3,3
COMMENTS
Offset is 3 because 5=prime(3) is the first prime of the given form. It is provable that if 6m-1 and 6m+1 are a pair of twin primes, then for all k, 0<k<m, and p being a prime of the form 6k-1 or 6k+1 then m^2 is not equivalent to k^2 mod p.
PROG
(PARI) a(n) = {my(p=prime(n), k); if (((p-1) % 6) == 0, k = (p-1)/6, k = (p+1)/6); k^2 % p; } \\ Michel Marcus, Jun 09 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Keith Backman, Jun 08 2020
EXTENSIONS
More terms from Michel Marcus, Jun 09 2020
STATUS
approved