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

Notes on Lesson 2: Permutation, k-permutation and combination (Maths 10 Chan troi sang tao, Chapter VIII)

Lesson summary

Each way of arranging the nn elements of AA in some order is called a permutation of those elements (short for a permutation of AA or of nn elements).

Let set AA have nn elements (n≥1n \ge 1) and let kk be an integer with 1≤k≤n1 \le k \le n.

A permutation is "arrange everything, in order".

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

  • Tính được số hoán vị, chỉnh hợp, tổ hợp
  • Tính được bằng máy tính cầm tay

In a football tournament with 10 teams, the organizers need to arrange a single round-robin schedule. How many matches are there in total? Or more simply, from 5 friends in a group, how many ways are there to choose 3 to be on cleaning duty? Such counting problems appear very often in real life and in mathematics. Today's lesson gives you three basic counting tools: permutations, k-permutations and combinations, helping you quickly solve arrangement and selection problems. You will also learn how to use a calculator to compute these numbers when they get too large.

Practise similar problems

Key ideas: what do you need to know?

Permutations

  • Let set AA have nn elements (n≥1n \ge 1). Each way of arranging the nn elements of AA in some order is called a permutation of those elements (short for a permutation of AA or of nn elements).
  • The number of permutations of nn elements, denoted PnP_n, is given by the formula:

Pn=n(n−1)(n−2)⋯2⋅1P_n = n(n - 1)(n - 2) \cdots 2 \cdot 1.

  • We introduce the notation n!=n(n−1)(n−2)⋯2⋅1n! = n(n - 1)(n - 2) \cdots 2 \cdot 1, read as nn factorial or the factorial of nn. Then Pn=n!P_n = n!.
  • Convention: 0!=10! = 1.
  • Example: There are 3 friends An, Binh, Chau standing in a line. Each arrangement is a permutation of the 3 friends. The number of arrangements is P3=3!=6P_3 = 3! = 6 ways.

In plain words: A permutation is "arrange everything, in order". When you place nn objects into nn positions, the first position has nn choices, the second position has n−1n - 1 choices left, and so on until the last position has 1 choice. By the multiplication rule, the number of arrangements is the product n(n−1)⋯1n(n - 1) \cdots 1, which is n!n!. Criterion for a permutation: all elements are used and the order matters (swapping two elements gives a different result).

Phrase by phrase
permutation
An ordered arrangement of all nn elements of a set.Example: For the set {a;b;c}\{a; b; c\}, the arrangement bcabca is a permutation.
n!n!
The product of the natural numbers from 1 to nn, read as nn factorial.Example: 4!=4⋅3⋅2⋅1=244! = 4 \cdot 3 \cdot 2 \cdot 1 = 24.
Convention 0!=10! = 1
This convention makes the combination formula correct when k=0k = 0 or k=nk = n, and helps Pn=AnnP_n = A_n^n.Example: Cn0=n!0!⋅n!=1C_n^0 = \frac{n!}{0! \cdot n!} = 1.

k-permutations

  • Let set AA have nn elements (n≥1n \ge 1) and let kk be an integer with 1≤k≤n1 \le k \le n. Each way of taking kk elements of AA and arranging them in some order is called a k-permutation of kk of the nn elements.
  • The number of k-permutations of kk of nn elements, denoted AnkA_n^k, is given by the formula:

Ank=n!(n−k)!=n(n−1)⋯(n−k+1)A_n^k = \frac{n!}{(n - k)!} = n(n - 1) \cdots (n - k + 1).

  • Remark: Each permutation of nn elements is also a k-permutation of nn of those nn elements. We have Pn=AnnP_n = A_n^n with n≥1n \ge 1.
  • Example: From 5 friends in a group, choose 3 to be class monitor, vice monitor and secretary. Each choice is a k-permutation of 3 of 5. The number of ways is A53=5⋅4⋅3=60A_5^3 = 5 \cdot 4 \cdot 3 = 60 ways.

