A367313 Triangle read by rows: T(n,k) is the number of permutations of [n] with weighted inversion index k.
1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 3, 3, 4, 3, 3, 2, 1, 1, 1, 1, 2, 3, 5, 5, 8, 9, 10, 10, 12, 10, 10, 9, 8, 5, 5, 3, 2, 1, 1, 1, 1, 2, 3, 5, 7, 9, 12, 16, 20, 23, 28, 31, 36, 38, 41, 43, 44, 44, 43, 41, 38, 36, 31, 28, 23, 20, 16, 12, 9, 7, 5, 3, 2, 1, 1
Offset: 0
Examples
The permutation pi = (2,5,3,1,4) has these inversions, with the given contributions to weighted inversion index: (2,1), 1 (5,3), 2 (5,1), 2 (5,4), 2 (3,1), 3 The corresponding partition can be created as follows. For each i <= 5, write the number of j > i with pi(i) > pi(j): (1,3,1,0,0). For each i, the i-th number in this sequence is at most n-i. Let lambda(i) be the sum of the values of the sequence starting with the i-th value: lambda = (5,4,1,0,0). This permutation and partition are counted by T(5,10). In the product expansion of t_5(q), they correspond to the following choice of terms: (1 - q^5)/(1 - q) = 1 + q + q^2 + q^3 + q^4: choose q, (1 - q^8)/(1 - q^2) = 1 + q^2 + q^4 + q^6: choose q^6, (1 - q^9)/(1 - q^3) = 1 + q^3 + q^6: choose q^3, (1 - q^8)/(1 - q^4) = 1 + q^4: choose 1. Triangle T(n,k) begins: 1; 1; 1, 1; 1, 1, 2, 1, 1; 1, 1, 2, 3, 3, 4, 3, 3, 2, 1, 1; 1, 1, 2, 3, 5, 5, 8, 9, 10, 10, 12, 10, 10, 9, 8, 5, 5, 3, 2, 1, 1; ...
Links
- Alois P. Heinz, Rows n = 0..25, flattened
Crossrefs
Formula
From Alois P. Heinz, Nov 25 2023: (Start)
Comments