OFFSET
1,1
COMMENTS
In the sequence of first differences D(9) = 12544 is the square of 112.
In the sequence of second differences DD(3) = 4 and DD(7) = 2500 are squares.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..10000
EXAMPLE
a(7) = 3181 since 3181 = 53*(59+1) + 1 where 53 and 59 are successive primes.
MATHEMATICA
Select[Times@@#+#[[1]]+1&/@Partition[Prime[Range[200]], 2, 1], PrimeQ] (* Harvey P. Dale, Apr 26 2014 *)
PROG
(PARI) p=2; forprime(q=3, 1e3, k=p*(q+1)+1; if(isprime(k), print1(k", ")); p=q) \\ Charles R Greathouse IV, Sep 27 2010
(Magma) [a: n in [0..200] | IsPrime(a) where a is NthPrime(n)*NthPrime(n+1)+NthPrime(n)+1]; // Vincenzo Librandi, Jul 07 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Carmine Suriano, Sep 26 2010
EXTENSIONS
New description and editing from Charles R Greathouse IV, Sep 27 2010
STATUS
approved