Skip to content
Gioi Toan
Start learning
A smiling die next to a coin

Notes on Lesson 3: Combinations (Maths 10 Canh Dieu, Chapter V)

Lesson summary

Let AA be a set of nn elements and let kk be an integer with 1≤k≤n1 \le k \le n.

The symbol CnkC_n^k denotes the number of combinations of kk of nn elements (with 1≤k≤n1 \le k \le n).

A combination is a way of choosing a subgroup, without caring about the order in which the elements of the group are arranged.

This content is not yet available in English. It is shown below in the original Vietnamese.

  • Tính số tổ hợp, dùng máy tính cầm tay tính số tổ hợp

A class has 40 students, and 5 of them need to be chosen for the class committee. If we only choose a group of 5 students without distinguishing who does what, how many ways are there to choose? This lesson helps you answer that question with the concept of combination, learn how to compute the number of combinations, and use a calculator to compute quickly when the numbers are large.

Practise similar problems

Key ideas: what do you need to know?

Definition of combination

  • Let AA be a set of nn elements and let kk be an integer with 1≤k≤n1 \le k \le n. Each subset of kk elements taken from the nn elements of AA is called a combination of kk of nn elements.
  • Example: Let A={a;b;c;d}A = \{a; b; c; d\}. The combinations of 2 of 4 elements are: {a;b}\{a; b\}, {a;c}\{a; c\}, {a;d}\{a; d\}, {b;c}\{b; c\}, {b;d}\{b; d\}, {c;d}\{c; d\}. There are 6 combinations in total.

In plain words: A combination is a way of choosing a subgroup, without caring about the order in which the elements of the group are arranged. For example, when choosing 2 friends from 4 friends to do a job together, choosing friend A first and then friend B, or the other way round, gives the same group, so it is counted only once. That is exactly the difference from a k-permutation (which has order).

Phrase by phrase
combination of kk of nn elements
A subset consisting of kk elements taken from nn given elements, without regard to order.Example: From 4 friends A, B, C, D, choose any 2 friends for cleaning duty: each pair such as {A, B} is a combination of 2 of 4.
subset
A set such that every element of it belongs to the given set.Example: {a;c}\{a; c\} is a subset of {a;b;c;d}\{a; b; c; d\}.

Common mistakesConfusing combinations with k-permutations: when choosing a group without regard to order (for example, choosing 3 friends for the class committee), you must use a combination CnkC_n^k. If you use a k-permutation AnkA_n^k, you will overcount because each group is counted k!k! times.

Number of combinations

  • The symbol CnkC_n^k denotes the number of combinations of kk of nn elements (with 1≤k≤n1 \le k \le n).
  • We have the formula: Cnk=Ankk!.C_n^k = \frac{A_n^k}{k!}.
  • In addition, we also have the formula: Cnk=n!k!(n−k)!(0≤k≤n).C_n^k = \frac{n!}{k!(n - k)!} \quad (0 \le k \le n).
  • Convention: 0!=10! = 1 and Cn0=1C_n^0 = 1.
  • Example: C52=5!2!⋅3!=1202⋅6=10C_5^2 = \frac{5!}{2! \cdot 3!} = \frac{120}{2 \cdot 6} = 10.

In plain words: The formula Cnk=Ankk!C_n^k = \frac{A_n^k}{k!} comes from this: each combination of kk produces k!k! k-permutations if we arrange those kk elements in order. Therefore, the number of combinations equals the number of k-permutations divided by k!k!. The second formula is just writing Ank=n!(n−k)!A_n^k = \frac{n!}{(n - k)!} and then substituting. When calculating, you can use whichever formula is convenient, but remember the condition on kk.

Phrase by phrase
CnkC_n^k
The number of combinations of kk of nn elements.Example: C63=20C_6^3 = 20.
Cnk=Ankk!C_n^k = \frac{A_n^k}{k!}
The formula relating combinations and k-permutations.Example: C42=A422!=122=6C_4^2 = \frac{A_4^2}{2!} = \frac{12}{2} = 6.
Cnk=n!k!(n−k)!C_n^k = \frac{n!}{k!(n - k)!}
The formula for computing the number of combinations directly from factorials.Example: C74=7!4!⋅3!=35C_7^4 = \frac{7!}{4! \cdot 3!} = 35.
Convention 0!=10! = 1
This convention keeps the formulas correct when k=0k = 0 or k=nk = n.Example: Cn0=n!0!⋅n!=1C_n^0 = \frac{n!}{0! \cdot n!} = 1.

