cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A162860 Numbers k such that k^2+4*k+1 is prime.

This page as a plain text file.
%I A162860 #5 May 28 2012 12:41:39
%S A162860 2,6,8,12,18,24,30,32,38,42,44,56,62,66,78,84,86,90,96,108,110,116,
%T A162860 122,126,134,138,140,144,162,170,188,192,200,204,206,216,218,248,252,
%U A162860 264,266,294,296,302,308,318,320,324,326,330,338,348,354,360,368,414,416
%N A162860 Numbers k such that k^2+4*k+1 is prime.
%H A162860 Harvey P. Dale, <a href="/A162860/b162860.txt">Table of n, a(n) for n = 1..1000</a>
%F A162860 a(n) = A028873(n)-2. - _R. J. Mathar_, Aug 12 2009
%e A162860 a(1) = k = 2 is in the sequence because 2^2+4*2+1=13 = A028874(1) is prime.
%t A162860 f[a_]:=a^2+4*a+1; lst={};Do[If[PrimeQ[f[n]],AppendTo[lst,n]],{n,6!}]; lst
%t A162860 Select[Range[500],PrimeQ[#^2+4#+1]&] (* _Harvey P. Dale_, May 28 2012 *)
%Y A162860 Cf. A028874.
%K A162860 nonn,easy
%O A162860 1,1
%A A162860 _Vladimir Joseph Stephan Orlovsky_, Jul 14 2009