login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A249606
Primes of the form 2k^2 + k + 2.
0
2, 5, 23, 107, 173, 353, 467, 743, 1277, 1487, 2213, 2777, 3083, 10733, 14537, 15227, 17393, 18917, 21323, 22157, 23873, 33413, 36587, 38783, 42197, 50723, 54617, 71633, 94397, 101477, 112577, 118343, 122267, 128273, 130307, 140717, 149333, 174347, 203843
OFFSET
1,1
EXAMPLE
k=0: 2*0^2 + 0 + 2 = 0 + 0 + 2 = 2.
k=1: 2*1^2 + 1 + 2 = 2 + 1 + 2 = 5.
k=3: 2*3^2 + 3 + 2 = 18 + 3 + 2 = 23.
k=7: 2*7^2 + 7 + 2 = 98 + 7 + 2 = 107.
MATHEMATICA
Select[Table[2 n^2 + n + 2, {n, 0, 18000}], PrimeQ] (* Vincenzo Librandi, Nov 02 2014 *)
PROG
(PARI) for(k=0, 10^3, my(t=2*k^2+k+2); if(isprime(t), print1(t, ", "))); \\ Joerg Arndt, Nov 02 2014
(Magma) [a: n in [0..300] | IsPrime(a) where a is 2*n^2 + n + 2 ]; // Vincenzo Librandi, Nov 02 2014
CROSSREFS
Sequence in context: A371308 A038833 A279819 * A003501 A006990 A378335
KEYWORD
nonn
AUTHOR
Jon E. Schoenfield, Nov 02 2014
STATUS
approved