Skip to content

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)FindStatSt000338via Permutation✓
HookFactorizationPrefixLength(p)The length of the leading increasing factor p of the hook factorization p t1 ... tk.
Typed signatures
TypePackageApplies
(list<integer> | permutation) -> numbercombinatoricsalways

Domain: Permutation statistics

Details
  • Defined over Permutation as 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),
                                      ) - 1

Examples

Basic #

the one-line word 312312

live ↗
InHookFactorizationPrefixLength(Permutation⁡([3,1,2]))\mathrm{HookFactorizationPrefixLength}({\operatorname{Permutation}}([3, 1, 2]))Out00

the one-line word 312312, as a plain list

live ↗
InHookFactorizationPrefixLength([3,1,2])\mathrm{HookFactorizationPrefixLength}(\bigl\lbrack3, 1, 2\bigr\rbrack)Out00

the one-line word 24132413

live ↗
InHookFactorizationPrefixLength(Permutation⁡([2,4,1,3]))\mathrm{HookFactorizationPrefixLength}({\operatorname{Permutation}}([2, 4, 1, 3]))Out11
Properties #

FindStat's value for [1]

live ↗
InCombinatorialStat(Permutation⁡([1]),HookFactorizationPrefixLength)\mathrm{CombinatorialStat}({\operatorname{Permutation}}([1]), \text{HookFactorizationPrefixLength})Out11

Known value · FindStat St000338

FindStat's value for [1,2]

live ↗
InCombinatorialStat(Permutation⁡([1,2]),HookFactorizationPrefixLength)\mathrm{CombinatorialStat}({\operatorname{Permutation}}([1, 2]), \text{HookFactorizationPrefixLength})Out22

Known value · FindStat St000338

FindStat's value for [2,1]

live ↗
InCombinatorialStat(Permutation⁡([2,1]),HookFactorizationPrefixLength)\mathrm{CombinatorialStat}({\operatorname{Permutation}}([2, 1]), \text{HookFactorizationPrefixLength})Out00

Known value · FindStat St000338

About
Examples6
CrosswalkFindStat