OFFSET
0,6
FORMULA
T(0,k) = 1 and T(n,k) = ((n-1)!/k!) * Sum_{j=k+1..n} (j/(j-k)!) * T(n-j,k)/(n-j)! for n > 0.
T(n,k) = n! * Sum_{j=0..floor(n/(k+1))} Stirling2(n-k*j,j)/(k!^j * (n-k*j)!).
EXAMPLE
Square array begins:
1, 1, 1, 1, 1, 1, 1, ...
1, 0, 0, 0, 0, 0, 0, ...
2, 2, 0, 0, 0, 0, 0, ...
5, 3, 3, 0, 0, 0, 0, ...
15, 16, 6, 4, 0, 0, 0, ...
52, 65, 10, 10, 5, 0, 0, ...
203, 336, 105, 20, 15, 6, 0, ...
PROG
(PARI) T(n, k) = n!*sum(j=0, n\(k+1), stirling(n-k*j, j, 2)/(k!^j*(n-k*j)!));
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Seiichi Manyama, Jul 12 2022
STATUS
approved