login
A397145
Number T(n,k) of permutations p of [n] where k is the product of the number of odd weak excedances and the number of even weak excedances of p; triangle T(n,k), n>=0, 0 <= k <= floor(n^2/4), read by rows.
2
1, 1, 1, 1, 2, 3, 1, 4, 8, 11, 0, 1, 12, 18, 63, 8, 18, 0, 1, 36, 39, 285, 104, 198, 0, 57, 0, 0, 1, 144, 81, 1104, 950, 1536, 0, 1104, 0, 39, 81, 0, 0, 1, 576, 166, 3954, 6356, 10561, 0, 14166, 0, 1599, 2694, 0, 0, 247, 0, 0, 0, 1, 2880, 336, 13348, 37382, 68853, 1298, 136736, 0, 37382, 49554, 1260, 0, 13348, 0, 0, 166, 336, 0, 0, 0, 1
OFFSET
0,5
COMMENTS
The weak excedance set of a permutation p of [n] is the set of indices i such that p(i) >= i.
LINKS
Wikipedia, Permutation
FORMULA
T(n,floor(n^2/4)) = 1.
Sum_{k=0..floor(n^2/4)} k * T(n,k) = A395245(n).
EXAMPLE
T(n,0) = 4: 2143, 3142, 4123, 4132.
T(n,1) = 8: 1423, 2413, 3124, 3412, 3421, 4213, 4312, 4321.
T(n,2) = 11: 1243, 1324, 1342, 1432, 2134, 2314, 2341, 2431, 3214, 3241, 4231.
T(n,4) = 1: 1234.
Triangle T(n,k) begins:
1;
1;
1, 1;
2, 3, 1;
4, 8, 11, 0, 1;
12, 18, 63, 8, 18, 0, 1;
36, 39, 285, 104, 198, 0, 57, 0, 0, 1;
144, 81, 1104, 950, 1536, 0, 1104, 0, 39, 81, 0, 0, 1;
...
MAPLE
b:= proc(s, i, k) option remember; (n-> `if`(n=0, x^(i*k), add(
b(s minus {j}, `if`(irem(n, 2)=1 or j<n, 0, 1)+i,
`if`(irem(n, 2)=0 or j<n, 0, 1)+k), j=s)))(nops(s))
end:
T:= (n, k)-> coeff(b({$1..n}, 0$2), x, k):
seq(seq(T(n, k), k=0..(n^2)/4), n=0..10);
CROSSREFS
Columns k=0-1 give: A010551, A178420.
Row sums give A000142.
Sequence in context: A375047 A075297 A057597 * A226392 A121340 A332635
KEYWORD
nonn,tabf
AUTHOR
Alois P. Heinz, Jul 15 2026
STATUS
approved