OFFSET
0,9
LINKS
Toufik Mansour, Howard Skogman, and Rebecca Smith, Sorting inversion sequences, arXiv:2401.06662 [math.CO], 2024. See Theorem 3.18 at page 10.
FORMULA
EXAMPLE
The array begins:
0, 1, 1, 1, 1, 1, ...
0, 1, 2, 3, 4, 5, ...
0, 1, 4, 9, 16, 25, ...
0, 1, 8, 25, 56, 105, ...
0, 1, 16, 65, 176, 385, ...
0, 1, 32, 161, 512, 1281, ...
...
MATHEMATICA
A[n_, k_]:=(1-(-1)^k)/2+2^n Sum[Binomial[n+k-3-2i, n-1], {i, 0, Floor[(k-2)/2]}]; Table[A[n-k, k], {n, 0, 11}, {k, 0, n}]//Flatten
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Stefano Spezia, Jan 20 2024
STATUS
approved