Skip to content

SubexcedantSeq ​

The singular-inhabitant constructor for a subexcedant sequence, a word whose entry ii (from 1) lies in 0≤ai≤i−10 \le a_i \le i - 1.

SubexcedantSeq(list)The singular-inhabitant constructor for a subexcedant sequence, a word whose entry ii (from 1) lies in 0≤ai≤i−10 \le a_i \le i - 1.
Typed signatures
TypePackageApplies
((list<integer>) -> subexcedant_seq) & ((permutation) -> subexcedant_seq)combinatoricsalways

Domain: Collections

Details
  • A SubexcedantSeqs element.
  • SubexcedantSeq(permutation) is the permutation's inversion sequence: entry ii counts the earlier entries larger than the ii-th. Its total is the inversion count, and Permutation(sequence) is the way back.
  • The two enumerate in different orders, so the conversion is a bijection and not a rank-preserving one: SymmetricGroup runs its last two positions fastest, SubexcedantSeqs its last entry.

Maps

Into and out of SubexcedantSeq, called as CombinatorialMap(x, "Name"). Properties are the laws we state and what FindStat records.

From SubexcedantSeq

  • PermutationSubexcedantSeq → PermutationinverseThe permutation a subexcedant sequence is the inversion sequence of.

To SubexcedantSeq

  • SubexcedantSeqPermutation → SubexcedantSeqinverseEntry i counts the earlier entries larger than p(i): the permutation's inversion sequence.

Examples

Basic #

From a permutation: 22 has two larger entries before it, 11 one, 44 and 33 none

live ↗
InSubexcedantSeq⁡(Permutation⁡([3,1,4,2]))\operatorname{SubexcedantSeq}({\operatorname{Permutation}}([3, 1, 4, 2]))OutSubexcedantSeq⁡([0,1,0,2]){\operatorname{SubexcedantSeq}}([0, 1, 0, 2])

And back

live ↗
InPermutation⁡(SubexcedantSeq⁡([0,1,0,2]))\operatorname{Permutation}({\operatorname{SubexcedantSeq}}([0, 1, 0, 2]))OutPermutation⁡([3,1,4,2]){\operatorname{Permutation}}([3, 1, 4, 2])
About
Examples2
Checked againstWolfram Language 2 differJulia 2 differRust 2 differ
CrosswalkOEIS

See also: SubexcedantSeqs, LehmerCodes