In plain words: A k-permutation is "choose a part, then arrange in order". Unlike a permutation (which uses all nn elements), a k-permutation chooses only kk of the nn elements but cares about order. The formula AnkA_n^k is the product of kk consecutive natural numbers in descending order starting from nn. Criterion: the chosen positions have different roles (like class monitor, vice monitor, secretary), so swapping two elements gives a different result.

Phrase by phrase
k-permutation of kk of nn
A way of choosing kk elements from nn elements and arranging them in order.Example: Choosing 2 friends from 4 to be group leader and deputy leader is a k-permutation of 2 of 4.
AnkA_n^k
The number of k-permutations of kk of nn elements.Example: A62=6⋅5=30A_6^2 = 6 \cdot 5 = 30.
Pn=AnnP_n = A_n^n
A permutation of nn elements is a special case of a k-permutation when k=nk = n.Example: A44=4!=24A_4^4 = 4! = 24.

Common mistakesForming numbers with the digit 0 but forgetting the condition that the first digit is not 0, which leads to overcounting sequences that start with 0.

TipAnkA_n^k is the product of kk consecutive natural numbers in descending order starting from nn. Dividing further by k!k! gives CnkC_n^k.

Combinations

  • Let set AA have nn elements (n≥1n \ge 1). Each subset of kk elements (1≤k≤n1 \le k \le n) of AA is called a combination of kk of the nn elements.
  • The number of combinations of kk of nn elements, denoted CnkC_n^k, is given by the formula:

Cnk=n!k!(n−k)!C_n^k = \frac{n!}{k!(n - k)!} with 0≤k≤n0 \le k \le n.

  • Note: By convention Cn0=1C_n^0 = 1.
  • Remark: We have the relation Cnk=Ankk!C_n^k = \frac{A_n^k}{k!}.
  • Example: A group has 5 friends, and 3 need to be chosen for cleaning duty (roles not distinguished). Each choice is a combination of 3 of 5. The number of ways is C53=5!3!2!=10C_5^3 = \frac{5!}{3!2!} = 10 ways.

In plain words: A combination is "choose only, do not arrange". When choosing a group where the elements in the group have equal roles, order does not matter, we use a combination. Since each group of kk elements has k!k! arrangements, the number of combinations equals the number of k-permutations divided by k!k!: Cnk=Ankk!C_n^k = \frac{A_n^k}{k!}. Clue: the chosen elements do not have distinct roles (they do the same task, join the same team).

Phrase by phrase
combination of kk from nn
A way to choose kk elements from nn elements, without caring about order.Example: Choosing 3 friends from 7 friends to do cleaning is a combination of 3 from 7.
Cnk=Ankk!C_n^k = \frac{A_n^k}{k!}
The number of combinations equals the number of k-permutations divided by the number of ways to arrange the kk chosen elements.Example: C52=A522!=202=10C_5^2 = \frac{A_5^2}{2!} = \frac{20}{2} = 10.
Convention Cn0=1C_n^0 = 1
The number of ways to choose 0 elements from nn elements is 1 (choosing the empty set).Example: C100=1C_{10}^0 = 1.

Common mistakesUse k-permutations for problems of choosing a group whose members have equal roles (for example, choosing 3 friends for cleaning duty). When order does not matter, you must use combinations.

Calculate the number of permutations, k-permutations, combinations with a calculator

  • With some calculators, we can quickly calculate the number of permutations, k-permutations and combinations.
  • Permutation: To calculate n!n!, press the number nn, press the key SHIFT\text{SHIFT} x−1x^{-1}, then press the key ==.
  • k-permutation: To calculate AnkA_n^k, press the number nn, press the key SHIFT\text{SHIFT} ×\times, press the number kk, then press the key ==.
  • Combination: To calculate CnkC_n^k, press the number nn, press the key SHIFT\text{SHIFT} ÷\div, press the number kk, then press the key ==.
  • Example: Calculate 8!8!: press 8, SHIFT\text{SHIFT} x−1x^{-1}, == gives 40320. Calculate A125A_{12}^5: press 12, SHIFT\text{SHIFT} ×\times, 5, == gives 95040. Calculate C2011C_{20}^{11}: press 20, SHIFT\text{SHIFT} ÷\div, 11, == gives 167960.

