OFFSET
1,3
COMMENTS
From Peter Bala, Apr 16 2018: (Start)
Let P(n) = 3*n^2 + 39*n + 37. The absolute values of the polynomial P(2*n - 29) = 12*n^2 - 270*n + 1429 for n from 0 to 27 are distinct primes, except at n = 14 when the value is 1.
The absolute values of the polynomial 3*P((n - 20)/3) = n^2 - n - 269 for n from 0 to 42 are either prime or 3 times a prime.
The absolute values of the polynomial 3*P((4*n - 89)/3) = 16*n^2 - 556*n + 4561 for n from 0 to 27 are either prime or 3 times a prime. (End)
LINKS
Robert Price, Table of n, a(n) for n = 1..3510
Eric Weisstein's World of Mathematics, Prime-Generating Polynomials
EXAMPLE
4 is in this sequence since 3*4^2 + 39*4 + 37 = 48+156+37 = 241 is prime.
MATHEMATICA
Select[Range[0, 100], PrimeQ[3*#^2 + 39*# + 37] &]
PROG
(PARI) isok(n) = isprime(3*n^2 + 39*n + 37); \\ Michel Marcus, Apr 17 2016
(PARI) lista(nn) = for(n=0, nn, if(ispseudoprime(3*n^2+39*n+37), print1(n, ", "))); \\ Altug Alkan, Apr 18 2016
(Magma) [n: n in [0..100] |IsPrime(3*n^2+39*n+37)]; // Vincenzo Librandi, Apr 19 2018
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Robert Price, Apr 17 2016
STATUS
approved