DescentComposition
The composition of n cut at the descent positions.
FindStat
Mp00071via PermutationDescentComposition(Permutation)The composition of n cut at the descent positions.Typed signatures
| Type | Package | Applies |
|---|---|---|
(permutation) -> composition | combinatorics | always |
Details
- Takes a
Permutationand returns aIntegerComposition— a typed map, so a wrong carrier is a type error rather than a wrong answer. - Its parts sum to n and its length is one more than Descents — another statistic readable off a map. Removed once for erroring on words with no descents;
Range(1, 0)never evaluates, so the short case has to be stated.
Examples
About
| Examples | 1 |
|---|---|
| Crosswalk | FindStat |