Back to homeMathematics · High School Year 1 · Change subject
Start for free
Prep 1 · Mathematics
Combinatorics · Combinatorics

Introduction to Combinatorics

Before you start, make sure you know: Random experiments and sample space (Secondary Year 2)
Before you start, make sure you know: Concepts (Secondary Year 3)

At a taco shop, the combo of the day lets you choose 4 kinds of tacos, 3 aguas frescas, and 5 desserts. How many different combos are there? And how many 7-digit passcodes can your cell phone have? Making the complete list by hand would be absurd. Combinatorics counts without having to list everything, and it is the first step toward computing probabilities: to find $P(A)$ you have to count the possible outcomes and the favorable outcomes.

The multiplication principle

A fonda offers 4 first courses, 3 second courses, and 5 desserts. To put together a complete meal you make one decision at each stage, and the decisions are independent of one another.

Block diagram with the three independent stages of a meal (4 first courses, 3 second courses, and 5 desserts) that give 60 combinations. 4 first courses 3 second courses 5 desserts = 60 one decision per stage, independent of each other 4 · 3 · 5 = 60 different meals
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$ colors 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$ colors and with $2$ different types of brakes. How many different versions of this bicycle model are on the market?

Solve
Practice★☆☆Not started
In a classroom library there are $12$ science fiction novels, $8$ historical novels and $5$ biographies. If you only have time to read one book this weekend, how many…

In a classroom library there are $12$ science fiction novels, $8$ historical novels and $5$ biographies. If you only have time to read one book this weekend, how many different options do you have to choose from?

Solve
Practice★☆☆Not started
To go from city A to city B there are $3$ different roads, and to go from city B to city C there are $2$ different roads. In how many ways can you travel from A to C,…

To go from city A to city B there are $3$ different roads, and to go from city B to city C there are $2$ different roads.

A B C
  • In how many ways can you travel from A to C, ensuring you pass through B?

  • Draw the tree diagram corresponding to this journey.

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

Solve
Practice★★☆Not started
A password for a computer system must consist of $2$ letters of the alphabet (out of $26$ possible letters) followed by $3$ digits (from $0$ to $9$), or $3$ letters…

A password for a computer system must consist of $2$ letters of the alphabet (out of $26$ possible letters) followed by $3$ digits (from $0$ to $9$), or $3$ letters followed by $2$ digits. If repetition of both letters and digits is allowed, how many different passwords can be created in total?

Solve
Practice★★☆Not started
A multiple-choice exam consists of $10$ questions. Each question has $4$ answer options, only one of which is correct. In how many different ways can the exam be…

A multiple-choice exam consists of $10$ questions. Each question has $4$ answer options, only one of which is correct.

  • In how many different ways can the exam be answered if selecting an option for every question is mandatory?

  • In how many ways could it be answered if leaving questions blank is allowed?

Solve
Practice★★★Not started
A flag with $3$ vertical stripes is to be designed using a palette of $5$ available colors. In how many ways can it be colored if two adjacent stripes cannot have the…

A flag with $3$ vertical stripes is to be designed using a palette of $5$ available colors.

1 2 3
  • In how many ways can it be colored if two adjacent stripes cannot have the same color?

  • In how many ways can it be colored if, in addition to the previous condition, the first and last stripes must also be of different colors?

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 are left on each branch. A tree diagram shows this clearly.

Tree diagram of two consecutive draws of balls without replacement, where the options in the second stage change. urn: 3 red, 2 blue; 2 are drawn without replacement red blue red: 1 r, 2 b left blue: 2 r, 1 b left red: 2 r, 1 b left blue: 3 r, 0 b left

After drawing a red one, 4 balls remain (2 red and 2 blue), because it is not put back. The options in the second stage depend on the first, but each final branch is a different outcome. Here there are 4 outcomes: RR, RB, BR, BB.

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
An urn contains $3$ red balls and $2$ blue balls. Two balls are drawn sequentially without replacement. Draw the tree diagram for the experiment and calculate how many…

An urn contains $3$ red balls and $2$ blue balls. Two balls are drawn sequentially without replacement. Draw the tree diagram for the experiment and calculate how many distinct outcomes can be obtained if the order of extraction and the color of the balls are taken into account.

