Lesson 22 of 42 · Counting, probability and statistics
Permutations and combinations, with and without repetition
Ask two questions, does order matter and can choices repeat, and pick the right one of four counting formulas without a calculator.
About 22 minutes
In this lesson
- Decide whether a selection is ordered or unordered, and whether repetition is allowed.
- Count with the product rule, factorials, permutations and combinations, with or without repetition.
- Count the arrangements of letters or objects when some of them are identical.
The idea
Two rules underneath everything
Almost every counting question rests on two rules, both listed in the Bocconi syllabus.
- Product rule. If a task is done in stages, with ways for the first stage and ways for the second whatever happened in the first, the whole task can be done in ways. A menu with 4 starters and 5 main courses gives two-course meals.
- Sum rule. If a choice falls into separate cases that cannot happen together, add the counts of the cases. A meal that is either one of 4 starters or one of 5 mains (but not both) can be chosen in ways.
The word that signals each rule is worth hearing: "and then" means multiply; "or, one case or the other" means add.
Factorials
The number of ways to put different objects in a row is
by the product rule: choices for the first place, for the second, and so on. By convention . Learn the small values by heart, since there is no calculator on the test: , , , , .
The two questions
Before you write any formula, answer two questions about the selection of items from kinds.
- Does order matter? A president and a secretary are different jobs, so choosing Ada then Ben differs from Ben then Ada: order matters. A two-person committee is the same committee whichever name you say first: order does not matter.
- Can an item be chosen more than once? Digits in a code can repeat; people on a committee cannot.
The answers place you in one cell of this table.
| No repetition | Repetition allowed | |
|---|---|---|
| Order matters | ||
| Order does not matter |
Where the formulas come from
Ordered, no repetition (permutations of out of ): choices for the first place, for the second, down to for the -th. Multiply only those factors; you rarely need the factorial form. Choosing a winner, a runner-up and a third place among 8 finalists gives .
Ordered, with repetition: each of the places has all options, so . A three-letter code from the letters A to E, repeats allowed, can be written in ways.
Unordered, no repetition (combinations): count the ordered selections, then divide by the orders in which each group was counted. That is why . Two facts make the arithmetic short: (choosing who is in is the same as choosing who is out), and , .
Unordered, with repetition: picture the chosen items as stars and the borders between the kinds as bars. Every selection is one row of stars and bars, so the count is the number of ways to choose which of the places hold stars: . Buying 2 fruits from apples and pears gives : two apples, one of each, two pears.
Arrangements with identical objects
If some of the objects in a row are identical, swapping two identical ones creates no new arrangement. Divide by the factorial of each group of repeats:
The letters of NOON give arrangements, which you can list: NNOO, NONO, NOON, ONNO, ONON, OONN.
Checking without a calculator
Use a second route whenever you can. A combination should equal the matching permutation divided by ; an arrangement with repeats can be rebuilt by choosing positions group by group; a stars-and-bars answer can be checked on a tiny case you can list. If the two routes disagree, one of them has counted the same thing twice.
Worked examples
Example 1: Officers or a committee?
A student society has 9 members. (a) In how many ways can it elect a president, a secretary and a treasurer, three different people? (b) In how many ways can it choose a three-person organising committee?
(a) The three jobs differ, so order matters and nobody holds two jobs: ordered, no repetition.
Product rule: choices of president, then of secretary, then of treasurer: .
(b) A committee has no roles, so order does not matter. Each committee was counted times in part (a), once for each way of handing out the three jobs: .
Second route for (b): . The routes agree.
Answer
(a) 504 ways; (b) 84 ways. Giving 504 for the committee is the usual slip: it counts the same three people six times.
Example 2: Arranging letters with repeats
How many different strings can be made by arranging all the letters of the word BALLOON?
Count the letters: B, A, L, L, O, O, N is 7 letters, with L twice and O twice.
Treat them as different first: . Each string is counted times for the L's and times for the O's, so divide: .
Second route, placing letters group by group: choose 2 of the 7 positions for the L's, ; then 2 of the remaining 5 for the O's, ; then put B, A, N in the last 3 places in ways.
. The routes agree.
Answer
1260 strings. The tempting wrong answer is , which treats the two L's and the two O's as different letters.
Example 3: A selection with repetition
A bakery sells 4 kinds of pastry and has plenty of each. A customer buys a box of 6 pastries; only how many of each kind matters. How many different boxes are possible?
Order does not matter (it is a box) and a kind can be chosen many times: unordered, with repetition, kinds and items.
Stars and bars: 6 stars for the pastries and bars to split them into the four kinds, so 9 places in a row.
Choose which 3 places hold bars: . This is the same as , the formula's .
Check the method on a case you can list: 2 kinds and 3 pastries gives , and indeed the boxes are .
Answer
84 boxes. Answers of (ordered with repetition) or (a misplaced formula) come from skipping the two questions.
Common traps
Using permutations for a group with no roles
A team, a committee, a hand of cards or a set of chosen topics has no order. If you multiply for such a group, you count every group times. Ask "would swapping two chosen items give a different outcome?" If not, divide by .
Adding where you should multiply
Stages that happen one after another (a first digit and then a second) multiply. Only separate cases that cannot happen together add. " ways to fill three posts" is never right: each choice of president is followed by 8 choices of secretary.
Forgetting that letters or objects repeat
Before applying to an arrangement, scan for identical items. Two identical letters halve the count; three identical letters divide it by 6. Missing a repeat gives an answer that is too large by an exact factor, and a multiple-choice question may well offer that answer.
Applying when repetition is not allowed
assumes every place can take any of the options again. People, seats and prizes that go to different winners cannot repeat, so the count falls by one at each stage: .
Check yourself
Answer each question before you open its answer.
Question 1: Chair and deputy
Permutations and combinations
A board of 10 people must choose a chair and a deputy chair, who must be different people. In how many ways can this be done?
- A.19
- B.45
- C.90
- D.100
Show the answer
Answer: C. 90
Working
Order matters (two different roles) and nobody may hold both. There are 10 choices for the chair and then 9 for the deputy, so . Check: the 45 unordered pairs, each with 2 ways to assign the roles, give .
Why the other options are wrong
- A. Adds the 10 choices of chair and the 9 of deputy. The two choices happen one after the other, so they multiply.
- B. This is , the number of unordered pairs. Chair and deputy are different roles, so Ada as chair with Ben as deputy differs from the reverse.
- D. This is , which lets the same person be both chair and deputy.
What carries over
Different roles mean order matters: multiply the shrinking choices and do not divide.
Question 2: Arranging ROTOR
Permutations and combinations
How many different strings can be formed by arranging all five letters of the word ROTOR?
- A.10
- B.30
- C.60
- D.120
Show the answer
Answer: B. 30
Working
ROTOR has 5 letters: R twice, O twice, T once. The count is . Second route: place the R's in ways, the O's in ways, and T in the last place: .
Why the other options are wrong
- A. This is , the number of ways to place the two R's only. The O's and the T still have ways to fill the remaining places.
- C. Divides by only one , as if only one letter were repeated. Both R and O appear twice.
- D. This is , which treats the two R's and the two O's as different letters.
What carries over
Divide by the factorial of each group of identical letters, and check by placing the groups one at a time.
Question 3: Three scoops from five flavours
Permutations and combinations
An ice-cream shop offers 5 flavours. A cup holds 3 scoops, the order of the scoops does not matter, and a flavour may be chosen more than once. How many different cups are possible?
- A.10
- B.35
- C.60
- D.125
Show the answer
Answer: B. 35
Working
Unordered with repetition: flavours, scoops, so . Check by cases: three different flavours, ; two scoops of one flavour and one of another, ; all three the same, 5. Total .
Why the other options are wrong
- A. This is , which forbids choosing a flavour twice. The stem allows repeats.
- C. This is , which treats the scoops as ordered and forbids repeats: wrong on both counts.
- D. This is , which allows repeats but counts the order of the scoops, so strawberry then lemon is counted apart from lemon then strawberry.
What carries over
For an unordered selection with repeats, use stars and bars and check by splitting into cases.
Key points
Ask first: does order matter, and can a choice repeat? The answers pick the formula.
Ordered without repeats: ; with repeats: .
Unordered without repeats: ; with repeats: .
Identical objects in a row: , dividing by each group of repeats.
All questions here are original and written for UniExamer; none comes from the test maker.
Written by the UniExamer team with AI assistance. Every worked example and check question was re-solved by an independent checker before publication. No subject expert has reviewed this lesson yet. If you find a mistake, write to support@uniexamer.com.