WeakMajorIndex
The sum of the positions i with c(i) >= c(i+1).
✓ checked against that system · ! checked, with disagreements (hover a chip)FindStat
St001930via BinaryWord✓St001931via IntegerComposition✓WeakMajorIndex(composition)The sum of the positions i with c(i) >= c(i+1).Typed signatures
| Type | Package | Applies |
|---|---|---|
(binary_word | composition | list<integer>) -> number | combinatorics | always |
Details
- Defined over
IntegerCompositionas an expression in_x, evaluated by compute-engine — the definition IS the implementation. - Takes a
IntegerComposition, 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. - Reads the composition as a word, so it stands on a bare list too.
Definition
Epsil, as the implementation runs it.
on IntegerComposition, over _x
0 if Length(_x) < 2 else Sum(Filter(
Range(1, Length(_x) - 1),
Function(_x[i] >= _x[i + 1], i),
))on BinaryWord, over _x
0 if Length(_x) < 2 else Sum(Filter(
Range(1, Length(_x) - 1),
Function(_x[i] >= _x[i + 1], i),
))Examples
Properties #
About
| Examples | 5 |
|---|---|
| Crosswalk | FindStat ×2 |