OFFSET
1,4
COMMENTS
LINKS
Alois P. Heinz, Rows n = 1..141, flattened
FORMULA
T(n,k) = n!/[k(k+1)] if k<n; T(n,n)=(n-1)!.
Rec. rel.: T(n,k) = (n-1-k)*T(n-1,k) + (k-1)T(n-1,k-1) for 1 < k < n.
EXAMPLE
T(4,2) = 4 because we have (1)(2)(34), (13)(24), (12)(34) and (14)(23).
Triangle starts:
1;
1, 1;
3, 1, 2;
12, 4, 2, 6;
60, 20, 10, 6, 24;
MAPLE
T:=proc(n, k) if k < n then factorial(n)/(k*(k+1)) elif k = n then factorial(n-1) else 0 end if end proc: for n to 9 do seq(T(n, k), k=1..n) end do; # yields sequence in triangular form
# second Maple program:
b:= proc(n, l) option remember; `if`(n=0, x^l, add(
binomial(n-1, j-1)*b(n-j, j)*(j-1)!, j=1..n))
end:
T:= n-> (p-> (seq(coeff(p, x, i), i=1..n)))(b(n, 0)):
seq(T(n), n=1..12); # Alois P. Heinz, Dec 08 2018
MATHEMATICA
T[n_, n_] := (n-1)!;
T[n_, k_] := n!/(k(k+1));
Table[T[n, k], {n, 1, 12}, {k, 1, n}] // Flatten (* Jean-François Alcover, Dec 09 2019 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Emeric Deutsch, Jan 10 2008
STATUS
approved