Skip to content

BalancedPrefixCount on BinaryWord ​

The nonempty prefixes with as many 0s as 1s.

On BinaryWord

The returns of the word, read as a lattice path, to the main diagonal.

Called as CombinatorialStat(x, "BalancedPrefixCount"). 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 St001355

Number of non-empty prefixes of a binary word that contain equally many 0's and 1's.

ObjectValue
00
10
000
011
101
110
0000
0010

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