Comprehensive Guide on Combinations
Start your free 7-days trial now!
Before we go through the mathematical definition of combinations, let's start with a motivating example.
Number of possible combinations of choosing people
Suppose we must choose a group of
Solution. Let's illustrate the scenario:

Here, we're referring to each person by their letter. One possible choice for the group is
How should we go about counting all possible combinations without double counting? Our plan of attack is to count all possible permutations first and then remove the double counts.
Recall from our guide on permutations that the total number of ways to select a group of
The problem is that this number includes double counts. Our goal now is to discard these double counts. The key is to think about how many times we are counting each group. For instance, consider the group
filter_none
Copy
ABC, ACB, BAC, BCA, CAB, CBA
We can use permutations once again to compute the number of arrangements, that is,
Let's generalize this technique of counting combinations. Let
If we plug in
Next, we remove double counts by dividing
Again, if we substitute
Definition and formula for combinations
Combination refers to the number of ways of selecting
The left side is read as "n choose r".
Difference between permutations and combinations
The main difference between permutations and combinations is that permutations are concerned with the ordering of the chosen elements whereas combinations are not.
For instance, the number of permutations of selecting two distinct letters from
On the other hand, the number of combinations for the same task is:
The formulas for permutations and combinations look similar, and in fact, combinations can be computed from permutations:
As we can see, computing combinations involves an additional step of removing double counts by dividing by the number of arrangements of any selection (
Let's now go through some examples of applying the formula for combinations!
Examples
Number of combinations drawing balls
Suppose we have
Solution. The number of combinations of choosing
Here, the ordering of the red balls does not matter. For instance, if we label the balls as
The number of combinations of choosing
The total possible number of combinations is their product, that is,
Number of diagonals of a hexagon (optional)
How many diagonals does a hexagon have?
Solution. Each vertex of a hexagon has

Since a hexagon has
However, this number is misleading because we are double counting the diagonals. For instance, the diagonals from vertex

Here, the diagonal
Even though this question does not use the combinations formula, the main idea is the same - we first compute the total number of permutations and then remove duplicates by division.