OFFSET
0,2
COMMENTS
a(n) is of comparable size to n^n. - Charles R Greathouse IV, May 09 2016
a(n) is the product of the terms of the n-th row of A084754. - Michel Marcus, May 09 2016
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..322
FORMULA
EXAMPLE
a(0) = 1 (the empty product).
a(1) = 2 = 2.
a(2) = 3 * 5 = 15.
a(3) = 5 * 7 * 11 = 385.
a(4) = 5 * 7 * 11 * 13 = 5005.
MAPLE
a:= n-> mul((nextprime@@i)(n), i=1..n):
seq(a(n), n=0..17); # Alois P. Heinz, Jun 24 2024
MATHEMATICA
Table[Times@@Prime[Range[PrimePi[n] + 1, PrimePi[n] + n]], {n, 25}] (* Alonso del Arte, May 09 2016 *)
PROG
(PARI) a(n)=my(v=primes(primepi(n)+n)); prod(i=0, n-1, v[#v-i]) \\ Charles R Greathouse IV, May 09 2016
(Python)
from math import prod
from sympy import prime, primepi
def a(n): r = primepi(n); return prod(prime(i) for i in range(r+1, r+n+1))
print([a(n) for n in range(1, 17)]) # Michael S. Branicky, Feb 15 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Matthew Goers, May 09 2016
EXTENSIONS
a(0)=1 prepended by Alois P. Heinz, Jun 24 2024
STATUS
approved