OFFSET
0,4
COMMENTS
FORMULA
T(n,k) = Sum_{i=0..(n-k)/2} binomial(n-2*i-1,n-k-2*i)*3^i.
Recurrence: T(n+1,k+1) = T(n,k) + T(n,k+1).
EXAMPLE
Triangle begins:
1
0, 1
3, 1, 1
0, 4, 2, 1
9, 4, 6, 3, 1
0, 13, 10, 9, 4, 1
27, 13, 23, 19, 13, 5, 1
0, 40, 36, 42, 32, 18, 6, 1
81, 40, 76, 78, 74, 50, 24, 7, 1
MATHEMATICA
Flatten[Table[Sum[Binomial[n-2i-1, n-k-2i]3^i, {i, 0, ((n-k))/2}], {n, 0, 20}, {k, 0, n}]]
PROG
(Maxima) create_list(sum(binomial(n-2*i-1, n-k-2*i)*3^i, i, 0, (n-k)/2), n, 0, 20, k, 0, n);
CROSSREFS
KEYWORD
AUTHOR
Emanuele Munarini, Jun 07 2011
STATUS
approved