OFFSET
1,1
COMMENTS
Also, prime numbers of the form 1 + k + 2*k^2 + 2*k^3 + k^4. - Wesley Ivan Hurt, Feb 21 2015
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
7 is a term since k=1 gives 1*2 + (1*2)^2 + 1 = 7, which is prime.
MAPLE
A255314:=n->`if`(isprime(1+n+2*n^2+2*n^3+n^4), 1+n+2*n^2+2*n^3+n^4, NULL): seq(A255314(n), n=1..200); # Wesley Ivan Hurt, Feb 28 2015
MATHEMATICA
Select[Table[(n+1) n + ((n+1) n)^2 + 1, {n, 200}], PrimeQ]
PROG
(PARI) for(n=1, 100, if(isprime(p=1+n+2*n^2+2*n^3+n^4), print1(p, ", "))) \\ Derek Orr, Feb 28 2015
(Magma) [a: n in [0..150] | IsPrime(a) where a is n*(n + 1) + (n*(n + 1))^2 + 1 ]; // Vincenzo Librandi, Mar 24 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Waldemar Puszkarz, Feb 20 2015
STATUS
approved