MajorCodeToLehmerCode
The permutation whose Lehmer code is this permutation's major code.
FindStat
Mp00073via PermutationMajorCodeToLehmerCode(Permutation)The permutation whose Lehmer code is this permutation's major code.Typed signatures
| Type | Package | Applies |
|---|---|---|
(permutation) -> permutation | combinatorics | always |
Details
- Takes a
Permutationand returns aPermutation— a typed map, so a wrong carrier is a type error rather than a wrong answer. - FindStat's Mp00073. It carries the major index to the inversion count; the inverse is LehmerCodeToMajorCode.
Examples
About
| Examples | 1 |
|---|---|
| Crosswalk | FindStat |