Back to homeMathematics · 5th Year OL · Change subject
Start for free
5th Year OL · Mathematics
Combinatorics · Combinatorics

Introduction to combinatorics

Before you start, make sure you know: Random experiments and sample space (2nd Year, Junior Cycle)

In a café in Galway, how many different meals can you order by combining a starter, a main course and a dessert? How many 7-digit passcodes could your mobile phone have? Writing out the complete list by hand would be absurd. Combinatorics is the branch of mathematics that counts without having to list everything: in the Leaving Cert you will need it constantly, especially in probability. This block gives you the basic tools.

The fundamental principle of counting

A restaurant offers 4 starters, 3 main courses and 5 desserts. To fix a complete menu you make one decision at each stage, and the decisions are independent of one another.

Block diagram representing the three independent stages of a menu (4 starters, 3 main courses and 5 desserts) giving rise to 60 combinations. 4 starters 3 main courses 5 desserts = 60 one decision per stage, independent of each other 4 · 3 · 5 = 60 different menus
Practice★☆☆Not started
A restaurant offers a set menu with $4$ starters, $3$ main courses and $5$ desserts. How many different ways can a full three-course meal consisting of a starter, a main…

A restaurant offers a set menu with $4$ starters, $3$ main courses and $5$ desserts. How many different ways can a full three-course meal consisting of a starter, a main course and a dessert be ordered?

Solve
Practice★☆☆Not started
A bicycle brand manufactures a model that is available in $3$ different frame sizes, $5$ colours and with $2$ different types of brakes. How many different versions of…

A bicycle brand manufactures a model that is available in $3$ different frame sizes, $5$ colours and with $2$ different types of brakes. How many different versions of this bicycle model are on the market?

Solve
Practice★☆☆Not started
To protect a bicycle at high school, a combination lock with $3$ rotating wheels is used, each with the digits from $0$ to $9$. The owner states that the code cannot…

To protect a bicycle at high school, a combination lock with $3$ rotating wheels is used, each with the digits from $0$ to $9$. The owner states that the code cannot start with $0$ and that the three digits must be distinct from each other.

  1. a) Before performing any exact calculations, intuitively estimate whether the total number of possible codes will be less than $300$, between $300$ and $700$, or greater than $700$. Briefly justify what your initial intuition is based on.
  2. b) Model the situation using the multiplication principle and calculate the exact number of different codes that satisfy these conditions.
  3. c) Check whether your initial estimate was correct and reflect on how the result changes if digits were allowed to be repeated (keeping the first digit different from $0$).
Solve

Tree diagrams with dependent events

The multiplication principle also works when the number of options changes from one stage to the next, as long as you know how many remain on each branch. A tree diagram is the clearest way to see this.

Tree diagram representing two consecutive draws of balls without replacement, showing the reduction in options on the branches of the second stage. urn: 3 red, 2 blue — 2 are drawn without replacement red: 2 r, 2 b left blue: 3 r, 1 b left red: 1 r, 2 b left blue: 2 r, 1 b left red: 2 r, 1 b left blue: 3 r, 0 b left

Notice: after drawing a red ball, only 4 balls remain (2 red and 2 blue) for the second draw, because it is not replaced. The number of options in the second stage depends on what happened in the first. The tree shows every possible pair of draws, with the options reduced on each branch.

Practice★☆☆Not started
Draw the tree diagram for the experiment consisting of tossing a fair coin and then rolling a tetrahedral die (with its faces numbered from $1$ to $4$). How many…

Draw the tree diagram for the experiment consisting of tossing a fair coin and then rolling a tetrahedral die (with its faces numbered from $1$ to $4$). How many possible outcomes does this compound experiment have?

You can do it on paper and send a photo with your answer.

Solve
Practice★★☆Not started
Two basketball teams, Alfa and Beta, play a best-of-$3$ playoff (the first team to win $2$ games qualifies). Draws are not possible. Draw the tree diagram with all…

Two basketball teams, Alfa and Beta, play a best-of-$3$ playoff (the first team to win $2$ games qualifies). Draws are not possible. Draw the tree diagram with all possible outcomes of the playoff. In how many different ways can the series of games unfold?