Common mistakesMistake when computing a factorial: for example, when computing C52C_5^2, writing C52=5!2!⋅3!=1202⋅6=10C_5^2 = \frac{5!}{2! \cdot 3!} = \frac{120}{2 \cdot 6} = 10 is correct, but some students compute 5!2!⋅3!=1202=60\frac{5!}{2! \cdot 3!} = \frac{120}{2} = 60 because they forget to multiply by 3!3!. Be sure to compute the denominator correctly.

TipQuick formula for CnkC_n^k: Cnk=n(n−1)⋯(n−k+1)k!C_n^k = \frac{n(n - 1)\cdots(n - k + 1)}{k!}. The numerator is the product of kk consecutive natural numbers in descending order starting from nn, the denominator is k!k!. This helps with mental calculation when nn is large.

Properties of the numbers \(C_n^k\)

  • For 0≤k≤n0 \le k \le n, we have: Cnk=Cnn−k.C_n^k = C_n^{n - k}.
  • For 1≤k≤n−11 \le k \le n - 1, we have: Cn−1k−1+Cn−1k=Cnk.C_{n - 1}^{k - 1} + C_{n - 1}^k = C_n^k.
  • Example: C73=C74=35C_7^3 = C_7^4 = 35. Check: C62+C63=15+20=35=C73C_6^2 + C_6^3 = 15 + 20 = 35 = C_7^3.

In plain words: The first property says that choosing kk elements from nn elements is the same as choosing n−kn - k elements to leave out (or keep). The second property lets us compute CnkC_n^k from the two numbers Cn−1k−1C_{n-1}^{k-1} and Cn−1kC_{n-1}^k. These two properties help calculate quickly and check results.

Phrase by phrase
Cnk=Cnn−kC_n^k = C_n^{n - k}
Choosing kk elements is the same as choosing the remaining n−kn - k elements.Example: C108=C102=45C_{10}^8 = C_{10}^2 = 45.
Cn−1k−1+Cn−1k=CnkC_{n - 1}^{k - 1} + C_{n - 1}^k = C_n^k
The relation between consecutive combination numbers, used to compute CnkC_n^k from the numbers Cn−1k−1C_{n-1}^{k-1} and Cn−1kC_{n-1}^k.Example: C52+C53=10+10=20=C63C_5^2 + C_5^3 = 10 + 10 = 20 = C_6^3.

Common mistakesConfusing CnkC_n^k and Cnn−kC_n^{n - k}: The property Cnk=Cnn−kC_n^k = C_n^{n - k} helps you calculate quickly, but some students apply it wrongly, for example claiming that Cnk=Cn−kkC_n^k = C_{n - k}^k. Remember the formula correctly.

Using a calculator to compute the number of combinations

  • To compute CnkC_n^k, we can use a calculator.
  • On the calculator, the function key is usually labelled nCrnCr.
  • How to press: enter nn, press the nCrnCr key, enter kk, then press ==.
  • Example: Compute C205C_{20}^5. Press 20, nCrnCr, 5, ==. The screen shows 15504.
  • Note: Depending on the calculator model, the nCrnCr key may be in a different place, so look at the instructions on the calculator or find the key with the letters nCrnCr.

In plain words: The calculator helps compute combinations with large numbers quickly without doing many operations. However, you need to understand the formula to know when to use it and to check the result. If there is no nCrnCr key, you can still compute using the formula Cnk=n!k!(n−k)!C_n^k = \frac{n!}{k!(n - k)!} with the factorial function x!x! on the calculator.

Phrase by phrase
key nCrnCr
The function key for computing the number of combinations on a calculator.Example: Press 10 nCrnCr 3 == for the result 120.
key combination
How to press the keys to compute CnkC_n^k.Example: To compute C82C_8^2, press 8 nCrnCr 2 == to get 28.

Common mistakesForgetting the condition for kk: in the formula Cnk=n!k!(n−k)!C_n^k = \frac{n!}{k!(n - k)!}, we need 0≤k≤n0 \le k \le n. If k>nk > n, then there is no combination, and the formula cannot be used.

Worked examples

Example 1

Quan has 4 different-colored shirts: a yellow shirt, a blue shirt, a white shirt and a brown shirt. He wants to choose 2 shirts to wear on a trip. Write the combinations of 2 of the 4 shirts and say how many ways there are to choose.

Show the solution to example 1