In plain words: A calculator helps you quickly compute large numbers without worrying about mistakes. However, you need to remember the key order: always enter nn first, then the function key, then kk. The result shown is the corresponding number of permutations, k-permutations or combinations. You should estimate the result to check: CnkC_n^k is always less than or equal to AnkA_n^k, and AnkA_n^k is less than or equal to n!n!.

Phrase by phrase
SHIFT\text{SHIFT} x−1x^{-1}
Key combination to calculate the factorial n!n! (permutation).Example: Press 5 SHIFT\text{SHIFT} x−1x^{-1} == gives 120.
SHIFT\text{SHIFT} ×\times
Key combination to calculate the number of k-permutations AnkA_n^k.Example: Press 10 SHIFT\text{SHIFT} ×\times 3 == gives 720.
SHIFT\text{SHIFT} ÷\div
Key combination to calculate the number of combinations CnkC_n^k.Example: Press 8 SHIFT\text{SHIFT} ÷\div 2 == gives 28.

Worked examples

Example 1

There are 5 students arranged to sit in a row of 5 chairs. How many ways are there to arrange seats for the 5 students?

Show the solution to example 1

Step 1: Each way of arranging 5 students in 5 chairs is a permutation of 5 elements.
Why: All 5 students are used and the seating order matters (swapping two students gives a different arrangement).
Step 2: The number of arrangements is P5=5!=5⋅4⋅3⋅2⋅1=120P_5 = 5! = 5 \cdot 4 \cdot 3 \cdot 2 \cdot 1 = 120.
Result: There are 120 arrangements.

TipBefore choosing a formula, ask yourself: are all the elements used? Does swapping two chosen elements create a different result? If all are used and order matters, use permutations; if only some are chosen and order matters, use k-permutations; if order does not matter, use combinations.

Example 2

From the 7 digits 1, 2, 3, 4, 5, 6, 7, how many natural numbers with 3 digits that are pairwise different can be formed?

Show the solution to example 2

Step 1: Each number with 3 different digits is formed by choosing 3 digits from the 7 digits and arranging them in order.
Why: The chosen digits have different roles (hundreds place, tens place, ones place), so order matters, we use k-permutations.
Step 2: The number of numbers formed is A73=7⋅6⋅5=210A_7^3 = 7 \cdot 6 \cdot 5 = 210.
Result: 210 numbers can be formed.

Common mistakesWriting the formula wrong: Ank=n!k!A_n^k = \frac{n!}{k!} or Cnk=n!k!C_n^k = \frac{n!}{k!}. The correct ones are Ank=n!(n−k)!A_n^k = \frac{n!}{(n - k)!} and Cnk=n!k!(n−k)!C_n^k = \frac{n!}{k!(n - k)!}.

Example 3

A group has 6 boys and 4 girls. We need to choose 3 students to do cleaning duty. How many ways are there to choose if: a) Choose any 3 students; b) Choose 3 students including 2 boys and 1 girl.

Show the solution to example 3

Step 1: a) Choose 3 students from 10 students, without distinguishing roles, so each choice is a combination of 3 from 10.
Why: The three students on duty have equal roles, order does not matter.
Step 2: The number of ways to choose is C103=10!3!7!=10⋅9⋅83⋅2⋅1=120C_{10}^3 = \frac{10!}{3!7!} = \frac{10 \cdot 9 \cdot 8}{3 \cdot 2 \cdot 1} = 120.
Step 3: b) Choosing 2 boys from 6 boys has C62=15C_6^2 = 15 ways. Choosing 1 girl from 4 girls has C41=4C_4^1 = 4 ways.
Why: Two consecutive stages (choose boys then choose girls), so use the multiplication rule.
Step 4: The number of ways to choose 2 boys and 1 girl is 15⋅4=6015 \cdot 4 = 60.
Result: a) 120 ways; b) 60 ways.

