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

Notes on Lesson 24: Permutations, k-permutations and combinations (Maths 10 Ket noi tri thuc)

Lesson summary

A permutation of a set with nn elements is an ordered arrangement of those nn elements (with nn a natural number, n≥1n \ge 1).

A k-permutation of kk of nn is an ordered arrangement of kk elements from a set of nn elements (with kk, nn natural numbers, 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 số hoán vị, chỉnh hợp, tổ hợp; dùng máy tính cầm tay.
  • Vận dụng vào bài toán đếm thực tiễn.

The coach has 23 players and only reveals that the team will play a 3, 4, 3 formation. How many possibilities must the opponent consider to guess the line-up? This lesson helps you count arrangements and selections with three tools: permutation, k-permutation, combination; know when to use which tool and use a calculator to compute quickly.

Practise nowTextbook solutions for this lesson

Key ideas: what do you need to know?

Permutation

  • A permutation of a set with nn elements is an ordered arrangement of those nn elements (with nn a natural number, n≥1n \ge 1).
  • The number of permutations of a set with nn elements, denoted PnP_n, is given by the formula Pn=n⋅(n−1)⋅(n−2)⋯2⋅1.P_n = n \cdot (n - 1) \cdot (n - 2) \cdots 2 \cdot 1.
  • Note: The notation n⋅(n−1)⋅(n−2)⋯2⋅1n \cdot (n - 1) \cdot (n - 2) \cdots 2 \cdot 1 means n!n! (read as nn factorial), we have: Pn=n!P_n = n!. For example P3=3!=3⋅2⋅1=6P_3 = 3! = 3 \cdot 2 \cdot 1 = 6. By convention 0!=10! = 1.
  • Example: from the digits 6, 7, 8 and 9 we can form P4=4!=24P_4 = 4! = 24 four-digit numbers with different digits.

In plain words: A permutation is "arrange everything, in order". Seating 4 friends in 4 places: the first place has 4 choices, the second has 3 left, the third has 2 left, the last has 1 left; multiplying by the multiplication rule gives 4⋅3⋅2⋅14 \cdot 3 \cdot 2 \cdot 1. The formula n!n! is exactly the multiplication rule you learned last lesson, written compactly. Sign of a permutation: all elements are used, and swapping two elements gives a different result.

Phrase by phrase
permutation
An ordered arrangement of all nn elements of a set.Example: With {a;b;c}\{a; b; c\}, bcabca is a permutation.
n!n!
The product of the natural numbers from 1 to nn, read as nn factorial.Example: 5!=1205! = 120.
Convention 0!=10! = 1
A convention so that the formulas for k-permutations and combinations still hold when k=nk = n or k=0k = 0.Example: Cn0=n!n!⋅0!=1C_n^0 = \frac{n!}{n! \cdot 0!} = 1.

TipAnkA_n^k is the product of kk consecutive natural numbers in descending order from nn: A73=7⋅6⋅5A_7^3 = 7 \cdot 6 \cdot 5. Dividing further by k!k! gives CnkC_n^k.

k-permutation

  • A k-permutation of kk of nn is an ordered arrangement of kk elements from a set of nn elements (with kk, nn natural numbers, 1≤k≤n1 \le k \le n).
  • The number of k-permutations of kk of nn, denoted AnkA_n^k, is given by the formula Ank=n⋅(n−1)⋯(n−k+1) or Ank=n!(n−k)! (1≤k≤n).A_n^k = n \cdot (n - 1) \cdots (n - k + 1) \text{ or } A_n^k = \frac{n!}{(n - k)!} \ (1 \le k \le n).
  • Note:

+ A permutation arranges all elements of the set, while a k-permutation selects some elements and arranges them.
+ Each permutation of nn elements is also a k-permutation of nn of those nn elements. Therefore Pn=AnnP_n = A_n^n.

  • Example: choosing 4 out of 30 students in turn to plant four different trees gives A304=657 720A_{30}^4 = 657\,720 (ways).

In plain words: A k-permutation is "choose a part, then put it in order". Choosing a group leader and a deputy from 4 friends: 4 ways for the leader, 3 left for the deputy, so there are 4⋅3=12=A424 \cdot 3 = 12 = A_4^2 ways. The formula n(n−1)⋯(n−k+1)n(n - 1) \cdots (n - k + 1) has exactly kk factors, starting from nn and going in descending order; just count enough kk factors and you are done, no need to remember the fraction. Sign: the chosen positions differ in role (first, second, third; leader, deputy; first tree, second tree).

Phrase by phrase
k-permutation of kk of nn
A way to choose kk elements from nn elements and arrange them in order.Example: Choosing first, second, third among 12 horses is a k-permutation of 3 of 12.
AnkA_n^k
The number of k-permutations of kk of nn.Example: A52=5⋅4=20A_5^2 = 5 \cdot 4 = 20.
Pn=AnnP_n = A_n^n
Arranging all nn elements is a special case of a k-permutation with k=nk = n.Example: A44=4!=24A_4^4 = 4! = 24.

Combination

  • A k-combination of kk of nn is a way to choose kk elements from a set of nn elements (with kk, nn natural numbers, 0≤k≤n0 \le k \le n).
  • The number of k-combinations of kk of nn, denoted CnkC_n^k, is given by the formula Cnk=n!(n−k)! k! (0≤k≤n).C_n^k = \frac{n!}{(n - k)!\,k!} \ (0 \le k \le n).
  • Note:

+ Cnk=Ankk!C_n^k = \frac{A_n^k}{k!}.
+ k-permutations and combinations are alike in that both choose some elements from a set, but they differ in that a k-permutation chooses with order, while a combination chooses without order.

  • Example: choosing 4 out of 7 friends to play horse racing chess gives C74=7!4! 3!=35C_7^4 = \frac{7!}{4!\,3!} = 35 (ways).

In plain words: A combination is "just choose, no arranging". Choosing 2 friends to be in charge of the group from 4 friends: the pair (Tuan, Huong) and the pair (Huong, Tuan) are one, because the two friends have the same role. So each group of 2 friends is counted 2!2! times by k-permutations, and the number of combinations equals the number of k-permutations divided by 2!2!: 122=6\frac{12}{2} = 6. In general, each group of kk elements has k!k! arrangements, so Cnk=Ankk!C_n^k = \frac{A_n^k}{k!}. Sign of a combination: the chosen elements have the same role (one committee, one team, one set).

Phrase by phrase
k-combination of kk of nn
A way to choose kk elements from nn elements, without regard to order.Example: Choosing 3 friends for cleaning duty out of 12 friends.
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 arrangements of the kk chosen elements.Example: C42=122=6C_4^2 = \frac{12}{2} = 6.
choose without order
The feature that distinguishes a combination from a k-permutation.Example: Choosing 6 people for the management board, without assigning roles: use a combination.

Applications to counting problems

  • The concepts of permutation, k-permutation and combination are closely related and are the core concepts of counting. Many counting problems involve choosing and arranging, so the formulas for computing PnP_n, AnkA_n^k, CnkC_n^k will be used a lot.
  • How to choose the tool:

+ Use all nn elements and order matters: permutation PnP_n.
+ Choose kk out of nn elements and order matters (different roles): k-permutation AnkA_n^k.
+ Choose kk out of nn elements, order does not matter (same role): combination CnkC_n^k.

  • A problem with several successive stages combines them with the multiplication rule; a problem with several separate cases combines them with the addition rule.
  • Example: a line-up of 3 defenders (from 7), 4 midfielders (from 8), 3 forwards (from 5) when the goalkeeper is already known gives C73⋅C84⋅C53=35⋅70⋅10=24 500C_7^3 \cdot C_8^4 \cdot C_5^3 = 35 \cdot 70 \cdot 10 = 24\,500 (line-ups).

In plain words: Before pressing the formula, ask yourself two questions. First: do you use all the elements? Second: if you swap two chosen elements, is the result different? Using all of them with order mattering is a permutation; choosing a part with order mattering is a k-permutation; order not mattering is a combination. A big problem is often split into stages (choose defenders, then midfielders, then forwards) joined by the multiplication rule, or split into separate cases joined by the addition rule.

Phrase by phrase
multiplication rule
When a task has several successive stages, multiply the numbers of ways of the stages.Example: 35⋅70⋅1035 \cdot 70 \cdot 10 line-ups.
C73⋅C84⋅C53=35⋅70⋅10=24 500C_7^3 \cdot C_8^4 \cdot C_5^3 = 35 \cdot 70 \cdot 10 = 24\,500
Choose players line by line: each line is a combination because positions within the line are not distinguished.Example: C73=35C_7^3 = 35 ways to choose 3 defenders from 7.

Common mistakesUse k-permutation for a problem of choosing a group whose members have the same role (choosing 3 friends for cleaning duty, choosing a committee of 6 with no positions). When order does not matter, use combination.

Common mistakesUse combination when the positions have different roles (president, vice president; first, second, third). Then order matters, so you must use k-permutation.

Common mistakesThe problem "choose 2 girls and 3 boys" instead adds C42+C63C_4^2 + C_6^3. Two successive tasks (choosing girls then choosing boys) must be multiplied by the multiplication rule.

TipTwo questions for choosing the tool: are all the elements used? Does swapping two chosen elements give a different result? All and in order is permutation; some and in order is k-permutation; no order is combination.

Using the calculator

  • You can use the calculator to compute the numbers of permutations, k-permutations and combinations.
  • Permutation: to compute n!n!, press the number nn, press the SHIFT key x−1x^{-1}, then press the = key. For example: compute 9!9!, the result line shows 362 880.
  • K-permutation: to compute AnkA_n^k, press the number nn, press the SHIFT key ×\times, press the number kk, then press the = key. For example: compute A152A_{15}^2, the result line shows 210.
  • Combination: to compute CnkC_n^k, press the number nn, press the SHIFT key ÷\div, press the number kk, then press the = key. For example: compute C205C_{20}^5, the result line shows 15 504.

In plain words: The calculator helps you compute quickly and avoid mistakes with big numbers, but it does not choose the tool for you. The order of entry is always nn first, then the function key, then kk. After pressing, you should make a rough estimate to check yourself: CnkC_n^k is not greater than AnkA_n^k, and AnkA_n^k is not greater than n!n!. The keys shown here follow the model used in the book; (extension) other calculators may put the function on other keys (usually marked nPr for k-permutations, nCr for combinations).

Phrase by phrase
SHIFT ×\times
Key combination for computing the number of k-permutations (nPr function).Example: 15 SHIFT ×\times 2 = gives 210.
SHIFT ÷\div
Key combination for computing the number of combinations (nCr function).Example: 20 SHIFT ÷\div 5 = gives 15 504.

Worked examples

Example 1

How many ways are there to arrange 6 friends in a row of 6 seats? If An always sits in the leftmost seat, how many arrangements are there?

Show the solution to example 1

Step 1: Each arrangement of 6 friends in 6 seats is a permutation of the 6 friends, so there are P6=6!=720P_6 = 6! = 720 (ways).
Why: You use all 6 friends, and swapping two friends gives a different seating: exactly the sign of a permutation.
Step 2: If An is fixed in the first seat, there are only 5 friends left to arrange in the 5 remaining seats: P5=5!=120P_5 = 5! = 120 (ways).
Result: 720 ways; when An sits in the leftmost seat there are 120 ways.

Common mistakesWriting 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!(n−k)! k!C_n^k = \frac{n!}{(n - k)!\,k!}.

Example 2

Class 10A has 35 students. A class monitor, a vice monitor and a secretary need to be elected, and each student holds at most one position. How many ways are there to elect them?

Show the solution to example 2

Step 1: Each election is a choice of 3 out of the 35 students, placed into three different positions.
Why: An as class monitor and Binh as vice monitor is different from Binh as class monitor and An as vice monitor, so order matters.
Step 2: That is a k-permutation of 3 out of 35, the number of ways is A353=35⋅34⋅33A_{35}^3 = 35 \cdot 34 \cdot 33.
Step 3: 35⋅34=1 19035 \cdot 34 = 1\,190, 1 190⋅33=39 2701\,190 \cdot 33 = 39\,270.
Result: There are 39 27039\,270 ways to elect them.

Example 3

a) 3 out of the 12 students of a group need to be chosen for cleaning duty. How many ways are there to choose? b) On a plane there are 10 points, no three of which are collinear. How many triangles have three of those 10 points as vertices?

