Arranging in a line: factorials and repeats
Lining up seven different things is a chain of choices: 7 for the first place, 6 for the next, down to 1. That product is the factorial 7!. Repeated letters, as in a, a, b, b, c, c, c, cut the count down.
1Fill seven places: multiply the choices
In how many orders can the seven tokens A–G stand in a line?
- Place 1 has 7 choices, place 2 has 6, and so on
- Write the product as a factorial
- Answer5040 orders
2Repeated letters: divide out the copies
How many different strings can be made from a, a, b, b, c, c, c?
- Pretend every copy is different7!=5040
- Each string appears once for every order of its copies2! × 2! × 3!=24
- Divide
- Answer210 strings
3Try it
1 In how many orders can five different books stand on a shelf?
2 How many different strings can be made from p, p, q, q, q?
3 How many different strings can be made from x, x, y, y, y, z, z, z?
- 15! = 120
- 25!/(2! 3!) = 10
- 38!/(2! 3! 3!) = 40320/72 = 560
Order or no order: permutations and combinations
Sometimes the places are labelled, like first, second and third prize. Sometimes only the group matters, like a team. A permutation counts ordered selections; a combination counts groups. Every group of three has 3! = 6 orders, and that links the two.
1Fill labelled places: a permutation
Three of the tokens A–G fill positions 1, 2 and 3. How many ways?
- Count the choices place by place
- The same as 7!/4!: the four unused tokens are not placed
- Answer210 ways
2A token that must be used: place it first
Three of the tokens A–G fill positions 1, 2 and 3, and A must be one of them. How many ways?
- Choose the position for A3 ways
- Fill the other two positions from B–G6 × 5=30
- Answer3 × 30 = 90 ways
3Choose a group: a combination
How many groups of three can be chosen from A–G?
- Count ordered triples7 × 6 × 5=210
- Each group appears in 3! = 6 orders
- Answer35 groups
4Order or group? Read what is recorded
| What is recorded | A, C, E against E, C, A | Count from A–G |
|---|---|---|
| Positions 1, 2, 3 | different outcomes | ⁷P₃ = 210 permutations |
| A group of three | the same group | ⁷C₃ = 35 combinations |
5Try it
1 A club of nine members chooses a captain, a vice-captain and a secretary. How many ways?
2 How many teams of four can be chosen from the nine members?
3 Four of the tokens A–G fill positions 1 to 4, and B must be one of them. How many ways?
- 1⁹P₃ = 9 × 8 × 7 = 504
- 2⁹C₄ = 126
- 34 places for B, then 6 × 5 × 4: 4 × 120 = 480
Together or apart: blocks and gaps
Two conditions come up again and again: some objects must stand together, or some must stand apart. For together, glue them into one block. For apart, line up everything else first, then drop the separated objects into the gaps.
1Together: glue a block
Arrange A–G in a line with A and B next to each other.
- AB is one object: six objects to arrange
- Inside the block: AB or BA720 × 2
- Answer1440 arrangements
2A block of identical letters has one inside order
Arrange a, a, b, b, c, c, c with the two a together and the two b apart.
- Glue aa and arrange [aa], b, b, c, c, c=60
- Count the ones where bb is together too=20
- Subtract inside the aa-together count60 − 20
- Answer40 strings
3Apart: drop into gaps
Arrange A–G so that no two of A, B, C are next to each other.
- Arrange D, E, F, G4!=24
- Choose three of the five gaps⁵C₃=10
- Put A, B, C in those gaps in order3!=6
- Answer24 × 10 × 6 = 1440Multiply the three counts.
Arrange a, a, b, b, c, c, c with no two c next to each other.
- Arrange a, a, b, b4!/(2! 2!)=6
- Choose three gaps for c⁵C₃=10
- Answer6 × 10 = 60No 3!: the c are identical.
4“Not all together” is a different question
5Try it
1 Six different books stand on a shelf, with two particular books next to each other. How many orders?
2 Arrange the letters p, q, r, s, t so that p and q are not next to each other.
3 Arrange a, a, a, b, b, b, b so that no two a are next to each other.
- 15! × 2 = 240
- 25! − 4! × 2 = 120 − 48 = 72
- 3one order of bbbb, five gaps: ⁵C₃ = 10
Fixed places: spacing, ends and digits
Some rules fix a place: the last digit, the letters at each end, the distance between two letters. Deal with that place first, then fill the free places. If the fixed place has options that change the rest, split into cases and add.
1Spacing between two letters: list the position pairs
Arrange a, a, b, b, c, c, c with exactly two letters between the two a.
- The a places differ by 3(1, 4), (2, 5), (3, 6), (4, 7): 4 pairs
- Fill the other five places with b, b, c, c, c= 10
- Answer4 × 10 = 40 strings
2Fixed ends: place them before anything else
Arrange a, a, b, b, c, c, c with b at both ends and exactly two letters between the two a.
- Put b at places 1 and 7both b are now used
- The a places differ by 3, inside places 2 to 6(2, 5) or (3, 6)
- The three c fill what is left: one way eachbaccacb, bcaccab
- Answer2 strings
3Digits: fix the last digit first
| Last digit | First digit | Middle digit | Count |
|---|---|---|---|
| 0 | 5: 2, 3, 5, 7, 8 | 4 left | 1 × 5 × 4 = 20 |
| 2 | 4: not 0, not 2 | 4, including 0 | 1 × 4 × 4 = 16 |
| 8 | 4: not 0, not 8 | 4, including 0 | 1 × 4 × 4 = 16 |
4Repeats allowed, and multiples of 5
Even three-digit numbers from 0, 2, 3, 5, 7, 8, digits may repeat.
- First digit not 0; any middle digit; last digit 0, 2 or 85 × 6 × 3
- Answer90 numbersFor example 222 is allowed now.
Multiples of 5 from the same digits, no digit repeated.
- Five first digits, four middle digitsending 0: 5 × 4=20
- First digit not 0 and not 5ending 5: 4 × 4=16
- Answer20 + 16 = 36 numbersAdd the two cases.
5Try it
1 Arrange p, p, q, q, r, r with exactly one letter between the two p.
2 How many odd three-digit numbers can be made from 1, 2, 4, 6, 9 with no digit repeated?
3 How many even three-digit numbers can be made from 0, 1, 3, 4, 6 with no digit repeated?
- 1pairs (1, 3), (2, 4), (3, 5), (4, 6); 4 × 4!/(2! 2!) = 4 × 6 = 24
- 2last digit 1 or 9: 2 × 4 × 3 = 24
- 3ending 0: 4 × 3 = 12; ending 4 or 6: 3 × 3 = 9 each; 12 + 9 + 9 = 30
Selections with conditions, and probability
“At least two blue” hides separate cases: exactly two blue, or exactly three. Count each case, then add. To turn a count into a probability, divide by a total counted in the same way.
1Split “at least” into cases
Choose a group of 3 from A–G with at least two blue (A–D are blue, E–G gold).
- 2 blue and 1 gold= 6 × 3 = 18
- 3 blue and 0 gold= 4
- The cases cannot overlap: add18 + 4
- Answer22 groups
2Probability: the same kind of count top and bottom
Every group of three from A–G is equally likely. Find P(at least two blue).
- Favourable groups, from step 122
- All groups
- Answer
3Tiles that look alike are still separate tiles
| Letters | Tile sets | Count |
|---|---|---|
| aab | ²C₂ × ²C₁ | 2 |
| aac | ²C₂ × ³C₁ | 3 |
| abb | ²C₁ × ²C₂ | 2 |
| abc | ²C₁ × ²C₁ × ³C₁ | 12 |
| acc | ²C₁ × ³C₂ | 6 |
| bbc | ²C₂ × ³C₁ | 3 |
| bcc | ²C₁ × ³C₂ | 6 |
| ccc | ³C₃ | 1 |
4Split into two groups: choose one, the rest is the other
| Group of three | Group of five | Why |
|---|---|---|
| ccc | aabbd | ccc fills the small group. |
| bbd | aaccc | ccc and aa fill the large group. |
| aad | bbccc | ccc large; aa small with d. |
| aab | bcccd | ccc large; aa small with b. |
5Try it
1 A group of 4 is chosen from 5 red and 4 green counters, all different. How many groups have at least 3 red?
2 Every group of 4 is equally likely. Find P(at least 3 red).
3 Six tiles show p, p, q, q, q, r. Two are drawn. Find P(both show q).
4 In how many ways can 8 different people be split into a group of 3 and a group of 5?
- 1⁵C₃ × ⁴C₁ + ⁵C₄ = 40 + 5 = 45
- 245/⁹C₄ = 45/126 = 5/14
- 3³C₂/⁶C₂ = 3/15 = 1/5
- 4⁸C₃ = 56
Two labelled rows
The seven tokens now fill a front row of three seats (F1–F3) and a back row of four (B1–B4). A count has two parts: who sits in each row, and in what order. The order part is always 3! × 4! = 144.
1Split by row
A and B must be in the same row. How many arrangements?
- Both in front: seats for A, then B, then the rest= 720
- Both at the back= 1440
- The cases cannot overlap: add720 + 1440
- Answer2160 arrangements
2Members first, then order
Count the same arrangements by choosing who sits in each row first. Then find P(same row).
- A and B in front: 1 more from the other five. At the back: 3 of the other five go in front5 + ⁵C₃=5 + 10 = 15
- Order each row= 2160
- Divide by all 7! = 5040 equally likely arrangements
- AnswerP(same row) = 3/7
3Two conditions at once: one case for each row
Case 1: A and B in front.
- They already give two blue. The third front token is any of C, D, E, F, G5 choices
- Answer= 720Order both rows.
Case 2: A and B at the back.
- C and D must both be in front; the third is E, F or G3 choices
- Answer= 432Order both rows.
4Try it
1 A must sit in the front row. How many arrangements?
2 C and D must both sit in the back row. How many arrangements?
3 Find the probability that A and B both sit in the front row.
- 13 × 6! = 2160
- 24 × 3 × 5! = 1440
- 33 × 2 × 5!/7! = 720/5040 = 1/7