DescentWordFiberSize
The permutations of the same size with the same descents as p.
✓ checked against that system · ! checked, with disagreements (hover a chip)FindStat
St000530via Permutation✓DescentWordFiberSize(p)The permutations of the same size with the same descents as p.Typed signatures
| Type | Package | Applies |
|---|---|---|
(list<integer> | permutation) -> number | combinatorics | always |
Details
- Defined over
Permutationas an expression in_x, evaluated by compute-engine — the definition IS the implementation. - Takes a
Permutation, and also a bare list of integers: this reading compares entries with each other rather than with their positions, so it stands on any sequence. - Counted by the rank of the last entry: a descent keeps the partial sums from the right, an ascent from the left.
Definition
Epsil, as the implementation runs it.
on Permutation, over _x
1 if Length(_x) < 2 else Sum(Fold(
Function(Map(
Function(Sum(Map(
Function(
a[m],
m,
),
Filter(
Range(1, Count(a)),
Function(m >= j, m),
),
)) if _x[b] >
_x[b + 1] else Sum(Map(
Function(a[m], m),
Filter(
Range(1, Count(a)),
Function(m < j, m),
),
)), j),
Range(1, Count(a) + 1),
), a, b),
[1],
Range(1, Length(_x) - 1),
))Examples
Basic #
Properties #
About
| Examples | 6 |
|---|---|
| Crosswalk | FindStat |