Show the solution to example 3

Step 1: a) The three students on cleaning duty have the same role, so each choice is a combination of 3 out of 12: C123=12!9! 3!=12⋅11⋅106=220C_{12}^3 = \frac{12!}{9!\,3!} = \frac{12 \cdot 11 \cdot 10}{6} = 220.
Step 2: b) Each triangle corresponds to a set of 3 points, regardless of the order in which the vertices are named.
Why: Triangle ABCABC and triangle BCABCA are one; since no three points are collinear, every set of 3 points forms a triangle.
Step 3: The number of triangles is C103=10⋅9⋅86=120C_{10}^3 = \frac{10 \cdot 9 \cdot 8}{6} = 120.
Result: a) 220 ways; b) 120 triangles.

Example 4

A football tournament has 10 teams. a) If they play a single round robin (any two teams meet exactly once), how many matches are there? b) How many ways are there to award gold, silver and bronze medals to three teams?

Show the solution to example 4

Step 1: a) Each match corresponds to a pair of teams; the pairs (A, B) and (B, A) are the same match. That is the combination of 2 out of 10: C102=10⋅92=45C_{10}^2 = \frac{10 \cdot 9}{2} = 45.
Step 2: b) Each possibility is choosing 3 teams and placing them in the gold, silver and bronze places.
Why: The three medals are different, so swapping two teams gives a different result, order matters.
Step 3: The number of possibilities is A103=10⋅9⋅8=720A_{10}^3 = 10 \cdot 9 \cdot 8 = 720.
Result: a) 45 matches; b) 720 possibilities.

