LeadingOnesCount on BinaryWord
The number of ones before the first 0.
Called as CombinatorialStat(x, "LeadingOnesCount"). 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 St000297
The number of leading ones in a binary word.
| Object | Value |
|---|---|
0 | 0 |
1 | 1 |
00 | 0 |
01 | 0 |
10 | 1 |
11 | 2 |
000 | 0 |
001 | 0 |
Data from FindStat, the combinatorial statistic finder; the page at findstat.org/St000297 has the rest.