ironfern @ docs ~/math/grade-9/combinatorics/combinations $

Combinations

Consider two problems. In a class of 30 students, in how many ways can a class president and a vice president be chosen? In how many ways can two students on duty be selected from the same class?

The answer to the first problem is known: it is the number of 2-element ordered subsets of a 30-element set, i.e., A302A_{30}^2. To solve the second problem, we need to find the number of 2-element subsets (not ordered subsets) of a 30-element set. Each such subset is called a combination of 30 elements taken 2 at a time.

Definition

📐Definition — Combination

Any kk-element subset of a given nn-element set is called a combination of nn elements taken kk at a time.

The number of all possible combinations of nn elements taken kk at a time is denoted by CnkC_n^k, using the first letter of the French word combinaison.

Formula

Consider an nn-element set. The number of its kk-element subsets is CnkC_n^k. From each such subset, k!k! ordered kk-element subsets can be formed. Therefore, Ank=CnkPkA_n^k = C_n^k \cdot P_k, which gives:

Cnk=AnkPk.C_n^k = \frac{A_n^k}{P_k}.
Theorem — Formula for the Number of Combinations

For any natural numbers nn and kk such that knk \leqslant n:

Cnk=(nk)=n!(nk)!k!C_n^k = \binom{n}{k} = \frac{n!}{(n-k)!\, k!}

This formula remains valid for k=0k = 0 and n=0n = 0:

Cn0=n!n!0!=1,C00=0!0!0!=1.C_n^0 = \frac{n!}{n! \cdot 0!} = 1, \qquad C_0^0 = \frac{0!}{0! \cdot 0!} = 1.

Properties of Combinations

Theorem — Symmetry Property
Cnk=CnnkC_n^k = C_n^{n-k}

By choosing a kk-element subset AA from an nn-element set MM, we simultaneously define the complementary (nk)(n-k)-element subset MAM \setminus A. Therefore, the number of ways to choose a kk-element subset equals the number of ways to choose an (nk)(n-k)-element subset.

Example 1 — Sum of All Combinations

Statement. Prove that Cn0+Cn1+Cn2++Cnn=2nC_n^0 + C_n^1 + C_n^2 + \ldots + C_n^n = 2^n.

Solution. The left side of this equality is the total number of subsets of an nn-element set. As shown earlier, this number equals 2n2^n.

Pascal’s Identity

Theorem — Pascal's Identity
Cn+1k=Cnk1+CnkC_{n+1}^k = C_n^{k-1} + C_n^k

Proof. Consider an (n+1)(n+1)-element set. Fix a particular element aa in it. All kk-element subsets can be divided into two types: those containing element aa and those not containing it.

Subsets of the first type are formed by choosing k1k - 1 elements from the remaining nn elements (since element aa is already included). The number of such subsets is Cnk1C_n^{k-1}.

Subsets of the second type are formed by choosing kk elements from nn elements (excluding aa). Their number is CnkC_n^k.

Therefore, Cn+1k=Cnk1+CnkC_{n+1}^k = C_n^{k-1} + C_n^k.

This identity can also be proved using a geometric interpretation with shortest paths on a grid, where vertical and horizontal segments correspond to choosing kk vertical segments from m+km + k total segments.

Exercise — Combination Problems
  1. A class has 29 students. In how many ways can a team of 5 be formed for a math olympiad?

  2. Ten points are marked on a plane such that no three are collinear. How many triangles can be formed with vertices at these points?

  3. A chess club has 5 girls and 12 boys. In how many ways can a team of 2 girls and 5 boys be formed for a competition?