Subsets
[list]Subsets
[list, n]Subsets
[list, {n}]Subsets
[list, {min, max}]Subsets
[list, spec, n]Subsets
[list, spec, {n}]All possible subsets (power set):
Subsets[{a, b, c}]
All possible subsets containing up to 2 elements:
Subsets[{a, b, c, d}, 2]
Subsets containing exactly 2 elements:
Subsets[{a, b, c, d}, {2}]
The first 5 subsets containing 3 elements:
Subsets[{a, b, c, d, e}, {3}, 5]
All subsets with even length:
Subsets[{a, b, c, d}, {0, 4, 2}]
The 25th subset:
Subsets[Range[5], All, {25}]
The odd-numbered subsets of {a,b,c,d} in reverse order:
Subsets[{a, b, c, d}, All, {15, 1, -2}]