Permutations
In this lesson, we'll learn how to calculate permutations in different cases.
We'll cover the following
Order matters for Permutations.
How many ways can we order 3 numbers ? There are 6 ways.
- 1 - 2 - 3
- 1 - 3 - 2
- 2 - 1 - 3
- 2 - 3 - 1
- 3 - 1 - 2
- 3 - 2 - 1
The number of ways is just
Quick explanation: How many ways can we select the number in the first position, we have 3. Now we have 2 options for the second position. Similarly, only 1 choice for the third position.
ways
With repetition
Arranging items from is just .
You have to pick items and choice for each of them.
Without repetition
Expanding on the example above, if we want to find the number of the possible ordering of 3 numbers from .
- 5 choices for the first position
- 4 choices for the second position
- 3 choices for the third position
This is denoted by - permute . Defined as:
So, for the above example, the number of ways is
In the next lesson, we’ll move on to combinations.
Get hands-on with 1400+ tech skills courses.