Skip to content

Descents ​

The number of descents of pp: positions ii with pi>pi+1p_i > p_{i+1}.

Descents(p)the descent count of a one-line permutation pp
SageMathenumeratio_stat("Permutation", p, "Descents")
Typed signatures
TypePackageApplies
(composition | list | permutation | signed_permutation | standard_tableau) -> integer | numbercombinatoricsalways

Domain: Permutation statistics

Details
  • The permutations of {1,…,n}\{1, \dots, n\} with kk descents are counted by the Eulerian number ⟨nk⟩\left\langle{n\atop k}\right\rangle
  • Complementary to Ascents: every adjacent pair is one or the other, so Descents+Ascents=n−1\mathrm{Descents} + \mathrm{Ascents} = n - 1
  • 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.

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] > _x[i + 1], i),
                                     ))

Examples

Basic #

only 3>13 > 1

live ↗
InDescents([3,1,2])\mathrm{Descents}(\bigl\lbrack3, 1, 2\bigr\rbrack)Out11

every step falls

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

the one-line word 312312

live ↗
InDescents(Permutation⁡([3,1,2]))\mathrm{Descents}({\operatorname{Permutation}}([3, 1, 2]))Out11

the one-line word 312312, as a plain list

live ↗
InDescents([3,1,2])\mathrm{Descents}(\bigl\lbrack3, 1, 2\bigr\rbrack)Out11

the one-line word 24132413

live ↗
InDescents(Permutation⁡([2,4,1,3]))\mathrm{Descents}({\operatorname{Permutation}}([2, 4, 1, 3]))Out11

the composition [2,1,3,1,1][2,1,3,1,1]

live ↗
InCombinatorialStat(IntegerComposition⁡([2,1,3,1,1]),Descents)\mathrm{CombinatorialStat}({\operatorname{IntegerComposition}}([2, 1, 3, 1, 1]), \text{Descents})Out22

the signed permutation 2ˉ 3 1ˉ\bar{2}\,3\,\bar{1}: 0>−20 > -2 and 3>−13 > -1

live ↗
InCombinatorialStat(SignedPermutation⁡([−2,3,−1]),Descents)\mathrm{CombinatorialStat}({\operatorname{SignedPermutation}}([-2, 3, -1]), \text{Descents})Out22

the standard tableau with rows 13∣2413 \mid 24: 22 is below 11, and 44 is below 33

live ↗
InCombinatorialStat(StandardTableau⁡([[1,3],[2,4]]),Descents)\mathrm{CombinatorialStat}({\operatorname{StandardTableau}}([[1, 3], [2, 4]]), \text{Descents})Out22

the word 13321332

live ↗
InCombinatorialStat(Word⁡([1,3,3,2]),Descents)\mathrm{CombinatorialStat}({\operatorname{Word}}([1, 3, 3, 2]), \text{Descents})Out11

the binary word 1010010100

live ↗
InCombinatorialStat(BinaryWord⁡([1,0,1,0,0]),Descents)\mathrm{CombinatorialStat}({\operatorname{BinaryWord}}([1, 0, 1, 0, 0]), \text{Descents})Out22

the arrangement 314314

live ↗
InCombinatorialStat(Arrangement⁡([3,1,4]),Descents)\mathrm{CombinatorialStat}({\operatorname{Arrangement}}([3, 1, 4]), \text{Descents})Out11

the parking function 211211

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

the surjection 21212121

live ↗
InCombinatorialStat(Surjection⁡([2,1,2,1]),Descents)\mathrm{CombinatorialStat}({\operatorname{Surjection}}([2, 1, 2, 1]), \text{Descents})Out22
Properties #

descents and ascents partition the n−1n - 1 steps

live ↗
InDescents([3,1,2])+Ascents([3,1,2])=2\mathrm{Descents}(\bigl\lbrack3, 1, 2\bigr\rbrack)+\mathrm{Ascents}(\bigl\lbrack3, 1, 2\bigr\rbrack)=2OutTrue\mathrm{True}

FindStat's value for [1]

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

Known value · FindStat St000021

FindStat's value for [1,2]

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

Known value · FindStat St000021

FindStat's value for [2,1]

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

Known value · FindStat St000021

About
Examples17
Checked againstSageMath 8 agree
CrosswalkWikipedia ×2MathWorldWikidataEncyclopedia of MathematicsnLabBritannicaFindStat ×5SageMath

Implementation

mappedsagepackages/oracle/src/mappings.ts

See also: Ascents, MajorIndex, SymmetricGroup