Let M = { 1 , … , n } {\displaystyle {}M=\{1,\ldots ,n\}} and let π {\displaystyle {}\pi } be a permutation on M {\displaystyle {}M} . We call an index pair
an inversion (of π {\displaystyle {}\pi } ), if π ( i ) > π ( j ) {\displaystyle {}\pi (i)>\pi (j)} holds.