Skip to content

RajchgotIndex ​

The sum over positions i of n - i less the longest increasing subsequence of the larger entries after p(i).

✓ checked against that system · ! checked, with disagreements (hover a chip)FindStatSt001759via Permutation✓
RajchgotIndex(p)The sum over positions i of n - i less the longest increasing subsequence of the larger entries after p(i).
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.
  • The degree of the Grothendieck polynomial, after Pechenik, Speyer and Weigandt.

Definition

Epsil, as the implementation runs it.

on Permutation, over _x

0 if Length(_x) < 1 else Max(Sum(Map(Function(Length(_x) - i - Apply(
                                                                      (v: list<integer>) => Count(Fold(Function(Apply(
                                                                                                                       Function(Join(a, [b]) if k > Count(a) else ReplaceAt(a, k, b), k),
                                                                                                                       Count(Filter(a, Function(t < b, t))) +
                                                                                                                       1,
                                                                                                                     ), a, b), [], v)),
                                                                      Map(
                                                                           Function(_x[j], j),
                                                                           Filter(
                                                                                   Range(1, Length(_x)),
                                                                                   Function(j > i &&
                                                                                            _x[j] > _x[i], j),
                                                                                 ),
                                                                         ),
                                                                    ), i), Range(1, Length(_x)))), 0)

Examples

Basic #

the one-line word 312312

live ↗
InRajchgotIndex(Permutation⁡([3,1,2]))\mathrm{RajchgotIndex}({\operatorname{Permutation}}([3, 1, 2]))Out22

the one-line word 312312, as a plain list

live ↗
InRajchgotIndex([3,1,2])\mathrm{RajchgotIndex}(\bigl\lbrack3, 1, 2\bigr\rbrack)Out22

the one-line word 24132413

live ↗
InRajchgotIndex(Permutation⁡([2,4,1,3]))\mathrm{RajchgotIndex}({\operatorname{Permutation}}([2, 4, 1, 3]))Out44
Properties #

FindStat's value for [1]

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

Known value · FindStat St001759

FindStat's value for [1,2]

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

Known value · FindStat St001759

FindStat's value for [2,1]

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

Known value · FindStat St001759

About
Examples6
CrosswalkFindStat