Permutation and Combination
Permutation and Combination
In other words:
Permutations
There are basically two types of permutation:
When we have n things to choose from ... we have n choices each time!
n × n × ... (r times)
(In other words, there are n possibilities for the first choice, THEN there
are n possibilites for the second choice, and so on, multplying each time.)
n × n × ... (r times) = nr
Example: in the lock above, there are 10 numbers to choose from (0,1,...9) and
we choose 3 of them:
nr
where n is the number of things to choose
from, and we choose r of them
(Repetition allowed, order matters)
2. Permutations without Repetition
In this case, we have to reduce the number of available choices each time.
So, our first choice has 16 possibilites, and our next choice has 15 possibilities,
then 14, 13, etc. And the total permutations are:
16 × 15 × 14 × 13 × ... = 20,922,789,888,000
But maybe we don't want to choose them all, just 3 of them, so that is only:
16 × 15 × 14 = 3,360
In other words, there are 3,360 different ways that 3 pool balls could be
arranged out of 16 balls.
4! = 4 × 3 × 2 × 1 = 24
7! = 7 × 6 × 5 × 4 × 3 × 2 × 1 = 5,040
1! = 1
So, when we want to select all of the billiard balls the permutations are:
16! = 20,922,789,888,000
But when we want to select just 3 we don't want to multiply after 14. How do we
do that? There is a neat trick ... we divide by 13! ...
16 × 15 × 14 × 13 × 12 ...
= 16 × 15 × 14 = 3,360
13 × 12 ...
Examples:
How many ways can first and second place be awarded to 10 people?
Notation
Instead of writing the whole formula, people use different notations such as
these:
Example: P(10,2) = 90
Combinations
There are also two types of combinations (remember the order does not matter
now):
Actually, these are the hardest to explain, so we will come back to this later.
2. Combinations without Repetition
This is how lotteries work. The numbers are drawn one at a time, and if we have
the lucky numbers (no matter what order) we WIN !
Going back to our pool ball example, let's say we just want to know which 3 pool
balls are chosen, not the order.
But many of those are the same to us now, because we don't care what order!
For example, let us say balls 1, 2 and 3 are chosen. These are the possibilites:
Order doesn't
Order does matter
matter
1 2 3
1 3 2
2 1 3
123
2 3 1
3 1 2
3 2 1
In fact there is an easy way to WORK OUT how many ways "1 2 3" could be
placed in order, and we have already talked about it. The answer is:
3! = 3 × 2 × 1 = 6
That formula is so important it is often just written in big parentheses like this:
Notation
Example
16×15×14 3360
= = 560
3×2×1 6
So remember, do the permutation, then reduce by a further "r!"
In other words choosing 3 balls out of 16, or choosing 13 balls out of 16 have the
same number of combinations.
Pascal's Triangle
We can also use Pascal's Triangle to find the values. Go down to row "n" (the top
row is 0), and then along "r" places and the value there is our answer. Here is an
extract showing row 16:
1 14 91 364 ...
We can have three scoops. How many variations will there be?
Let's use letters for the flavors: {b, c, l, s, v}. Example selections include
(And just to be clear: There are n=5 things to choose from, and we
choose r=3 of them.
Order does not matter, and we can repeat!)
Now, I can't describe directly to you how to CALCULATE this, but I can show
you a special technique that lets you WORK it out.
Think about the ice cream being in boxes, we could say "move past
the first box, then take 3 scoops, then move along 3 more boxes to
the end" and we will have 3 scoops of chocolate!
So it is like we are ordering a robot to get our ice cream, but it doesn't change
anything, we still get what we want.
Notice that there are always 3 circles (3 scoops of ice cream) and 4 arrows (we
need to move 4 times to go from the 1st to 5th container).
This is like saying "we have r + (n-1) pool balls and want to choose r of them".
In other words it is now like the pool balls question, but with slightly changed
numbers. And we can write it like this:
Interestingly, we can look at the arrows instead of the circles, and say "we
have r + (n-1) positions and want to choose (n-1) of them to have arrows", and
the answer is the same:
In Conclusion
Phew, that was a lot to absorb, so maybe you could read it again to be sure!
But knowing how these formulas WORK is only half the battle. Figuring out how
to interpret a real world situation can be quite hard.
But at least now you know how to CALCULATE all 4 variations of "Order
does/does not matter" and "Repeats are/are not allowed".