login
A104081
Smallest prime >= 3^n.
4
2, 3, 11, 29, 83, 251, 733, 2203, 6563, 19687, 59051, 177167, 531457, 1594331, 4782971, 14348909, 43046747, 129140197, 387420499, 1162261523, 3486784409, 10460353259, 31381059613, 94143178859, 282429536483, 847288609457
OFFSET
0,1
LINKS
FORMULA
a(n) = A014211(n), n > 1. - R. J. Mathar, Dec 13 2008
a(n) = A007918(A000244(n)). - Michel Marcus, Nov 08 2018
MATHEMATICA
NextPrime[3^Range[0, 50]-1] (* Vladimir Joseph Stephan Orlovsky, Apr 11 2011 *)
PROG
(PARI) g(n, b=3) = for(x=0, n, print1(nextprime(b^x)", "))
(Magma) [NextPrime(3^n-1): n in [0..50]]; // G. C. Greubel, Nov 08 2018
CROSSREFS
Cf. A104080 (for 2^n).
Cf. A104088 (largest prime <= 3^n).
Sequence in context: A309701 A243896 A202211 * A267902 A003455 A103275
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Mar 03 2005
STATUS
approved