Counting word problems: arrangements, combinations and paths
Counting problems ask how many ways something can happen. Decide first whether order matters (arrangements) or not (choices), and whether things may repeat.
Arrangements of n different things: n!; of r out of n: n!/(n − r)!.
Choosing r out of n, order not mattering: C(n, r) = n!/(r!(n − r)!).
Count the complement: all ways − the ways you do not want.
Watch out: Choosing a team of 3 counts each group once; choosing a captain, a vice and a secretary does not.
Practise this step
5 questions from this step only, in 8 minutes: new numbers and
stories every time, of exactly the types worked out below. Marked at the end, with every question
worked out.
How many 2-digit numbers have every digit at least 8?
Hint
Each place may hold any digit from 8 to 9; none of them is zero, so the first place is no different.
Worked solution
Choices per place: 10 − 8 = 2
2^2 = 4
Answer: 4 numbers
Example 2 · level 7
A lunch menu has 4 starters, 6 main courses and 4 desserts. A lunch is one main course with a starter, or with a dessert, or with both. How many different lunches are there?
Hint
Count what can go with the main course: a starter only, a dessert only, or one of each.
Worked solution
With the main course: 4 + 4 + (4 × 4) = 24 choices
Lunches: 6 × 24 = 144
Answer: 144 lunches
Example 3 · level 7
A number plate has 3 letters followed by 3 digits. The letters are chosen from 26 letters, and letters and digits may repeat. How many different plates are possible?
Hint
Each letter has 26 choices and each digit has 10.
Worked solution
Letters: 26^3 = 17,576; digits: 10^3 = 1000
Plates: 17,576 × 1000 = 17,576,000
Answer: 17,576,000 plates
Example 4 · level 7
A door lock has 12 buttons, each with a different symbol. A code presses 5 different buttons in order. How many codes are there?
Hint
The first button has 12 choices, the next one fewer, and so on.
Worked solution
12 × (12 − 1) × … × 8 (5 factors)
= 95,040
Answer: 95,040 codes
Example 5 · level 8
You have 7 different non-zero digits, 2 of them even. How many 3-digit even numbers can be made from them, with no digit used twice?
Hint
An even number ends in an even digit: choose the last digit first.
Worked solution
Last digit: 2 choices
The other 2 places from the 6 digits left: 30 ways
Numbers: 2 × 30 = 60
Answer: 60 numbers
Example 6 · level 8
Local phone numbers in a town have 4 digits, and the first digit must be 4 or more. How many phone numbers are possible?
Hint
The first digit has the digits from 4 to 9 to choose from; every other digit has 10.
Worked solution
First digit: 10 − 4 = 6 choices; the other 3: 10^3 = 1000
A coach picks a relay team of 6 runners from a squad of 10 and decides who runs first, second, and so on. The fastest runner of the squad must run the last leg. How many different line-ups are possible?
Hint
The last leg is fixed; fill the other legs in order from the rest of the squad.
Worked solution
Other legs: 5, chosen in order from 9 runners
9 × (9 − 1) × … = 15,120
Answer: 15,120 line-ups
Example 10 · level 8
6 guests sit at a round table; only who sits next to whom matters, not the exact chairs. The 3 members of one family must sit together. In how many ways can the guests be seated?
Hint
Treat the family as one unit: round a table, u units can be arranged in (u − 1)! ways.
Worked solution
Units: the family plus the other guests, 6 − 3 + 1 = 4, round the table in 6 ways
At a meeting, everyone shook hands once with everyone else. There were 630 handshakes. How many people were at the meeting?
Hint
With n people there are n × (n − 1)/2 handshakes.
Worked solution
n × (n − 1) = 1260
36 × 35 = 1260, so n = 36
Answer: 36 people
Example 12 · level 7
37 points are marked on a page, no three of them on one straight line. How many straight lines pass through two of the points?
Hint
Every pair of points gives one line, and no line is counted twice.
Worked solution
Pairs: C(37, 2) = 37 × 36/2 = 666
Answer: 666 lines
Example 13 · level 7
A quiz team is made of 3 pupils from class A, which has 12 pupils, and 3 pupils from class B, which has 6. How many different teams are possible?
Hint
Choose from each class on its own, then combine every choice from A with every choice from B.
Worked solution
Class A: C(12, 3) = 220; class B: C(6, 3) = 20
Teams: 220 × 20 = 4400
Answer: 4400 teams
Example 14 · level 8
From 10 volunteers a committee of 3 is chosen, and then one of its members is made chair. How many different results are possible?
Hint
Choose the committee, then the chair from inside it.
Worked solution
Committees: C(10, 3) = 120
With a chair: 120 × 3 = 360
Answer: 360 results
Example 15 · level 8
A committee of 2 is chosen from 5 men and 5 women. How many different committees include at least one woman?
Hint
Count all committees, then take away those with no woman.
Worked solution
All: C(10, 2) = 45
Men only: C(5, 2) = 10
45 − 10 = 35
Answer: 35 committees
Example 16 · level 8
A kitchen has 18 different fruits. A fruit salad uses some of them, at least one. How many different fruit salads can be made, if only which fruits are in it matters?
Hint
Each fruit is either in or out; take away the empty bowl.
Worked solution
In or out for each fruit: 2^18 = 262,144
Without the empty bowl: 262,144 − 1 = 262,143
Answer: 262,143 salads
Example 17 · level 8
In a lottery 3 numbers are drawn from 42, and a ticket has as many different numbers. How many different tickets have exactly 2 of the drawn numbers?
Hint
Choose which drawn numbers are on the ticket, and fill the rest with numbers that were not drawn.
Worked solution
Right numbers: C(3, 2) = 3
The other 1 from the 39 not drawn: C(39, 1) = 39
Tickets: 3 × 39 = 117
Answer: 117 tickets
Example 18 · level 8
An online poll has 11 options. You may tick as many as you like, from one up to 6. In how many different ways can you fill in the poll?
Hint
Count the ways to tick exactly one, exactly two, and so on, and add them up.
Worked solution
C(11, 1) + C(11, 2) + … + C(11, 6)
11 + 55 + 165 + 330 + 462 + 462 = 1485
Answer: 1485 ways
Example 19 · level 8
22 points are marked on a circle. How many four-sided shapes have four of these points as their corners?
Hint
Any four points on a circle, joined in order round the circle, make exactly one such shape.
Worked solution
C(22, 4) = 22!/(4! × (22 − 4)!) = 7315
Answer: 7315 shapes
Example 20 · level 8
A pizza place offers 8 different toppings, cheese among them. A pizza has exactly 3 different toppings, and cheese must be one of them. How many different pizzas are possible?
Hint
Cheese is already chosen; choose the other toppings from the rest.
Worked solution
Left to choose: 2 toppings from 7
C(7, 2) = 21
Answer: 21 pizzas
Example 21 · level 8
6 points lie on a circle. How many triangles have three of these points as their corners?
Hint
No three points on a circle lie on one line, so any three make a triangle.
In a league of 27 teams, every team plays every other team twice: once at home and once away. How many matches are played in the season?
Hint
Each team has a home match against every other team.
Worked solution
Home matches per team: 26
Matches: 27 × 26 = 702
Answer: 702 matches
Example 23 · level 7
285 players enter a knockout tournament: the loser of every match is out, some players may skip a round, and the last player left wins. How many matches are played?
Hint
Count the losers, not the rounds: every match puts out exactly one player.
Worked solution
Everyone but the winner loses once: 285 − 1 = 284 matches
Answer: 284 matches
Example 24 · level 8
Each half of a domino shows a number of spots from zero up to 16. A full set has every possible domino exactly once; a domino turned round is the same domino. How many dominoes are in the set?
Hint
There are 16 + 1 possible halves. Count the dominoes with two different halves and those with two equal ones.
Worked solution
Halves: 16 + 1 = 17
Different halves: C(17, 2) = 136; equal halves: 17
Set: 136 + 17 = 153
Answer: 153 dominoes
Example 25 · level 8
A town's streets form a grid. Home is at one corner and school is 7 blocks east and 6 blocks north of it. A shop is 5 blocks east and 5 blocks north of home. How many shortest routes from home to school go past the shop?
Hint
Count the shortest routes from home to the shop and from the shop to school, then multiply. A route of p blocks east and q north can be ordered in C(p + q, p) ways.