OFFSET
0,6
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for the first 101 rows, flattened
FORMULA
G.f.: G(t,z) = (2*(1 - z^2))/(1 - 2*z + z^2 + 2*z^3 - 2*t*z^2 + (1 - z^2)*sqrt(1 - 4*z^2)).
EXAMPLE
T(5,2)=3 because we have H(UD)(UD), (UD)H(UD), and (UD)(UD)H, where U=(1,1), D=(1,-1), H=(1,0) (the base pyramids are shown between parentheses).
Triangle starts:
1;
1;
1, 1;
1, 2;
1, 4, 1;
1, 6, 3;
2, 9, 8, 1;
3, 12, 16, 4;
8, 18, 30, 13, 1;
MAPLE
G := (2*(1-z^2))/(1-2*z+z^2+2*z^3-2*t*z^2+(1-z^2)*sqrt(1-4*z^2)): Gser := simplify(series(G, z = 0, 18)): for n from 0 to 15 do P[n] := sort(coeff(Gser, z, n)) end do: for n from 0 to 15 do seq(coeff(P[n], t, k), k = 0 .. floor((1/2)*n)) end do; # yields sequence in triangular form
MATHEMATICA
CoefficientList[CoefficientList[Series[(2*(1 - z^2))/(1 - 2*z + z^2 + 2*z^3 - 2*t*z^2 + (1 - z^2)*Sqrt[1 - 4*z^2]), {z, 0, 10}, {t, 0, 10}], z], t] // Flatten (* G. C. Greubel, Mar 29 2017 *)
KEYWORD
nonn,tabf
AUTHOR
Emeric Deutsch, Jun 04 2011
STATUS
approved