MathDiscrete mathCombinatorics

Combinations

6 minutes read

Suppose that there are 1414 students in a class. 33 people are to be selected to form a leadership team. How many different 33-person teams can be formed?

The above question is an example of a general type of problem where the goal is to count the total number of kk-element subsets of an nn-element set. To solve such problems, we need to be introduced to the concept of combinations.

Combinations

A combination is a specific subset of a set. The order of selection of the elements does not matter for a combination. For example, combinations {1, 2, 3, 4}\text{\{1, 2, 3, 4}\} and {2, 1, 4, 3}\text{\{2, 1, 4, 3}\} are considered the same.

The total number of subsets of size kk that can be formed from a set of nn distinct elements is denoted (nk)n \choose k or CnkC_{n}^k. This is read as "nn choose kk". The formula is as follows.

(nk)=n!k!(nk)!{n \choose k} = {n! \over k! (n-k)!}

Let's revisit the problem from the introduction. How many different 33-person teams can be formed from a class of 1414 students? In other words, we need to find the number of 33-element subsets of a 1414-element set.
(143)=14!3!(143)!=364{14 \choose 3} = {14! \over 3! (14-3)!} = 364

Therefore, there are 364364 possible ways to select a team with 33 members from a class of 1414 students.

Relation between combinations and arrangements without repetition

The formula for (nk)n \choose k can be derived using permutations.

Making an ordered selection of size kk from a set of nn distinct elements can be thought of as selecting the first element, then the second, then the third, and so on until element kk. The number of ordered selections of kk elements from a set of nn elements is denoted PnkP_{n}^k and is equal to:Pnk=n(n1)(n2)...(nk+1)=n!(nk)!P_{n}^k = {n \cdot (n-1) \cdot (n-2) \cdot ... \cdot (n-k+1)} = {n! \over {(n-k)!}}For example, suppose we want to choose a President, Vice President, and Secretary from a class of 1414 students. In this case, order matters — we cannot simply choose an arbitrary team of three students. We can select a President first, then Vice President, and finally a Secretary. The number of possible ways to select such a team is:

141312=14!(143)!=218414 \cdot 13 \cdot 12 = {14! \over {(14-3)!}} = 2184In the case that order does not matter, we must take into account the k!k! orderings of the chosen elements. We can calculate the number of unordered selections using the Division rule. This gives the formula for (nk)n \choose k.

(nk)=Pnkk!=n!k!(nk)!{n \choose k} = {P_{n}^k \over k!} = {n! \over k! (n-k)!}

Properties of combinations

In this section, we'll look at some properties of combinations.

One property is:

(nn)=(n0)=1{n \choose n} = {n \choose 0} = 1This can be proven using the formula:

(nn)=n!n!(nn)!=1!1!0!=1{n \choose n} = {n! \over n! (n-n)!} = {1! \over 1! \cdot 0!} = 1(n0)=n!0!(n0)!=n!0!n!=1{n \choose 0} = {n! \over 0! (n-0)!} = {n! \over 0! \cdot n!} = 1To understand the intuition behind this property, consider the case of choosing a team from 1414 students. If we want to choose a team with 00 students, there is only one way to do this. If we want to choose a team with all 1414 students, there is also only one way to do this.

Another property is:

(nn1)=(n1)=n{n \choose n-1} = {n \choose 1} = nAgain, we can prove this using the formula.

(nn1)=n!(n1)!(n(n1))!=n!(n1)!1!=n{n \choose n-1} = {n! \over (n-1)! (n-(n-1))!} = {n! \over (n-1)! \cdot 1!} = n(n1)=n!1!(n1)!=n{n \choose 1} = {n! \over 1! (n-1)!} = nLet's consider once more the example of forming teams from 1414 students. There are 1414 ways to choose a team with only one person. Likewise, there are 1414 ways to choose a team with 1313 people; in other words, there are 1414 ways where one person is not chosen to be part of the team.

A further property is:

(nk)=(nnk){n \choose k} = {n \choose n-k}This is proven as follows.

LHS:(nk)=n!k!(nk)!LHS: {n \choose k} = {n! \over k! (n-k)!}RHS:(nnk)=n!(nk)!(n(nk))!=n!(nk)!k!RHS: {n \choose n-k} = {n! \over (n-k)! (n-(n-k))!} = {n! \over (n-k)!k!}LHS equals RHS, so the property is true.

Intuitively, when counting the number of possible kk-member teams from a set of nn people, we can either count the number of ways to form a team of kk students or we can count the number of ways nkn-k students will be left out. These will both result in the same number.

Conclusion

A combination is a selection of elements from a set disregarding the order of the selection. The total number of kk-element subsets from a set with nn elements is calculated as:

Cnk=(nk)=n!k!(nk)!=Pnkk!C_{n}^k = {n \choose k} = {n! \over k! (n-k)!} = {P_{n}^k \over k!}Some properties of combinations are the following

Cnn=Cn0=1C_{n}^n = C_{n}^0 = 1Cn1=Cnn1=nC_{n}^1 = C_{n}^{n-1} = nCnk=CnnkC_{n}^k = C_{n}^{n-k}

13 learners liked this piece of theory. 0 didn't like it. What about you?
Report a typo