OFFSET
0,8
COMMENTS
LINKS
Alois P. Heinz, Rows n = 0..140, flattened
FORMULA
T(2n,2k) = [n!*C(n,k)]^2; T(2n+1,2k+1) = [(n+1)!*C(n,k)]^2/(k+1); elsewhere T(n,k)=0.
EXAMPLE
T(3,1) = 4 because we have 132, 312, 213 and 231.
Triangle starts:
1;
0, 1;
1, 0, 1;
0, 4, 0, 2;
4, 0, 16, 0, 4;
0, 36, 0, 72, 0, 12;
36, 0, 324, 0, 324, 0, 36;
...
MAPLE
T:=proc(n, k) if `mod`(n, 2) = 0 and `mod`(k, 2) = 0 then factorial((1/2)*n)^2*binomial((1/2)*n, (1/2)*k)^2 elif `mod`(n, 2) = 1 and `mod`(k, 2) = 1 then 2*factorial((1/2)*n+1/2)^2*binomial((1/2)*n-1/2, (1/2)*k-1/2)^2/(k+1) else 0 end if end proc: for n from 0 to 10 do seq(T(n, k), k=0..n) end do; # yields sequence in triangular form
MATHEMATICA
T[n_, k_] := Which[EvenQ[n] && EvenQ[k], (n/2)!^2*Binomial[n/2, k/2]^2, OddQ[n] && OddQ[k], (2*(n/2+1/2)!^2*Binomial[n/2-1/2, k/2-1/2]^2)/(k+1), True, 0]; Table[T[n, k], {n, 0, 10}, {k, 0, n}] // Flatten (* Jean-François Alcover, Feb 19 2017, translated from Maple *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Emeric Deutsch, Nov 30 2008
STATUS
approved