Skip to content

Peaks on Permutation ​

Interior positions with p(i-1) < p(i) > p(i+1).

On Permutation

Called as CombinatorialStat(x, "Peaks"). The head's page has its examples.

Live

Also on

The same name on other carriers, each its own implementation: DyckPath.

FindStat St000023

The number of inner peaks of a permutation.

ObjectValue
[]0
[1]0
[1,2]0
[2,1]0
[1,2,3]0
[1,3,2]1
[2,1,3]0
[2,3,1]1

Data from FindStat, the combinatorial statistic finder; the page at findstat.org/St000023 has the rest.