Functions > Statistics > Combinatorial Analysis > Example: Combinations and Permutations
  
Example: Combinations and Permutations
Use the combin and permut functions to count subsets of items. The order of the items is significant in permutations but not in combinations.
1. Set the number of items and the number of items in each subset:
Click to copy this expression
Click to copy this expression
2. Apply function combin to calculate the number of combinations:
Click to copy this expression
When dealing with four items, there are four ways to group one item at a time, six ways to group two items at a time, four ways to group three items at a time, and one way to group four items at a time.
3. Assume we have letters A, B, C, and D. List the four combinations of one letter per set:
Click to copy this expression
A, B, C, D
4. List the six combinations of two letters per set:
Click to copy this expression
AB, AC, AD, BC, BD, CD
Sets BA, CA, DA, CB, DB, DC contain the same letters as AB, AC, etc, and thus are not counted as different combinations.
5. Apply function permut to calculate the number of permutations:
Click to copy this expression
6. List the 12 permutations of two letters per set:
Click to copy this expression
AB, AC, AD, BC, BD, CD
BA, CA, DA, CB, DB, DC
Sets AB and BA are treated as different permutations of A and B.
7. List the 24 permutations of three letters per set:
Click to copy this expression
ABC, ACB, ABD, ADB, ACD, ADC
BAC, BCA, BAD, BDA, BCD, BDC
CAB, CBA, CAD, CDA, CBD, CDB
DAB, DBA, DBC, DCB, DAC, DCA