參見:機率論
Permutation is an ordered arrangement of a number of elements of a set.
Mathematically, given a set with numbers of elements, the number of permutations of size is denoted by or or .
The formula is given by
where ( factorial) and .
For example, given the set of letters , the permutations of size 2 (take 2 elements of the set) are , , , , , and . Please note that the order is important; is considered different from .
The number of permutations is 6.
Another example: How many different ways are there can 5 different books be arranged on the self?
Answer: Here,
and .
So,
As can be seen from the above example, when , then .
Combination is an unordered arrangement of a number of elements of a set.
Given a set with numbers of elements, the number of combinations of size is denoted by or or .
The formula is given by
For example, given the set of letters , the combinations of size 2 (take 2 elements of the set) are , , and . Please note that the order is not important; is considered the same as .
The number of combinations is 3.
Another example: A basket contains an apple, an orange, a pear, and a banana. How many combinations of three fruits are there?
Answer: Here,
and .
So,
For combination, when , the number of combinations is always equal to 1.
See also: probability