Skip to content

LongestConstantRun on IntegerComposition ​

The length of the longest run of equal parts.

On IntegerComposition

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

Live

Distribution

Over IntegerCompositions at each size, tallied here in your browser; sizes past 6 are not offered.

Also on

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

FindStat St000899

The maximal number of repetitions of an integer composition.

ObjectValue
[1]1
[2]1
[3]1
[4]1
[5]1
[6]1
[7]1
[8]1

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