OFFSET
0,5
COMMENTS
FORMULA
G.f.: (1 - 7*x + 4*x^2)/(1 - (7+y)*x + (3+4*y)*x^2). - Philippe Deléham, Jan 11 2012
T(n,k) = 7*T(n-1,k) + T(n-1,k-1) - 3*T(n-2,k) - 4*T(n-2,k-1), T(0,0) = T(1,1) = T(2,2) = 1, T(1,0) = T(2,0) = 0, T(2,1) = 3, T(n,k) = 0 if k < 0 or if k > n. - Philippe Deléham, Nov 02 2013
EXAMPLE
Triangle begins
1;
0, 1;
0, 3, 1;
0, 18, 6, 1;
0, 117, 45, 9, 1;
0, 765, 342, 81, 12, 1;
...
MATHEMATICA
T[0, 0] = T[1, 1]= T[2, 2] = 1; T[1, 0] = T[2, 0] = 0; T[2, 1] = 3; T[n_, k_]:= If[k<0 || k>n, 0, 7 T[n - 1, k] + T[n - 1, k - 1] - 3 T[n - 2, k] - 4 T[n - 2, k - 1]]; Flatten[Table[ T[n, k], {n, 0, 8}, {k, 0, n}]] (* Indranil Ghosh, Mar 10 2017, after Philippe Deléham *)
PROG
(PARI) T(n, k)= if(n==k, 1, if(k==0, 0, if(n==2 && k==1, 3, if(k<0 || k>n, 0, 7*T(n - 1, k) + T(n - 1, k - 1) - 3*T(n - 2, k) - 4*T(n - 2, k - 1)))));
{for(n=0, 8, for(k=0, n, print1(T(n, k), ", "); ); print(); ); } \\ Indranil Ghosh, Mar 10 2017
CROSSREFS
KEYWORD
AUTHOR
Paul Barry, Nov 11 2008
STATUS
approved