Tag Info

New answers tagged

1

Here's a way than works for any number of variables: numbering = 2^(Length[#] - 1) (2 - FromDigits[#, 1/2]) &; tablesubset = Reverse /@ Reverse@Tuples[{0, 1}, {3}][[All, {1, 3}]]; (* {A, C} *) Grid@Join[#, List /@ numbering /@ #, 2] &@ tablesubset (If all you want is a numbering, then just FromDigits[#, 2] & seems quite easy, as well as ...



Top 50 recent answers are included