OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = A028873(n)-2. - R. J. Mathar, Aug 12 2009
EXAMPLE
a(1) = k = 2 is in the sequence because 2^2+4*2+1=13 = A028874(1) is prime.
MATHEMATICA
f[a_]:=a^2+4*a+1; lst={}; Do[If[PrimeQ[f[n]], AppendTo[lst, n]], {n, 6!}]; lst
Select[Range[500], PrimeQ[#^2+4#+1]&] (* Harvey P. Dale, May 28 2012 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jul 14 2009
STATUS
approved