login
A118749
Largest prime <= 3*n.
2
3, 5, 7, 11, 13, 17, 19, 23, 23, 29, 31, 31, 37, 41, 43, 47, 47, 53, 53, 59, 61, 61, 67, 71, 73, 73, 79, 83, 83, 89, 89, 89, 97, 101, 103, 107, 109, 113, 113, 113, 113, 113, 127, 131, 131, 137, 139, 139, 139, 149, 151, 151, 157, 157, 163, 167, 167, 173, 173, 179, 181
OFFSET
1,1
COMMENTS
Analogous to A060308 largest prime <= 2*k.
FORMULA
a(n) = A007917(A008585(n)). - Michel Marcus, Nov 25 2015
MATHEMATICA
Table[Max[FactorInteger[(3 n)!/(n!)^3]], {n, 1, 70}] (* Vincenzo Librandi, Nov 25 2015 *)
NextPrime[3*Range[70]+1, -1] (* Harvey P. Dale, Nov 12 2017 *)
PROG
(Magma) [NthPrime(#PrimesUpTo(3*n)): n in [1..100]]; // Vincenzo Librandi, Nov 25 2015
(PARI) vector(100, n, precprime(3*n)) \\ Altug Alkan, Nov 25 2015
CROSSREFS
Cf. A007917 (largest prime <= n), A008585 (3n).
Essentially the same as A081259.
Sequence in context: A255602 A319181 A318718 * A367227 A355821 A332075
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Apr 29 2006
STATUS
approved