OFFSET
1,1
COMMENTS
Under Bunyakovsky's conjecture this sequence is infinite. - Charles R Greathouse IV, Dec 28 2011
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
(23*23 - 5)/4 = 131, 131 is prime, 23 is the 9th n of the sequence.
MATHEMATICA
Select[Range[500], PrimeQ[(#^2 - 5)/4] &] (* Vincenzo Librandi, Oct 06 2012 *)
PROG
(PARI) for(k=2, 1e3, if(isprime(k^2+k-1), print1(2*k+1", "))) \\ Charles R Greathouse IV, Dec 28 2011
(Magma) [n: n in [1..300 by 2] | IsPrime((n^2-5) div 4)]; // Vincenzo Librandi, Oct 06 2012
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Pierre CAMI, Nov 13 2003
STATUS
approved