OFFSET
1,6
COMMENTS
Also the number of ways of coloring n-k values of {0, ..., n-2} in red, and building a length n-1 inversion sequence in which each red value occurs at least twice. A length n inversion sequence is a sequence of n integers e_1, e_2, ..., e_n such that 0 <= e_i < i.
LINKS
Benjamin Testart, Table of n, a(n) for n = 1..5050 of rows 1..100
Benjamin Testart, On minimal pattern-containing inversion sequences, arXiv:2602.12130 [math.CO], 2026. See Table 1.
FORMULA
Mixed (exponential in x and ordinary in y) generating function F(x,y) satisfies d/dx F(x,y) = (y+1)*exp(F(x,y)) - F(x,y) - 1.
EXAMPLE
Triangle begins:
[1] 1;
[2] 0, 1;
[3] 0, 1, 2;
[4] 0, 0, 5, 6;
[5] 0, 0, 4, 27, 24;
[6] 0, 0, 0, 49, 168, 120;
[7] 0, 0, 0, 34, 515, 1200, 720;
[8] 0, 0, 0, 0, 790, 5471, 9720, 5040;
[9] 0, 0, 0, 0, 496, 13841, 61226, 88200, 40320;
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Benjamin Testart, Feb 18 2026
STATUS
approved
