OFFSET
1,1
COMMENTS
3*a(n)-2 is a square (of the form (3*k+1)^2). - Vincenzo Librandi, Mar 15 2013
Also primes which are the sum of 2 consecutive pentagonal numbers (A000326). - Vicente Izquierdo Gomez, Aug 13 2017
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Table[1 + 2 n + 3 n^2, {n, 500}], PrimeQ] (* Vincenzo Librandi, Mar 15 2013 *)
PROG
(Magma) [a: n in [1..300] | IsPrime(a) where a is 1+2*n+3*n^2]; // Vincenzo Librandi, Mar 15 2013
(PARI) is(n)=isprime(n) && issquare(3*n-2, &n) && n%3==1 \\ Charles R Greathouse IV, Sep 23 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 20 2006
STATUS
approved