OFFSET
0,5
COMMENTS
The X-ray of a matrix is defined as the sequence of antidiagonal sums.
T(n,k) is defined for all n,k >= 0. The triangle contains only the positive terms. T(n,k) = 0 for k>n^2.
LINKS
Alois P. Heinz, Rows n = 0..40, flattened
C. Bebeacua, T. Mansour, A. Postnikov and S. Severini, On the X-rays of permutations, arXiv:math/0506334 [math.CO], 2005.
FORMULA
T(n,floor(n^2/2)) = A290058(n).
T(n,k) = T(n,n^2-k).
EXAMPLE
Triangle T(n,k) begins:
1;
1, 1;
1, 3, 4, 3, 1;
1, 5, 13, 23, 30, 30, 23, 13, 5, 1;
1, 7, 26, 68, 139, 234, 334, 411, 440, 411, 334, 234, 139, 68, 26, 7, 1;
...
MAPLE
b:= proc(n, i, t) option remember; (m-> `if`(n>m, 0, `if`(n=m, 1,
add(b(n-j, i-t, 1-t), j=0..min(i, n)))))(i*(i+1-t))
end:
T:= (n, k)-> b(k, n, 1):
seq(seq(T(n, k), k=0..n^2), n=0..7);
MATHEMATICA
b[n_, i_, t_]:= b[n, i, t] = Function[{m, jm}, If[n>m, 0, If[n==m, 1, Sum[b[n-j, i-t, 1-t], {j, 0, jm}]]]][i*(i+1-t), Min[i, n]]; T[n_, k_]:= b[k, n, 1]; Table[T[n, k], {n, 0, 7}, {k, 0, n^2}] // Flatten (* Jean-François Alcover, Aug 09 2017, translated from Maple *)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Alois P. Heinz, Jul 19 2017
STATUS
approved