A057735 Primes of the form 3^k + 2.
3, 5, 11, 29, 83, 6563, 59051, 4782971, 14348909, 282429536483, 2541865828331, 150094635296999123, 1144561273430837494885949696429, 57264168970223481226273458862846808078011946891, 30432527221704537086371993251530170531786747066637051
Offset: 1
Keywords
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..29
Programs
-
Magma
[a: n in [0..200] | IsPrime(a) where a is 3^n+2]; // Vincenzo Librandi, Dec 08 2011
-
Mathematica
Select[Table[3^n+2,{n,0,200}],PrimeQ] (* Vincenzo Librandi, Dec 08 2011 *)
-
PARI
select(ispseudoprime, vector(100,n,3^n+2)) \\ Charles R Greathouse IV, Apr 29 2015
Formula
a(n) = 3^A051783(n) + 2. - Elmo R. Oliveira, Nov 09 2023
Comments