You can do it on paper and send a photo with your answer.

Solve
Practice★★☆Not started
Look at the grid in the figure. A robot moves from point A to point B, moving only to the right or upwards along the grid lines. How many different paths can the robot…

Look at the grid in the figure. A robot moves from point A to point B, moving only to the right or upwards along the grid lines. How many different paths can the robot take to reach its destination?

A B
Solve

The factorial

As soon as a task consists of placing elements one by one and there is one fewer available at each stage, the same product always appears: $n \cdot (n-1) \cdot (n-2) \cdots 1$. Because of its importance it has its own name and symbol.

Comparison table with the values of the factorials from 3 to 6, showing how their value grows rapidly from 6 to 720. 3! = 6 4! = 24 5! = 120 6! = 720 grows much faster than n: from 6! to 7! = 5,040 you just multiply by 7

When a large factorial is divided by a smaller one, you do not need to expand either of them completely: almost everything cancels.

The same idea works with letters: $\dfrac{(x+2)!}{x!} = (x+2)(x+1)$, because $(x+2)! = (x+2)(x+1) \cdot x!$.

You can also go the other way: write a product in factorial notation. A product that runs all the way down to $1$ is just a factorial. A product that stops early is a quotient of two factorials: multiply and divide by the missing part.

Practice★☆☆Not started
Calculate the value of the following numerical expressions using the properties of factorials: $\frac{8!}{6!}$ $4! + 3!$

Calculate the value of the following numerical expressions using the properties of factorials:

  • $\frac{8!}{6!}$

  • $4! + 3!$

Solve
Practice★☆☆Not started
Express the following products using factorial notation: $15 \times 14 \times 13$ $7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1$

Express the following products using factorial notation:

  • $15 \times 14 \times 13$

  • $7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1$

Solve
Practice★★☆Not started
Simplify the algebraic expression $\frac{(x+2)!}{x!}$ and then solve the equation $\frac{(x+2)!}{x!} = 72$.

Simplify the algebraic expression $\frac{(x+2)!}{x!}$ and then solve the equation $\frac{(x+2)!}{x!} = 72$.

Solve

The pigeonhole principle

If you have more pigeons than pigeonholes, at least one pigeonhole will contain two or more pigeons. It seems obvious, but it is a very powerful tool for proofs: it lets you guarantee that something repeats, without needing to find the specific case.

Illustrative diagram of the pigeonhole principle with objects distributed into boxes, where, since there are more objects than boxes, at least one holds more than one. 4 pigeons, 3 pigeonholes: one has 2 or more
Practice★☆☆Not started
In a chest of drawers, there are loose socks of $3$ different colours (black, white, and blue). If there is a power outage and you take out socks in the dark, what is…

In a chest of drawers, there are loose socks of $3$ different colours (black, white, and blue). If there is a power outage and you take out socks in the dark, what is the minimum number of socks you must pull out to guarantee having at least one pair of the same colour?

Solve
Practice★★☆Not started
In a secondary school, there are $400$ students enrolled. Justify mathematically why you can guarantee that at least two students share the same birthday. What is the…

In a secondary school, there are $400$ students enrolled.

  • Justify mathematically why you can guarantee that at least two students share the same birthday.

  • What is the minimum number of students needed at the school to guarantee that at least three of them share the same birthday? (Assume non-leap years of $365$ days).

Solve
Practice★★★Not started
$5$ points are chosen at random inside a square of side length $2\text{ cm}$. Prove, using the pigeonhole principle, that there will always be at least two points whose…

$5$ points are chosen at random inside a square of side length $2\text{ cm}$. Prove, using the pigeonhole principle, that there will always be at least two points whose distance apart is less than or equal to $\sqrt{2}\text{ cm}$. (Hint: divide the square into strategic regions).

Solve

Back to the start: If a password has 7 positions and in each one you can choose from the 10 digits (0 to 9), by the multiplication principle there are $10^7 = 10{,}000{,}000$ possible combinations.

Summary

See all the exercises in this section