OFFSET
0,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..42
FORMULA
a(n) ~ c * A000178(n), where c = A238695 = Product_{k>=0} (1 + 1/k!) = 7.364308272367257256372772509631... . - Vaclav Kotesovec, Jul 20 2015
MAPLE
a:= proc(n) a(n):= `if`(n=0, 2, a(n-1)*(n!+1)) end:
seq(a(n), n=0..14); # Alois P. Heinz, May 20 2013
MATHEMATICA
Table[Product[i!+1, {i, 0, n}], {n, 0, 12}] (* Geoffrey Critzer, May 04 2013 *)
Rest[FoldList[Times, 1, Range[0, 15]!+1]] (* Harvey P. Dale, May 28 2013 *)
PROG
(JavaScript)
function factorial(n) {
var i, c=1;
for (i=2; i<=n; i++) c*=i;
return c;
}
a=2;
for (j=1; j<10; j++) {
a*=(factorial(j)+1);
document.write(a+", ");
}
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Mar 23 2013
STATUS
approved