login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A162860 Numbers k such that k^2+4*k+1 is prime. 1
2, 6, 8, 12, 18, 24, 30, 32, 38, 42, 44, 56, 62, 66, 78, 84, 86, 90, 96, 108, 110, 116, 122, 126, 134, 138, 140, 144, 162, 170, 188, 192, 200, 204, 206, 216, 218, 248, 252, 264, 266, 294, 296, 302, 308, 318, 320, 324, 326, 330, 338, 348, 354, 360, 368, 414, 416 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
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
Cf. A028874.
Sequence in context: A173340 A135311 A200568 * A093006 A280236 A177869
KEYWORD
nonn,easy
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)