login
Primes of the form 3^(3*k)+2.
3

%I #12 Mar 14 2023 13:36:09

%S 3,29,14348909,282429536483,150094635296999123,

%T 1144561273430837494885949696429,

%U 48519278097689642681155855396759336072749841943521979872829,1310020508637620352391208095712502073964245732475093456566331

%N Primes of the form 3^(3*k)+2.

%H Vincenzo Librandi, <a href="/A176495/b176495.txt">Table of n, a(n) for n = 1..13</a>

%t Select[Table[3^(3n)+2,{n,0,300}],PrimeQ] (* _Vincenzo Librandi_, Jul 26 2012 *)

%o (Magma) [a: n in [0..50] | IsPrime(a) where a is 3^(3*n)+2 ]; // _Vincenzo Librandi_, Jul 26 2012

%Y Cf, A138051 (values of k).

%K nonn

%O 1,1

%A _Vincenzo Librandi_, Apr 19 2010

%E Definition corrected by _T. D. Noe_, Jun 16 2010

%E Entries checked by _N. J. A. Sloane_, Jun 16 2010