HookFactorizationPrefixLength
The length of the leading increasing factor p of the hook factorization p t1 ... tk.
✓ checked against that system · ! checked, with disagreements (hover a chip)FindStat
St000338via Permutation✓HookFactorizationPrefixLength(p)The length of the leading increasing factor p of the hook factorization p t1 ... tk.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. - Hook factors are cut from the right, each from a descent top.
Definition
Epsil, as the implementation runs it.
on Permutation, over _x
Length(_x) if Length(_x) < 2 else Fold(
Function(
b if b <= a - 2 && _x[b] >
_x[b + 1] else a,
a,
b,
),
Length(_x) + 1,
Range(Length(_x) - 1, 1, -1),
) - 1Examples
Basic #
Properties #
About
| Examples | 6 |
|---|---|
| Crosswalk | FindStat |