BorderLength on BinaryWord
The length of the longest proper prefix that is also a suffix; 0 for none.
FindStat's St000295.
Called as CombinatorialStat(x, "BorderLength"). 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 St000295
The length of the border of a binary word.
| Object | Value |
|---|---|
0 | 0 |
1 | 0 |
00 | 1 |
01 | 0 |
10 | 0 |
11 | 1 |
000 | 2 |
001 | 0 |
Data from FindStat, the combinatorial statistic finder; the page at findstat.org/St000295 has the rest.