Skip to content

HammingWeight on BinaryWord ​

The number of ones.

On BinaryWord

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

The number of ones in a binary word.

ObjectValue
00
11
000
011
101
112
0000
0011

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