Common mistakesThe problem "choose 2 girls and 3 boys" instead adds C42+C63C_4^2 + C_6^3. Two consecutive stages must be multiplied according to the multiplication rule.

Example 4

A group has 5 boys and 3 girls. We need to choose 4 students to attend a congress. How many ways are there to choose so that there is at least one girl?

Show the solution to example 4

Step 1: The total number of ways to choose 4 students from 8 students is C84=70C_8^4 = 70.
Step 2: The number of ways to choose 4 boys only (no girls) is C54=5C_5^4 = 5.
Why: The case "at least one girl" includes many possibilities (1 girl, 2 girls, 3 girls), while the case "no girls" is easier to count.
Step 3: The number of ways to choose with at least one girl is 70−5=6570 - 5 = 65.
Result: There are 65 ways to choose.

Tip"At least" problems are often solved quickly by taking the sum of all ways and subtracting the number of ways of the "none" case.

Example 5

A class has 40 students. We need to elect a class monitor, a vice monitor and a secretary. How many ways are there to elect? Given that each student holds at most one position.

Show the solution to example 5

Step 1: Each election is choosing 3 students from 40 students and assigning them to 3 different positions.
Why: The positions have different roles, so order matters, we use k-permutations.
Step 2: The number of ways to elect is A403=40⋅39⋅38A_{40}^3 = 40 \cdot 39 \cdot 38.
Step 3: Calculate 40⋅39=156040 \cdot 39 = 1560, then 1560⋅38=592801560 \cdot 38 = 59280.
Result: There are 59280 ways to elect.

Common mistakesUse combinations when the positions have different roles (class monitor, vice monitor, secretary). Then order matters, so you must use k-permutations.

Example 6

A box has 10 spheres numbered from 1 to 10. Take out 3 spheres at the same time. How many ways are there to take? If taking 3 spheres one after another without replacement (that is, choose 3 spheres then arrange them in order), how many ways are there?

Show the solution to example 6

Step 1: Take 3 fruits from 10 fruits at the same time, without caring about order, each way is a combination of 3 out of 10.
Why: Taking at the same time means there is no before or after order.
Step 2: The number of unordered selections is C103=120C_{10}^3 = 120.
Step 3: Take 3 fruits one after another without replacement, that is, choose 3 fruits and then arrange them in order, each way is a k-permutation of 3 out of 10.
Why: There is order and the fruits already taken are not repeated.
Step 4: The number of ordered selections without replacement is A103=10⋅9⋅8=720A_{10}^3 = 10 \cdot 9 \cdot 8 = 720.
Result: Unordered selection: 120 ways; ordered selection without replacement: 720 ways.

Terms

Permutations
An ordered arrangement of all nn elements of a set; the number of permutations is Pn=n!P_n = n!.Example: Arranging 4 friends in 4 seats has 4!=244! = 24 ways.
Factorial
n!=n(n−1)⋯2⋅1n! = n(n - 1) \cdots 2 \cdot 1, by convention 0!=10! = 1.Example: 5!=1205! = 120.
k-permutations
A way of choosing kk elements from nn elements and arranging them in order; the number of k-permutations is Ank=n!(n−k)!A_n^k = \frac{n!}{(n - k)!}.Example: Choosing 3 friends from 10 friends to be class monitor, vice monitor, and secretary has A103=720A_{10}^3 = 720 ways.
Combinations
A way of choosing kk elements from nn elements, without caring about order; the number of combinations is Cnk=n!k!(n−k)!C_n^k = \frac{n!}{k!(n - k)!}.Example: Choosing 3 friends from 10 friends for labour duty has C103=120C_{10}^3 = 120 ways.
Choose
The number of elements kk chosen in a k-permutation or combination.Example: The k-permutation of 2 out of 5 elements.
Multiplication rule
If a job consists of several consecutive stages, the number of ways to do it equals the product of the numbers of ways of each stage.Example: Choosing 2 girls from 4 friends and 3 boys from 6 friends has C42⋅C63C_4^2 \cdot C_6^3 ways.