Combinatorics
Permutations
Factorial notation
factorial is expressed as .
is defined as follows:
The number of arrangements of a group of things is .
Permutations
A permutation can be defined as the total number of ways of picking things from a group of things if order matters. This is expressed as or . (Generally in this course the former is used.)
Multiplication Principle
The multiplication principle states that, if two operations are performed in order with possible outcomes of the first and possible outcomes of the second, then the number of possible outcomes of the first operation followed by the second is equal to .
Addition Principle
The addition principle states that, if there are ways of performing one operation and ways of performing another operation, and it is impossible to perform both operations simultaneously, then there are ways to perform one operation or the other.
Inclusion-Exclusion
For two possible events, the inclusion-exclusion principle states that the number of ways for one or the other to occur is equal to the number of ways that the first can occur the number of ways that the second can occur the number of ways that both can occur.
We can generalise this as follows.
Number of possible outcomes of the combination of a number of sets the sum of the number of possible outcomes of each set the sum of the number of possible outcomes of every combination of two events the sum of the number of possible outcomes of every combination of three events .
To illustrate this more clearly, represent each event as a letter, e.g. . Let the number of outcomes of both of two events be represented by , and the number of outcomes of either of two events be . We can now represent inclusion-exclusion as follows:
Example
Q. Find the number of integers between and inclusive that are divisible by either , or .
To solve this, we can use inclusion-exclusion.
The answer will be equal to (the number of integers divisible by number of integers divisible by number of integers divisible by ) (number of integers divisible by and + number of integers divisible by and + number of integers divisible by and ) (number of integers divisible by , and ).
Let the event 'divisible by 3' be , the event 'divisible by 4' be and 'divisible by 5' be . Then we can express the above as:
Now we calculate each of , , , , , and so on.
So the answer can be calculated as:
Pigeonhole Principle
The pigeonhole principle, in its most basic form, states:
If there are pigeons and less than pigeonholes, there must be at least one pigeonhole containing more than one pigeon.
We can extend this:
If there are pigeons and pigeonholes, there is at least one hole containing at least pigeons.
Combinations
Combinations are similar to permutations except they do not differentiate based on order. Combinations are written using one of the formats or .