OFFSET
1,2
COMMENTS
Sierpiński proved that under Schinzel's hypothesis H this sequence is infinite. He gives the 24 terms below 10^3.
Sierpiński noted that the only triple of consecutive primes of the form (2n)^2 + 1 are for n = 1 (i.e., 1 and 2 are the only consecutive terms in this sequence), since every triple of consecutive terms contains at least one term which is divisible by 5.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Wacław Sierpiński, Remarque sur la distribution de nombres premiers, Matematički Vesnik, Vol. 2(17), Issue 31 (1965), pp. 77-78.
Eric Weisstein's World of Mathematics, Near-Square Prime.
Wikipedia, Schinzel's hypothesis H.
FORMULA
a(n) = A096012(n)/2. - Amiram Eldar, Feb 24 2020
EXAMPLE
1 is in the sequence since (2*1)^2 + 1 = 5 and (2*1+2)^2 + 1 = 17 are both primes.
MATHEMATICA
Select[Range[10^4], AllTrue[{(2#)^2+1, (2#+2)^2+1}, PrimeQ] &]
PROG
(PARI) isok(n) = isprime((2*n)^2 + 1) && isprime((2*n+2)^2 + 1); \\ Michel Marcus, Oct 13 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Oct 13 2017
STATUS
approved