OFFSET
1,3
COMMENTS
One less than the entry in A154686 at the same index.
EXAMPLE
If k=34 then (k+1)*(k+2)^2 + 1 = 45361 (prime).
MATHEMATICA
Select[Range[0, 200], PrimeQ[(# + 1)*(# + 2)^2 + 1] &] (* Stefan Steinerberger, Mar 02 2006 *)
PROG
(Magma) [ n: n in [0..500] | IsPrime((n+1)*(n+2)^2 + 1) ]; // Vincenzo Librandi, Jan 31 2011
(PARI) is(n)=isprime((n+1)*(n+2)^2+1) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, Feb 23 2006
EXTENSIONS
More terms from Stefan Steinerberger, Mar 02 2006
STATUS
approved