OFFSET
0,5
COMMENTS
T(n,k) = number of column-marked subdiagonal paths of steps east (1,0) and north (0,1) from the origin to (n,k). Subdiagonal means that the path never rises above the diagonal line y=x and column-marked means that for 1 <= i <= n, one unit square directly below the i-th east step and above the line y=-1 is marked. - David Callan, Feb 04 2006
FORMULA
EXAMPLE
T(5,2) = 220 = 1*1 + 2*15 + 3*63 = 1*T(4,0) + 2*T(4,1) + 3*T(4,2).
T(5,2) = 220 = 31 + 3*63 = T(5,1) + (2+1)*T(4,2).
T(5,3) = 728 = 220 + 4*127 = T(5,2) + (3+1)*T(4,3).
Rows begin:
[1],
[1,1],
[1,3,3],
[1,7,16,16],
[1,15,63,127,127],
[1,31,220,728,1363,1363],
[1,63,723,3635,10450,18628,18628],
[1,127,2296,16836,69086,180854,311250,311250],
[1,255,7143,74487,419917,1505041,3683791,6173791,6173791],...
PROG
(PARI) T(n, k)=if(n<k||k<0, 0, if(n==0||k==0, 1, T(n, k-1)+(k+1)*T(n-1, k)))
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Paul D. Hanna, Jan 04 2005
STATUS
approved