OFFSET
0,9
COMMENTS
A(n,k) counts generalized Tesler matrices. For the definition of Tesler matrices see A008608.
LINKS
Alois P. Heinz, Antidiagonals n = 0..15, flattened
EXAMPLE
A(2,2) = 3: [1,1; 0,3], [2,0; 0,2], [0,2; 0,4].
Square array A(n,k) begins:
1, 1, 1, 1, 1, 1, ...
1, 1, 1, 1, 1, 1, ...
1, 2, 3, 4, 5, 6, ...
1, 7, 22, 50, 95, 161, ...
1, 40, 351, 1686, 5796, 16072, ...
1, 357, 11275, 138740, 1010385, 5244723, ...
MAPLE
b:= proc(n, i, l, k) option remember; (m-> `if`(m=0, 1,
`if`(i=0, b(l[1]+k, m-1, subsop(1=NULL, l), k), add(
b(n-j, i-1, subsop(i=l[i]+j, l), k), j=0..n))))(nops(l))
end:
A:= (n, k)-> b(k, n-1, [0$(n-1)], k):
seq(seq(A(n, d-n), n=0..d), d=0..10);
MATHEMATICA
b[n_, i_, l_List, k_] := b[n, i, l, k] = Function[{m}, If[m == 0, 1, If[i == 0, b[l[[1]] + k, m-1, ReplacePart[l, 1 -> Sequence[]], k], Sum[b[n-j, i-1, ReplacePart[l, i -> l[[i]]+j], k], {j, 0, n}]]]][Length[l]]; A[n_, k_] := b[k, n-1, Array[0&, n-1], k]; A[0, _] = A[_, 0] = 1; Table[Table[A[n, d-n], {n, 0, d}], {d, 0, 10}] // Flatten (* Jean-François Alcover, Jul 15 2015, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Alois P. Heinz, Jul 06 2015
STATUS
approved