OFFSET
1,5
COMMENTS
T(n, k) is the k-th super- and subdiagonal sum of the matrix M(n) whose permanent is A332566(n).
The h-th subdiagonal of the triangle T gives 0 followed by the multiples of h+1 repeated.
For k > 0, the (2*k-1)-th and (2*k)-th columns of the triangle T give the multiples of k.
FORMULA
O.g.f.: y*(x*(2 + y + y^2) - (1 + y + 2*y^2))/((1 - x)^2*(1 - y)^3*(1 + y)^2).
T(n, k) = k*(n - k)/2 for k even.
T(n, k) = (1 + k)*(n - k)/2 for k odd.
EXAMPLE
n\k| 0 1 2 3 4 5
---+------------
1 | 0
2 | 0 1
3 | 0 2 1
4 | 0 3 2 2
5 | 0 4 3 4 2
6 | 0 5 4 6 4 3
...
For n = 4 the matrix M(4) is
0 1 1 2
1 0 1 1
1 1 0 1
2 1 1 0
and therefore T(4, 0) = 0, T(4, 1) = 3, T(4, 2) = 2 and T(4, 3) = 2.
MATHEMATICA
T[n_, k_]:=(n-k)(1-(-1)^k+2k)/4; Flatten[Table[T[n, k], {n, 1, 12}, {k, 0, n-1}]] (* or *)
r[n_] := Table[SeriesCoefficient[y*(x*(2 + y + y^2) - (1 + y + 2*y^2))/((1 - x)^2 *(1 - y)^3 (1 + y)^2), {x, 0, i}, {y, 0, j}], {i, n, n}, {j, 0, n-1}]; Flatten[Array[r, 12]]
CROSSREFS
KEYWORD
AUTHOR
Stefano Spezia, Mar 08 2020
STATUS
approved