Variation
Introduction
In the previous articles, we explored permutations as well as combinations with and without repetition, we will now explore variation!
Where do we use variation ?
Permutations are used when you have equal number of elements and positions unlike variations which is used when you have more elements than positions. Let's take an example to understand.
Variation with repetition
Photo by Towfiqu barbhuiya on Unsplash
We found a suitcase that contains 1 million $ we need to crack the code to open it! but you have only 3 chances to do it!
The code consists of numbers between 0 and 9 for only 3 positions!
How many variations ?
Variation with repetition formula :
"n" is the number of elements and "p" is the number of positions.
Solution :
Variation without repetition formula
Now let's take the same example but without repetition !
"n" is the number of elements and "p" is the number of positions.