LongestConstantRun on BinaryWord
The length of the longest run of equal letters.
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.
| Object | Value |
|---|---|
0 | 1 |
1 | 1 |
00 | 2 |
01 | 1 |
10 | 1 |
11 | 2 |
000 | 3 |
001 | 2 |
Data from FindStat, the combinatorial statistic finder; the page at findstat.org/St000982 has the rest.