LongestAlternatingFactor on BinaryWord
The length of the longest factor in which every two neighboring letters differ.
Called as CombinatorialStat(x, "LongestAlternatingFactor"). 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.
FindStat St000983
The length of the longest alternating subword.
| Object | Value |
|---|---|
0 | 1 |
1 | 1 |
00 | 1 |
01 | 2 |
10 | 2 |
11 | 1 |
000 | 1 |
001 | 2 |
Data from FindStat, the combinatorial statistic finder; the page at findstat.org/St000983 has the rest.