OFFSET
1,1
COMMENTS
Only for prime p = 5 there are twin primes 6*5-1 = 29 and 6*5+1 = 31 such that 10 not divides (29^2 + 31^2) = 1802.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) == +-2 (mod 5).
EXAMPLE
7 is a term because 7, 6*7-1 = 41, 6*7+1 = 43, and (41^2 + 43^2)/10 = 353 are prime numbers.
MATHEMATICA
Select[Prime@ Range[10^4], Times @@ Boole@ Map[PrimeQ, 6 # + {-1, 1}] == 1 && PrimeQ[((6 # - 1)^2 + (6 # + 1)^2)/10] &] (* Michael De Vlieger, Mar 20 2017 *)
Select[Prime[Range[8500]], AllTrue[{6#-1, 6#+1, ((6#-1)^2+(6#+1)^2)/10}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jul 09 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Thomas Ordowski and Altug Alkan, Mar 18 2017
STATUS
approved