ToInversionVector

ToInversionVector[p]
gives the inversion vector associated with permutation .

DetailsDetails