Major index
Appearance
In mathematics, the major index of the permutation π is defined as
In other words, the major index of π is the sum of the positions of its “descent tops.” For example, the major index of the permutation 25143 (in one-line notation) is 2+4=6.
This statistic is named after Major Percy Alexander MacMahon who showed in 1913 that the distribution of the major index on all permutations of a fixed length is the same as the distribution of inversions.