OFFSET
0,4
COMMENTS
The left edge of the triangle appears to be A005321.
FORMULA
An equivalent recursion: T(0, 0) = T(1, 0) = 1, T(n, 0) = 2*T(n-1, n-1) if n>=2, T(n, k) = 2*T(n, k-1) - T(n-1, k-1) if n>=k>=1.
EXAMPLE
Triangle begins:
1
1 1
2 3 5
10 18 33 61
122 234 450 867 1673
3346 6570 12906 25362 49857 98041
...
T(5, 2) = (3346 + 6570) + (450 + 867 + 1673) = 12906;
T(5, 2) = 2 * 6570 - 234 = 12906.
PROG
(Python)
def T(n, k):
if k == 0:
if n == 0 or n == 1:
return 1
return 2 * T(n-1, n-1)
return 2 * T(n, k-1) - T(n-1, k-1)
(PARI) T(n, k) = if (k == 0, if (n <= 1, 1, 2 * T(n-1, n-1)), 2 * T(n, k-1) - T(n-1, k-1));
tabl(nn) = for (n=0, nn, for (k=0, n, print1(T(n, k), ", ")); print); \\ Michel Marcus, Aug 25 2018
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Nicolas Nagel, Aug 24 2018
STATUS
approved