OFFSET
1,1
COMMENTS
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..350
R. G. Wilson, V, Letter to N. J. A. Sloane, Jan. 1994
FORMULA
From Michael De Vlieger, May 15 2017: (Start)
a(n) = prime(A000849(n)).
EXAMPLE
From Michael De Vlieger, May 15 2017: (Start)
a(1) = 2 since A002110(1) = 2. 2 is prime thus the largest prime <= 2 = 2.
a(2) = 5 since A002110(2) = 6. 5 is the largest prime <= 6. (End)
MATHEMATICA
Array[Abs@ NextPrime[Product[Prime@ i, {i, #}], -1] &, 14] (* Michael De Vlieger, May 15 2017 *)
PROG
(PARI) lista(n) = {prd = 1; for (i=1, n, prd *= prime(i); print1(precprime(prd), ", "); ); } \\ Michel Marcus, Jun 17 2013
(PARI) a(n)=precprime(prod(i=1, n, prime(i))) \\ Charles R Greathouse IV, Jun 17 2013
CROSSREFS
KEYWORD
nonn
EXTENSIONS
Corrected by Jud McCranie, Jan 03 2001
More terms from Michael De Vlieger, May 15 2017
STATUS
approved