OFFSET
1,2
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..2970
Graeme McRae, Evil and Odious Numbers, Factorial, and Superfactorial, Maths Blog, Quora.
FORMULA
EXAMPLE
1!*2!*3!*4!*5! = 2^8 * 3^3 * 5^1 so a(5) = 3*5 = 15.
MATHEMATICA
Nest[Append[#, {#, Sqrt[#] /. (c_: 1) a_^(b_: 0) :> (c a^b)^2} &[#[[-1, 1]]*Length[# + 1]!]] &, {{1, 1}}, 44][[All, -1]] (* Michael De Vlieger, Feb 17 2018, after Bill Gosper at A007913 *)
f[n_] := Block[{m = BarnesG[n +2], p = 2}, While[p < n, While[ Mod[m, p^2] == 0, m/=p^2]; p = NextPrime@ p]; m]; Array[f, 42] (* Robert G. Wilson v, Feb 18 2018 *)
PROG
(PARI) a(n) = core(prod(k=1, n, k!)); \\ Michel Marcus, Feb 17 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Graeme McRae, Feb 17 2018
STATUS
approved