OFFSET
0,4
COMMENTS
LINKS
Emeric Deutsch, Problem 10658: Another Type of Lattice Path, American Math. Monthly, 107, 2000, 368-370.
FORMULA
T(n,k) = (1/n) binomial(n, k)*sum(binomial(n-k,j)*binomial(n+2j,k+j-1), j=0..n-k).
G.f.: G = G(t,z) satisfies G = 1+z(G-1+t)G+zG^3.
EXAMPLE
T(2,1) = 5 because we have udUdd, uudd, Uddud, Ududd and Uuddd.
Triangle begins:
1;
1,1;
4,5,1;
20,32,13,1;
113,223,135,26,1;
MAPLE
T:=proc(n, k) if n=0 and k=0 then 1 elif n=0 then 0 elif k=n then 1 elif k=n then 1 else (1/n)*binomial(n, k)*sum(binomial(n-k, j)*binomial(n+2*j, k+j-1), j=0..n-k) fi end: for n from 0 to 9 do seq(T(n, k), k=0..n) od; # yields sequence in triangular form
MATHEMATICA
T[0, 0] = 1; T[n_, k_] := (1/n) Binomial[n, k]*Sum[Binomial[n-k, j]* Binomial[n+2j, k+j-1], {j, 0, n-k}];
Table[T[n, k], {n, 0, 9}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jul 19 2018 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Emeric Deutsch, Jun 10 2005
STATUS
approved