OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..29
FORMULA
a(n) = 3^A051783(n) + 2. - Elmo R. Oliveira, Nov 09 2023
MATHEMATICA
Select[Table[3^n+2, {n, 0, 200}], PrimeQ] (* Vincenzo Librandi, Dec 08 2011 *)
PROG
(Magma) [a: n in [0..200] | IsPrime(a) where a is 3^n+2]; // Vincenzo Librandi, Dec 08 2011
(PARI) select(ispseudoprime, vector(100, n, 3^n+2)) \\ Charles R Greathouse IV, Apr 29 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
G. L. Honaker, Jr., Oct 29 2000
STATUS
approved