OFFSET
0,6
COMMENTS
LINKS
FORMULA
EXAMPLE
T(5,4) = 3: there are 3 permutations of [5] with excedance set {3} (the 4th subset in standard order): 12435, 12534, 12543.
Triangle T(n,k) begins:
1;
1;
1, 1;
1, 3, 1, 1;
1, 7, 3, 7, 1, 3, 1, 1;
1, 15, 7, 31, 3, 17, 7, 15, 1, 7, 3, 7, 1, 3, 1, 1;
...
MAPLE
b:= proc(s, t) option remember; (m->
`if`(m=0, x^(t/2), add(b(s minus {i}, t+
`if`(i<m, 2^i, 0)), i=s)))(nops(s))
end:
T:= n-> (p-> seq(coeff(p, x, i), i=0..degree(p)))(b({$1..n}, 0)):
seq(T(n), n=0..7);
MATHEMATICA
b[s_, t_] := b[s, t] = Function [m, If[m == 0, x^(t/2), Sum[b[s ~Complement~ {i}, t + If[i < m, 2^i, 0]], {i, s}]]][Length[s]];
T[n_] := CoefficientList[b[Range[n], 0], x];
Table[T[n], {n, 0, 7}] // Flatten (* Jean-François Alcover, Feb 13 2023, after Alois P. Heinz *)
KEYWORD
AUTHOR
Alois P. Heinz, Feb 01 2023
STATUS
approved