Skip to content

LehmerCodeRotation ​

The permutation whose Lehmer code is this one's with every entry one larger, cyclically.

LehmerCodeRotation(Permutation)The permutation whose Lehmer code is this one's with every entry one larger, cyclically.
Typed signatures
TypePackageApplies
(permutation) -> permutationcombinatoricsalways

Domain: Combinatorial maps

Details
  • Takes a Permutation and returns a Permutation — a typed map, so a wrong carrier is a type error rather than a wrong answer.
  • FindStat's Mp00149. Entry i wraps from n - i back to 0.

Examples

Basic #

the one-line word 231231

live ↗
InLehmerCodeRotation(Permutation⁡([2,3,1]))\mathrm{LehmerCodeRotation}({\operatorname{Permutation}}([2, 3, 1]))OutPermutation⁡([3,1,2]){\operatorname{Permutation}}([3, 1, 2])
About
Examples1
CrosswalkFindStat