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4,6,2,7,3,5]=>39
[1,4,6,2,7,5,3]=>37
[1,4,6,3,2,5,7]=>44
[1,4,6,3,2,7,5]=>42
[1,4,6,3,5,2,7]=>41
[1,4,6,3,5,7,2]=>36
[1,4,6,3,7,2,5]=>37
[1,4,6,3,7,5,2]=>34
[1,4,6,5,2,3,7]=>40
[1,4,6,5,2,7,3]=>36
[1,4,6,5,3,2,7]=>39
[1,4,6,5,3,7,2]=>34
search for individual values
searching the database for the individual values of this statistic
/
search for generating function
searching the database for statistics with the same generating function
Description
The non-inversion sum of a permutation.
A pair $a < b$ is an noninversion of a permutation $\pi$ if $\pi(a) < \pi(b)$. The non-inversion sum is given by $\sum(b-a)$ over all non-inversions of $\pi$.
A pair $a < b$ is an noninversion of a permutation $\pi$ if $\pi(a) < \pi(b)$. The non-inversion sum is given by $\sum(b-a)$ over all non-inversions of $\pi$.
References
[1] Sack, J., Ăšlfarsson, H. Refined inversion statistics on permutations MathSciNet:2880660 arXiv:1106.1995
[2] The inversion sum of a permutation. St000055
[2] The inversion sum of a permutation. St000055
Code
def statistic(pi): return sum( inv[1]-inv[0] for inv in pi.noninversions(2) )
Created
Dec 23, 2015 at 08:49 by Christian Stump
Updated
Sep 29, 2022 at 19:06 by Will Dowling
searching the database
Sorry, this statistic was not found in the database
or
add this statistic to the database – it's very simple and we need your support!