Combinatorica`
Combinatorica`

BinarySubsets

BinarySubsets[l]

gives all subsets of l ordered according to the binary string defining each subset. For any positive integer n, BinarySubsets[n] gives all subsets of {1,2,,n} ordered according to the binary string defining each subset.

Details and Options