Skip to content

InversionSum on Permutation ​

The sum of j - i over the inversions i < j.

On Permutation

Called as CombinatorialStat(x, "InversionSum"). The head's page has its examples.

Live

Distribution

Over SymmetricGroup at each size, tallied here in your browser; sizes past 8 are not offered.

Also on

The same name on other carriers, each its own implementation: BinaryWord.

FindStat St000055

The inversion sum of a permutation.

ObjectValue
[1]0
[1,2]0
[2,1]1
[1,2,3]0
[1,3,2]1
[2,1,3]1
[2,3,1]3
[3,1,2]3

Data from FindStat, the combinatorial statistic finder; the page at findstat.org/St000055 has the rest.