Skip to content

LongestAlternatingFactor on BinaryWord ​

The length of the longest factor in which every two neighboring letters differ.

On BinaryWord

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.

ObjectValue
01
11
001
012
102
111
0001
0012

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