Successions
Permutation: positions i with p(i+1) = p(i) + 1. SetPartition: elements i with i + 1 in the same block.
✓ checked against that system · ! checked, with disagreements (hover a chip)FindStat
St000164via PerfectMatching✓St000441via Permutation✓St000502via SetPartition✓Successions(p)Permutation: positions i with p(i+1) = p(i) + 1. SetPartition: elements i with i + 1 in the same block.Typed signatures
| Type | Package | Applies |
|---|---|---|
(list<integer> | permutation | set_partition) -> 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. - Defined over
SetPartitionas an expression in_x, evaluated by compute-engine — the definition IS the implementation. - Takes a
SetPartitionand nothing else — it reads values against their positions, or walks the orbits, so it needs the bijection. Applying it to a bare list is a type error, not a wrong answer. - Also called small ascents or 1-rises.
Definition
Epsil, as the implementation runs it.
on Permutation, over _x
0 if Length(_x) < 2 else Count(Filter(
Range(1, Length(_x) - 1),
Function(_x[i + 1] == _x[i] + 1, i),
))on SetPartition, over _x
0 if Length(_x) < 1 else 0 if Length(Flatten(Map(Function(Most(b), b), _x))) < 1 else Count(Filter(
Range(1, Length(Flatten(Map(Function(Most(b), b), _x))), 1),
Function(Flatten(Map(Function(Rest(b), b), _x))[i] -
Flatten(Map(Function(Most(b), b), _x))[i] ==
1, i),
))Examples
Basic #
Properties #
About
| Examples | 11 |
|---|---|
| Crosswalk | FindStat ×3 |