Skip to content

NonInversionSum on Permutation ​

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

On Permutation

Called as CombinatorialStat(x, "NonInversionSum"). 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 St000341

The non-inversion sum of a permutation.

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

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