OFFSET
1,4
COMMENTS
Mirror image of A106436. - Alois P. Heinz, Jan 29 2019
LINKS
Alois P. Heinz, Rows n = 1..141, flattened
Peter Luschny, Set partitions
FORMULA
Recursion: The value of T(n,k) is, if n < 0 or k < 0 or k > n undefined, else if n = 1 then 1 else if k = n then T(n-1,1) - T(n-1,n-1); in all other cases T(n,k) = T(n,k+1) + T(n-1,k).
EXAMPLE
T(4,2) = card({2|134, 2|3|14, 2|4|13}) = 3.
[1] 1,
[2] 1, 0,
[3] 2, 1, 1,
[4] 5, 3, 2, 1,
[5] 15, 10, 7, 5, 4,
[6] 52, 37, 27, 20, 15, 11,
[-1-] [-2-] [-3-] [-4-] [-5-] [-6-]
MAPLE
MATHEMATICA
T[n_, k_] := T[n, k] = Which[n == 1, 1, n == k, T[n-1, 1] - T[n-1, n-1], True, T[n-1, k] + T[n, k+1]];
Table[T[n, k], {n, 1, 10}, {k, 1, n}] (* Jean-François Alcover, Jun 22 2019 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Peter Luschny, Apr 08 2011
STATUS
approved