【排列與組合 Permutation and Combination:nPr、nCr、n!、聯集、交集】Permutation and Combination: nPr, nCr, n!, Union and Intersection
SketchMath 數學團隊 SketchMath Maths Team | 更新 Updated 2026-10-20
Permutation and Combination 排列與組合係數學 DSE 嘅必修課題,技巧包括認識排列 nPr、組合 nCr,以及 ∪ 聯集 Union、∩ 交集 Intersection 等。SketchMath 介紹所有公式定理及應用,並附上相關題目示範!Use the multiplication principle when events happen together (m × n) and the addition principle for exclusive choices (m + n). A permutationnPr counts ordered selections, a combinationnCr counts selections where order does not matter: nPr = n!/(n − r)!, nCr = n!/[r!(n − r)!].
The multiplication principle counts independent events. If event A can happen in m ways and event B in n ways, then A and B together can happen in m × n ways.
Example: a shirt comes in 3 colours (red, blue, green) and 2 sizes (small, medium). The number of possible shirts is 3 × 2 = 6.
舉例:假設你要從一個城市前往另一個城市,有兩條可行的路徑,分別是路線 A 和路線 B。路線 A 有 3 個分岔路口,路線 B 有 4 個分岔路口。根據加法原則,總共有 3 + 4 = 7 條路徑。
The addition principle says that for two mutually exclusive events, the total number of ways is the sum of their separate numbers of ways.
Example: to travel from one city to another there are two routes, A and B. Route A has 3 branches to choose and route B has 4. By the addition principle there are 3 + 4 = 7 possible paths.
The factorial, written n! where n is a non-negative integer, is the product of all the positive integers from 1 to n: n! = n × (n − 1) × (n − 2) × … × 2 × 1. For example 0! = 1 (zero factorial is defined as 1), 1! = 1, 2! = 2, 3! = 6, 4! = 24.
排列指的是從一組物件中按照一定順序選取若干個物件的方式。如果有 n 個物件,其中 r 個物件按照一定順序選取,則排列的數量用 nPr = n!/(n − r)! 表示。
例子:假設你有三本書 A、B、C,要從中選擇兩本書按照順序排列。排列的方式有:AB、AC、BA、BC、CA、CB。這裡的 n = 3,r = 2,所以排列的數量為 3P2 = 6。
A permutation is a way of choosing some objects from a group in a certain order. If there are n objects and r of them are chosen in order, the number of permutations is written nPr = n!/(n − r)!.
Example: from three books A, B, C, pick two in order. The arrangements are AB, AC, BA, BC, CA, CB. Here n = 3, r = 2, so 3P2 = 6.
A combination is a way of choosing some objects from a group without regard to order. If n objects are available and r are chosen, the number of combinations is written nCr = n!/[r!(n − r)!].
Example: from an apple, an orange and a banana, choose two fruits, in no particular order. The choices are {apple, orange}, {apple, banana}, {orange, banana}, so 3C2 = 3.