Step 1: List the combinations of 2 of the 4 shirts. Each combination is a subset consisting of 2 shirts, without regard to order. Those combinations are: {yellow shirt; blue shirt}, {yellow shirt; white shirt}, {yellow shirt; brown shirt}, {blue shirt; white shirt}, {blue shirt; brown shirt}, {white shirt; brown shirt}.
Why: Because the order of choosing does not matter, the pair {yellow shirt; blue shirt} and {blue shirt; yellow shirt} count as only one.
Step 2: Count the combinations just listed, there are 6 combinations. We can also use the formula: C42=4!2!⋅2!=242⋅2=6C_4^2 = \frac{4!}{2! \cdot 2!} = \frac{24}{2 \cdot 2} = 6.
Result: There are 6 ways to choose 2 shirts from 4 shirts.

Example 2

Class 10A has 18 girls and 20 boys. a) How many ways are there to choose 3 girls from the 18 girls? b) How many ways are there to choose 5 boys from the 20 boys? c) How many ways are there to choose a shock team consisting of 3 girls and 5 boys?

Show the solution to example 2

Step 1: a) Each way of choosing 3 girls from 18 girls is a combination of 3 out of 18 elements (since the girls have the same role, order does not matter). So the number of ways is C183C_{18}^3. We calculate: C183=18!3!⋅15!=18⋅17⋅163⋅2⋅1=48966=816C_{18}^3 = \frac{18!}{3! \cdot 15!} = \frac{18 \cdot 17 \cdot 16}{3 \cdot 2 \cdot 1} = \frac{4896}{6} = 816.
Why: We use a combination because we only choose a group, without arranging in order.
Step 2: b) Similarly, each way of choosing 5 boys from 20 boys is a combination of 5 out of 20 elements. The number of ways is C205C_{20}^5. We calculate: C205=20!5!⋅15!=20⋅19⋅18⋅17⋅165⋅4⋅3⋅2⋅1=15504C_{20}^5 = \frac{20!}{5! \cdot 15!} = \frac{20 \cdot 19 \cdot 18 \cdot 17 \cdot 16}{5 \cdot 4 \cdot 3 \cdot 2 \cdot 1} = 15504.
Step 3: c) To choose a task force of 3 girls and 5 boys, we carry out two successive steps: choose 3 girls (C183C_{18}^3 ways), then choose 5 boys (C205C_{20}^5 ways). By the multiplication rule, the number of ways is C183⋅C205=816⋅15504=12651264C_{18}^3 \cdot C_{20}^5 = 816 \cdot 15504 = 12651264.
Why: Two successive steps, so we multiply; each step is a combination because order within the group does not matter.
Result: a) 816 ways; b) 15504 ways; c) 12651264 ways.

Common mistakesWhen a problem has several stages, students confuse the addition rule and the multiplication rule: if the stages are consecutive, multiply; if the cases are separate, add. For example, choosing 2 girls and 3 boys means multiplying C42⋅C63C_4^2 \cdot C_6^3, not adding.

TipTo tell a combination from a k-permutation: ask yourself "If I swap two chosen elements, does the result change?". If it does not change, it is a combination; if it changes, it is a k-permutation.

Example 3

Calculate: a) C73C_7^3; b) C92C_9^2; c) C108C_{10}^8. Check the result of c) again using the property Cnk=Cnn−kC_n^k = C_n^{n - k}.

Show the solution to example 3

Step 1: a) C73=7!3!⋅4!=7⋅6⋅53⋅2⋅1=35C_7^3 = \frac{7!}{3! \cdot 4!} = \frac{7 \cdot 6 \cdot 5}{3 \cdot 2 \cdot 1} = 35.
Step 2: b) C92=9!2!⋅7!=9⋅82=36C_9^2 = \frac{9!}{2! \cdot 7!} = \frac{9 \cdot 8}{2} = 36.
Step 3: c) C108=10!8!⋅2!=10⋅92=45C_{10}^8 = \frac{10!}{8! \cdot 2!} = \frac{10 \cdot 9}{2} = 45.
Why: Apply the formula Cnk=n!k!(n−k)!C_n^k = \frac{n!}{k!(n - k)!}.
Step 4: Check c) using the property: C108=C1010−8=C102=10⋅92=45C_{10}^8 = C_{10}^{10 - 8} = C_{10}^2 = \frac{10 \cdot 9}{2} = 45. The results match.
Result: a) 35; b) 36; c) 45.

Example 4

Use a calculator to compute: a) C125C_{12}^5; b) C157C_{15}^7. Then check the result of a) again using the formula.

Show the solution to example 4

Step 1: a) Press 12, the nCrnCr key, 5, the == sign. The screen shows 792.
Step 2: b) Press 15, the nCrnCr key, 7, the == sign. The screen shows 6435.
Step 3: Check a) using the formula: C125=12!5!⋅7!=12⋅11⋅10⋅9⋅85⋅4⋅3⋅2⋅1=792C_{12}^5 = \frac{12!}{5! \cdot 7!} = \frac{12 \cdot 11 \cdot 10 \cdot 9 \cdot 8}{5 \cdot 4 \cdot 3 \cdot 2 \cdot 1} = 792. It matches the result on the calculator.
Why: A calculator helps you compute quickly, but check again with the formula to be sure you did not press the wrong key.
Result: a) 792; b) 6435.

