Skip to content

Ascents ​

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

Ascents(p)the ascent count of a one-line permutation pp
Typed signatures
TypePackageApplies
(binary_word | composition | list | permutation) -> integer | numbercombinatoricsalways

Domain: Permutation statistics

Details
  • Complementary to Descents: Ascents+Descents=n−1\mathrm{Ascents} + \mathrm{Descents} = n - 1
  • The identity is all-ascent, the reversal all-descent
  • 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),
                                     ))

on IntegerComposition, over _x

0 if Length(_x) < 2 else Count(Filter(
                                       Range(1, Length(_x) - 1),
                                       Function(_x[i] < _x[i + 1], i),
                                     ))

on BinaryWord, 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 1<21 < 2

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

the identity ascends throughout

live ↗
InAscents([1,2,3])\mathrm{Ascents}(\bigl\lbrack1, 2, 3\bigr\rbrack)Out22

the one-line word 312312

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

the one-line word 312312, as a plain list

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

the one-line word 24132413

live ↗
InAscents(Permutation⁡([2,4,1,3]))\mathrm{Ascents}({\operatorname{Permutation}}([2, 4, 1, 3]))Out22

the word 13321332

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

the arrangement 314314

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

FindStat's value for [1]

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

Known value · FindStat St000245

FindStat's value for [1,2]

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

Known value · FindStat St000245

FindStat's value for [2,1]

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

Known value · FindStat St000245

About
Examples10
CrosswalkWikipedia ×2MathWorld ×2WikidataEncyclopedia of MathematicsnLabBritannicaFindStat ×4

See also: Descents, SymmetricGroup