HammingWeight on BinaryWord
The number of ones.
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.
| Object | Value |
|---|---|
0 | 0 |
1 | 1 |
00 | 0 |
01 | 1 |
10 | 1 |
11 | 2 |
000 | 0 |
001 | 1 |
Data from FindStat, the combinatorial statistic finder; the page at findstat.org/St000288 has the rest.