Example 5

A box has 10 spheres of the same size, of which 6 are red and 4 are blue. Take 3 spheres at random at the same time. a) How many ways are there to take them? b) How many ways are there to get 2 red spheres and 1 blue sphere? c) How many ways are there to get at least 1 blue sphere?

Show the solution to example 5

Step 1: a) Each way of taking 3 spheres from 10 spheres is a combination of 3 out of 10 elements (since they are taken at the same time, order does not matter). The number of ways is C103=10!3!⋅7!=10⋅9⋅86=120C_{10}^3 = \frac{10!}{3! \cdot 7!} = \frac{10 \cdot 9 \cdot 8}{6} = 120.
Step 2: b) To get 2 red spheres and 1 blue sphere, we choose 2 red spheres from the 6 red spheres (C62C_6^2 ways) and choose 1 blue sphere from the 4 blue spheres (C41C_4^1 ways). By the multiplication rule, the number of ways is C62⋅C41=15⋅4=60C_6^2 \cdot C_4^1 = 15 \cdot 4 = 60.
Why: Two successive steps: choose red, then choose blue.
Step 3: c) The number of ways to get at least 1 blue sphere equals the total number of ways to take any 3 spheres minus the number of ways to get 0 blue spheres (that is, taking 3 red spheres). The number of ways to take 3 red spheres from the 6 red spheres is C63=20C_6^3 = 20. So the number of ways to get at least 1 blue sphere is 120−20=100120 - 20 = 100.
Why: Counting by complement is simpler here, because "at least 1 blue" includes many cases (1 blue, 2 blue, 3 blue).
Result: a) 120 ways; b) 60 ways; c) 100 ways.

TipWhen you meet an "at least" problem, think right away of counting the complement: "at least one" is the complement of "none". Count the ways for the complement case, then subtract from the sum of all ways.

Example 6

A class has 30 students, of which 18 are boys and 12 are girls. We need to choose 4 students to take part in a contest. How many ways are there to choose so that among the 4 chosen students there is at least 1 girl?

Show the solution to example 6

Step 1: The total number of ways to choose any 4 students from 30 students is C304C_{30}^4. We calculate: C304=30!4!⋅26!=30⋅29⋅28⋅274⋅3⋅2⋅1=27405C_{30}^4 = \frac{30!}{4! \cdot 26!} = \frac{30 \cdot 29 \cdot 28 \cdot 27}{4 \cdot 3 \cdot 2 \cdot 1} = 27405.
Step 2: The number of ways to choose 4 boys only (no girls) is C184C_{18}^4. We calculate: C184=18!4!⋅14!=18⋅17⋅16⋅1524=3060C_{18}^4 = \frac{18!}{4! \cdot 14!} = \frac{18 \cdot 17 \cdot 16 \cdot 15}{24} = 3060.
Step 3: The number of ways to choose with at least 1 girl equals the total number of ways minus the number of ways to choose all boys: 27405−3060=2434527405 - 3060 = 24345.
Why: "At least 1 girl" is the complement of "no girls at all" (all boys), so subtraction is faster than adding the cases of 1 girl, 2 girls, 3 girls, 4 girls.
Result: There are 24345 ways to choose.

Terms

Combination
The way to choose a group of kk elements from nn elements without caring about order.Example: Choosing 3 students from 10 students to form a class committee is a combination of 3 out of 10.
Combination of kk out of nn
A subset of kk elements taken from nn elements.Example: From the set {1;2;3;4}\{1; 2; 3; 4\}, the set {1;3}\{1; 3\} is a combination of 2.
CnkC_n^k
Notation for the number of combinations of kk out of nn elements.Example: C52=10C_5^2 = 10.
Factorial
The product of the natural numbers from 1 to nn, written n!n!.Example: 4!=244! = 24.
Convention 0!=10! = 1
The convention that makes the combination formula correct when k=0k = 0 or k=nk = n.Example: Cn0=1C_n^0 = 1.
k-permutation
The way to choose kk elements from nn elements and arrange them in order.Example: A52=20A_5^2 = 20.
Property Cnk=Cnn−kC_n^k = C_n^{n - k}
Choosing kk elements is the same as choosing the remaining n−kn - k elements.Example: C86=C82=28C_8^6 = C_8^2 = 28.