Example 5

From the digits 0, 1, 2, 3, 4, 5, how many natural numbers with four different digits can be formed?

Show the solution to example 5

Step 1: Let the number to be formed be abcd‾\overline{abcd}. The digit aa must not be 0, so there are 5 ways to choose it.
Why: If you do not exclude the digit 0 in the thousands place, you also count "numbers" like 0123, which actually have only three digits.
Step 2: The three digits bb, cc, dd are chosen from the 5 remaining digits (including 0), different and in order: A53=5⋅4⋅3=60A_5^3 = 5 \cdot 4 \cdot 3 = 60 ways.
Step 3: By the multiplication rule: 5⋅60=3005 \cdot 60 = 300.
Result: 300 numbers can be formed.

Example 6

A group has 6 boys and 4 girls. You need to choose 5 of them to go to summer camp. How many ways are there to choose so that: a) there are exactly 2 girls; b) there is at least 1 girl?

Show the solution to example 6

Step 1: a) Stage 1: choose 2 girls from 4 girls, there are C42=6C_4^2 = 6 ways. Stage 2: choose 3 boys from 6 boys, there are C63=20C_6^3 = 20 ways.
Step 2: By the multiplication rule: 6⋅20=1206 \cdot 20 = 120 ways.
Step 3: b) The number of ways to choose any 5 of the 10 is C105=252C_{10}^5 = 252. The number of ways to choose 5 all boys is C65=6C_6^5 = 6.
Why: "At least 1 girl" covers many cases (1, 2, 3, 4 girls); counting the rest, "no girls", and subtracting is simpler.
Step 4: The number of ways with at least 1 girl is 252−6=246252 - 6 = 246.
Result: a) 120 ways; b) 246 ways.

