Skip to content

LongestConstantRun on BinaryWord ​

The length of the longest run of equal letters.

On BinaryWord

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

Live

Distribution

Over BinaryWords 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: IntegerComposition.

FindStat St000982

The length of the longest constant subword.

ObjectValue
01
11
002
011
101
112
0003
0012

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