LehmerCodeToMajorCode
The permutation whose major code is this permutation's Lehmer code.
FindStat
Mp00062via PermutationLehmerCodeToMajorCode(Permutation)The permutation whose major code is this permutation's Lehmer 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 Mp00062. It carries the inversion count to the major index; the inverse is MajorCodeToLehmerCode.
Examples
About
| Examples | 1 |
|---|---|
| Crosswalk | FindStat |