login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A104088 Largest prime <= 3^n. 1
3, 7, 23, 79, 241, 727, 2179, 6553, 19681, 59029, 177131, 531383, 1594301, 4782961, 14348891, 43046623, 129140153, 387420479, 1162261453, 3486784393, 10460353199, 31381059607, 94143178807, 282429536453, 847288609423 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..25.

MATHEMATICA

PrimePrev[n_]:=Module[{k=n}, While[ !PrimeQ[k], k-- ]; k]; f[n_]:=3^n; lst={}; Do[AppendTo[lst, PrimePrev[f[n]]], {n, 5!}]; lst (* Vladimir Joseph Stephan Orlovsky, Feb 26 2010 *)

PROG

(PARI) g(n, b) = for(x=0, n, print1(precprime(b^x)", "))

CROSSREFS

Sequence in context: A205481 A148712 A208591 * A169650 A136508 A184935

Adjacent sequences:  A104085 A104086 A104087 * A104089 A104090 A104091

KEYWORD

easy,nonn

AUTHOR

Cino Hilliard, Mar 03 2005

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 20 11:11 EST 2020. Contains 331083 sequences. (Running on oeis4.)