OFFSET
1,1
COMMENTS
There exist no such triples of the form p^2 + p + 1 because each third member is always divisible by 3.
Subsequence of A053184. - Pierre CAMI, Sep 13 2013
LINKS
EXAMPLE
2 -> 2^2+2-1 = 5 -> 5^2+5-1 = 29 hence the prime triple (2,5,29).
MATHEMATICA
fmpQ[n_]:=AllTrue[NestList[#^2+#-1&, n, 2], PrimeQ]; Select[Prime[Range[ 1300]], fmpQ] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jul 08 2019 *)
PROG
(PARI) is(n)=for(k=1, 3, if(!isprime(n), return(0)); n=n^2+n-1); 1 \\ Charles R Greathouse IV, Sep 13 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Patrick De Geest, Aug 15 2000
STATUS
approved