Common mistakesForming a number with the digit 0 but forgetting the condition that the first digit is not 0, so you overcount sequences starting with 0.

Common mistakesThinking 0!=00! = 0. By the convention 0!=10! = 1, thanks to that Cn0=Cnn=1C_n^0 = C_n^n = 1.

TipAn "at least" problem is often computed quickly by taking all cases and subtracting the "none" case.

TipCnk=Cnn−kC_n^k = C_n^{n - k} (extension, follows directly from the formula): choosing kk people to go is also choosing n−kn - k people to stay, so C108=C102=45C_{10}^8 = C_{10}^2 = 45.

Example 7

Using a calculator, compute: a) 10!10!; b) A124A_{12}^4; c) C256C_{25}^6. Check the result of b) again with the formula.

Show the solution to example 7

Step 1: a) Press 10, SHIFT x−1x^{-1}, =: the calculator shows 3 628 800.
Step 2: b) Press 12, SHIFT ×\times, 4, =: the calculator shows 11 880.
Step 3: c) Press 25, SHIFT ÷\div, 6, =: the calculator shows 177 100.
Step 4: Check b): A124=12⋅11⋅10⋅9=132⋅90=11 880A_{12}^4 = 12 \cdot 11 \cdot 10 \cdot 9 = 132 \cdot 90 = 11\,880, it matches the calculator.
Why: Checking a result yourself with the formula helps you notice pressing the k-permutation key instead of the combination key by mistake.
Result: a) 10!=3 628 80010! = 3\,628\,800; b) A124=11 880A_{12}^4 = 11\,880; c) C256=177 100C_{25}^6 = 177\,100.

