Permutation and combination: formulas
Try questions on this topic ▶Factorial and arrangements in a row
n! = n × (n − 1) × (n − 2) × … × 2 × 1
Also: 0! = 1 · Number of ways to arrange n different objects in a row = n!
- n
- number of different objects
When all n different objects are arranged in a row.
Permutations (order matters)
ⁿPr = n!/(n − r)!
- n
- number of objects to choose from
- r
- number chosen and arranged
When you choose r from n and the order or position matters (first/second/third, president/secretary, digits).
Combinations (order does not matter)
ⁿCr = n!/((n − r)! r!)
Also: ⁿCr = ⁿCn−r · Choose from two groups: multiply, e.g. ⁵C2 × ⁴C2
- n
- number of objects to choose from
- r
- number chosen
When you choose r from n and the order does not matter (teams, committees, selections).
Circular arrangements
Number of ways to arrange n objects in a circle = (n − 1)!
- n
- number of different objects
When people or objects are seated round a circular table.
Arrangements with repeated objects
Number of arrangements = n! ÷ (p! × q! × …)
- n
- total number of objects
- p, q
- numbers of each kind of identical object
When some objects (such as letters of a word) are identical.
Handshakes or pairs
Number of handshakes = ⁿC2 = n(n − 1)/2
- n
- number of people
When each person shakes hands with (or plays) every other person once.