Solve
Practice★★★Not started
Two friends, Ionut and Diana, play a board game consisting of several rounds. The overall winner of the game will be the first person to win $2$ consecutive rounds or…

Two friends, Ionut and Diana, play a board game consisting of several rounds. The overall winner of the game will be the first person to win $2$ consecutive rounds or $3$ rounds in total across the match. Knowing that draws are not possible in any round, draw the corresponding tree diagram and determine the maximum number of rounds they can play and how many different game paths there are.

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

Solve

Counting by stages with restrictions

Many problems can be solved with the multiplication principle if you decide in what order to fill the stages: first the positions with the most restrictions.

Practice★★☆Not started
Using only the digits from the set $\{1, 2, 3, 4, 5\}$: How many numbers with $4$ distinct digits can be formed? How many of these formed numbers are even?

Using only the digits from the set $\{1, 2, 3, 4, 5\}$:

  • How many numbers with $4$ distinct digits can be formed?

  • How many of these formed numbers are even?

Solve
Practice★★★Not started
In the decimal number system, consider all integers from $1000$ to $9999$ (inclusive). How many of these numbers contain the digit $7$ at least once in their…

In the decimal number system, consider all integers from $1000$ to $9999$ (inclusive). How many of these numbers contain the digit $7$ at least once in their representation?

Solve
Practice★★★Not started
A palindrome number is a number that reads the same forwards and backwards (for example, the number $35153$). How many $5$-digit palindrome numbers are there in total?…

A palindrome number is a number that reads the same forwards and backwards (for example, the number $35153$).

  • How many $5$-digit palindrome numbers are there in total?

  • How many of these $5$-digit palindrome numbers are even numbers?

Solve
Practice★★★Not started
In a class of $20$ students, a leadership team consisting of a president, a vice-president, and a secretary must be chosen (distinct positions that cannot be held by the…

In a class of $20$ students, a leadership team consisting of a president, a vice-president, and a secretary must be chosen (distinct positions that cannot be held by the same person simultaneously). Once the leadership team has been chosen, a sports representative must be selected from the remaining $17$ students. In how many different ways can this entire selection process be carried out?

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

When a task consists of placing elements one by one and there is one fewer at each stage, the product $n \times (n-1) \times (n-2) \times \cdots \times 1$ always appears. It has its own name and symbol.

Values of the factorials from 3 to 6, which grow from 6 to 720. 3! = 6 4! = 24 5! = 120 6! = 720 grows very fast: from 6! to 7! = 5,040 you just multiply by 7

When a large factorial is divided by a smaller one, almost everything cancels.

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

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
Practice★★★Not started
Solve the following equation involving factorials, knowing that $n$ is a natural number: $$ \frac{(n+1)!}{(n-1)!} - \frac{(n-1)!}{(n-3)!} = 22 $$

Solve the following equation involving factorials, knowing that $n$ is a natural number:

$$ \frac{(n+1)!}{(n-1)!} - \frac{(n-1)!}{(n-3)!} = 22 $$
Solve
Practice★★★Not started
Prove algebraically the following identity, valid for any natural number $n \ge 1$: $$ n! + (n-1)! = (n+1) \times (n-1)! $$ Once proven, apply this result to simplify…

Prove algebraically the following identity, valid for any natural number $n \ge 1$:

$$ n! + (n-1)! = (n+1) \times (n-1)! $$

Once proven, apply this result to simplify and calculate the exact value of the expression $\frac{10! + 9!}{11!}$.

Solve

The pigeonhole principle

If you have more pigeons than pigeonholes, some pigeonhole will have at least two pigeons. It seems obvious, but it lets you be sure that something repeats without finding the specific case.

Four objects distributed among three boxes: some box contains two or more. 4 pigeons, 3 pigeonholes: one has 2 or more
Practice★☆☆Not started
In a chest of drawers, there are loose socks of $3$ different colors (black, white, and blue). If there is a power outage and you take out socks in the dark, what is the…

In a chest of drawers, there are loose socks of $3$ different colors (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 color?

Solve
Practice★★☆Not started
In a high 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…

In a high 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 beginning: if a passcode has 7 positions and in each one you choose among 10 digits, there are $10^7 = 10{,}000{,}000$ possible passcodes. And the taco shop combo: $4 \times 3 \times 5 = 60$.

Summary

See all the exercises in this section