SubexcedantSeqs
Subexcedant sequences of length : words with — another factorial-base encoding of permutations.
OEIS
A000142SubexcedantSeqs(n)Subexcedant sequences of length : words with — another factorial-base encoding of permutationsTyped signatures
| Type | Package | Applies |
|---|---|---|
(integer<0..>) -> indexed_collection<subexcedant_seq> | combinatorics | always |
Details
- Count is (A000142); a sibling of LehmerCodes with the bound instead of .
Definition
Epsil, as the implementation runs it.
count(_n)
_n!unrank(_n, _r)
Map(Function((_r - _r % Fold(
Function(product * f, product, f),
1,
Range(_n - (_n - j) + 1, _n, 1),
)) / Fold(
Function(product * f, product, f),
1,
Range(_n - (_n - j) + 1, _n, 1),
) % j, j), Range(1, _n, 1))rank(_n, _x)
Fold(Function(sr * sj + _x[sj], sr, sj), 0, Range(1, _n, 1))valid(_n, _x)
Fold(
Function(ok_sj && 0 <= _x[sj] && _x[sj] <= sj - 1, ok_sj, sj),
True,
Range(1, _n, 1),
) if Length(_x) == _n else FalseMaps
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.
Enumeration
Examples
1 more kept as data, checked against the oraclesAbout
| Examples | 3 |
|---|---|
| Crosswalk | OEIS |
See also: SymmetricGroup, LehmerCodes