OFFSET
0,3
COMMENTS
FORMULA
G.f.: G(t,z) = 1/(1-z-z^2+z^3-t*z^3-z^3*g), where g = 1+zg + z^2*g + z^3*g^2.
EXAMPLE
T(4,1)=2 because we have UDUUDUDD and UUDUDDUD.
Triangle starts:
1;
1;
2;
3, 1;
6, 2;
12, 5;
26, 10, 1;
MAPLE
G := 2/(1-z-z^2+2*z^3-2*t*z^3+sqrt(1-2*z-z^2-2*z^3+z^4)): Gser := simplify(series(G, z = 0, 20)): for n from 0 to 16 do P[n] := sort(coeff(Gser, z, n)) end do: for n from 0 to 16 do seq(coeff(P[n], t, j), j = 0 .. floor((1/3)*n)) end do; # yields sequence in triangular form
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Emeric Deutsch, Oct 29 2009
STATUS
approved