Terms

Permutation
An arrangement in order of all nn elements of a set; there are Pn=n!P_n = n! permutations.Example: P4=24P_4 = 24.
Factorial
n!=n⋅(n−1)⋯2⋅1n! = n \cdot (n - 1) \cdots 2 \cdot 1, convention 0!=10! = 1.Example: 4!=244! = 24.
k-permutation
An arrangement in order of kk elements chosen from nn elements; there are AnkA_n^k k-permutations.Example: A103=720A_{10}^3 = 720.
Combination
A choice of kk elements from nn elements, without ordering; there are CnkC_n^k combinations.Example: C74=35C_7^4 = 35.
Choose
The number of elements kk chosen in a k-permutation or combination.Example: The k-permutation of 2 out of 4.
Multiplication rule
When a task consists of successive stages, the number of ways equals the product of the numbers of ways of each stage.Example: C42⋅C63=120C_4^2 \cdot C_6^3 = 120.

Practise this lesson with instant marking and saved progress in the study app. Suggested plan: Class lessons plan, Maths 10.

Practice

Answer each question, then press Check. If you get stuck, open the hints under the question one step at a time.

Question 2 of 2Fill in the number · Applying

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

Có bao nhiêu số tự nhiên chia hết cho 5 mà mỗi số có bốn chữ số khác nhau?

Decimals can use a comma or a point. Write fractions as a/b, for example -5/3.

Asking the teacher while practising is for children who have a profile. It is free to turn on: Parent sign-in.

More practice questions for you

Additional exercises

  • Lập số có các chữ số khác nhau thỏa điều kiện chẵn, lẻ, chia hết (Applying)
  • Đếm số cách sắp xếp bằng hoán vị (Applying)
  • Chọn nhóm có điều kiện: đủ loại, ít nhất, nhiều nhất (Applying, Advanced applying)
  • Đếm bằng tổ hợp (Advanced applying)

Challenge yourself

  • Đếm bằng chỉnh hợp (Recall, Applying)
  • Đếm bằng tổ hợp (Recall, Understanding)
  • Lập số có các chữ số khác nhau thỏa điều kiện chẵn, lẻ, chia hết (Applying)
  • Đếm số cách sắp xếp bằng hoán vị (Applying)

Ask a parent to sign in and create your profile to unlock more. It's free. Sign in