Combinatorica`
Combinatorica`

UnrankGrayCodeSubset

UnrankGrayCodeSubset[n,l]

gives the n^(th) subset of list l, listed in Gray code order.

Details and Options