What
The major index of a permutation is the sum of the positions of the descent of the permutation.
Example: is a permutation of , there are 2 descents at positions 2 (from 5 to 1) and 4 (from 6 to 2) →
Named after Major Percy Alexander MacMahon.
Distribution
In 1913 that, MacMahon showed that: the distribution of the major index on all permutations of a fixed length is the same as the distribution of inversions.
Which means the number of permutations of length with major index equal to ) is the same as the number of permutations of length with inversions
(These numbers are known as Mahonian numbers, also in honor of MacMahon)
Calculation
Calculated indirectly by calculating the distribution of inversions.