OFFSET
1,2
LINKS
Jeppe Stig Nielsen, Table of n, a(n) for n = 1..54
FORMULA
For n!=2, a(n) = (A034386(n - 1))^n / (n - 1)!. - Jeppe Stig Nielsen, Nov 04 2018
EXAMPLE
For n=5, first four terms of row are 1, 2, 3, 4, with product 24 = 2^3*3^1. So last term is 2^(5-3)*3^(5-1) = 2^2*3^4 = 324.
MATHEMATICA
MapAt[4 # &, Array[Apply[Times, Prime@ Range@ PrimePi[# - 1]]^#/(# - 1)! &, 14], 2] (* Michael De Vlieger, Nov 05 2018 *)
PROG
(PARI) a(n) = {if (n == 1, return (1)); if (n == 2, return (2^2)); f = factor((n-1)!); prod(i = 1, #f~, f[i, 1]^(n - f[i, 2])); } \\ Michel Marcus, Aug 30 2013
(PARI) a(n) = if(n==2, 4, prod(i=1, primepi(n-1), prime(i))^n/(n-1)!) \\ Jeppe Stig Nielsen, Nov 04 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Mar 20 2003
EXTENSIONS
More terms from Michel Marcus, Aug 30 2013
STATUS
approved