All the formulas that follow will always have two cases:
without repetition
with repetition: in this case there will be a bar above to mean "with repetition"
For example, if we note the arrangements without repetition \(A_n\), we will note \(\overline{A_n}\) those with possible repetition.
The number of permutations of the elements of a set (without repetition)
For any set \(E\) of \(n\) elements, the number of possible permutations without repetition is:
The number of permutations of the elements of a set (with repetition)
For any set \(E = \{e_1, e_2, e_3, \ ..., \ e_n \}\) with \(k_1, k_2, k_3, ...,k_{n}\) the number of occurrences of each element, the number of possible permutations is:
Arrangements (with a certain order)
The number of arrangements of the elements of a set (without repetition)
The number of arrangements without repetition of \(p\) elements taken from a set of \(n\) are worth:
The number of arrangements of the elements of a set (with repetition)
The number of arrangements with repetition of \(p\) elements taken from a set of \(n\) are worth:
Combinations (without any order)
The number of ways to take distinct elements from a set (without repetition)
The number of ways to take \(p\) elements (distinct and without repetition) in a set of \(n\) elements are worth:
(\(\Longrightarrow\) voir les propriétés du binôme)
The number of ways to take distinct elements from a set (with repetition)
The number of ways to take \(p\) elements (distinct and with repetition) in a set of \(n\) elements are worth:
The number of possible parts of a set
The number of possible parts of a set \(E = \{e_1, e_2, e_3, \ ..., e_n\}\), that's to say :
is worth :
Summary of combinatorics and enumeration formulas
Let \(E\) be a set composed of \(n\) éléments :
For the first choice, we do have \(n\) possibilities. For the second, we do have \((n-1)\) since a first element has already been chosen. In the same way, for the third, we will have \((n-2)\)...etc., up to the last element \((n-(n-1))\).
So finally, for any set \(E\) of \(n\) elements:
Let \(A\) be an alphabet composed of \(n\) letters:
And the numbers \(k_a, k_b, k_c, \ ..., \ k_{\omega} \) the number of repetitions associated with each of these letters.
As above, the number of words of \(n\) letters that can be composed with the letters of the alphabet \(A\) without repetition is: \(n !\).
Now, taking into account the respective repetitions of each letter, we have the following alphabet:
Let us call \(N\) the sum of the respective different repetitions:
In the same way, we can then compose \(N !\) words of \(N\) letters. However, since some letters will be repeated, it will be necessary to remove words that are present several times and thus keep only one version of each word.
That is, for each word \(m\) created, with a defined place for each letter:
There are some \(k_a !\) versions with the letter \(a\) at these precise places, then \(k_b !\) versions for the letter \(b\)...etc.
So for each word, there is \((k_a ! \times k_b ! \times \ k_c ! \times \hspace{0.05em} ... \hspace{0.05em} \times k_{\omega} !) \) identical versions of the same word.
So, for any set \(E = \{e_1, e_2, e_3, \ ..., \ e_n \}\) with \(k_1, k_2, k_3, ...,k_{n}\) the number of occurrences of each element, the number of possible permutations is:
Implicitly, for all \(i\) if the element \(e_i\) is present once then \(k_i = 1\) by default.
If we want to classify a number of \(p\) éléments selon un ordre bien précis,elements in a very precise order, a bit like permutations we will \(n\) choices for the first, ((n-1)\) choices for the second ... etc., but on \(p\) elements only, unlike a permutation:
Now, we notice that this almost corresponds to a a factorial:
Indeed,
So, the number of arrangements without repetition of \(p\) elements taken from a set of \(n\) elements are worth:
When we make arrangements in a group, but this time with repetition, we will then have \(n\) choices every time:
So, the number of arrangements with repetition of \(p\) elements taken from a set of \(n\) elements are worth:
By calculating the number of possible (non-repeating) arrangements of \(p\) elements taken from this set, we obtain a number of possible elements with a notion of classification, or order.
If we want to keep only one version of this number of elements, all distinct, we must then remove their order, that is to say their permutations. We will note this number \(\binom{n}{p}\), so:
So the number of ways to take \(p\) elements (distinct and without repetition) in a set of \(n\) elements are worth:
(\(\Longrightarrow\) voir les propriétés du binôme)
We read it ("\( p \) among \( n \)").
These elements are considered to be in abundance, and one can, each turn, draw again from the elements of this set.
We want to know the number of ways there are to take a basket of \(p\) elements among a total of \(n\).
In this case, consider a new final set \(F\), which will be the starting set, to which we will add in turn the elements already chosen in the previous round.
In the first round, we choose an element, which we add at the end:
In the second round, we choose a second element, which we add at the end:
..etc.
At \((p-1)\)-nth round, we put back \((p-1)\) times the items chosen each round:
At \(p\)-th round, we choose a last one without putting it back in the final set, because we have reached the number of \(p\) desired terms.
Ultimately, it comes down to taking \(p\) distinct elements in a set of \((n + p - 1)\) elements.
We will note this number \(\bigl(\binom{n}{p}\bigr)\) as opposed to elements taken without any repetition \(\binom{n}{p}\).
So the number of ways to take \(p\) elements (distinct and with repetition) in a set of \(n\) elements are worth:
Note that unlike elements taken without any repetition \(\binom{n}{p}\), in this case it is possible to have \((p > n)\).
If we want to obtain the number of possible parts of this set, that is to say:
For any \(p \) elements from \(0\) to \(n\), we do have to add \( p \) elements among \( n \) \(\binom{n}{p}\) :
And this sum is worth:
(\(\Longrightarrow\) see the demonstration)
If we have an alphabet with \(3\) different letters:
If we want to know the number of possible words, without repetition of letters, we have \(3!\) possible words.
Now, with this alphabet of \(3\) letters:
If you want to know the number of anagrams of the word \("maman"\), we do have:
We have an urn with \(8\) numbered balls from \(1\) to \(8\). We want to calculate the number of possibilities to draw \(3\) balls.
We now want to draw \(3\) balls, but with return to the urn each time. We will therefore have for the three times, \(8\) possibilities of drawings.
If we want to know how many matches there will be in a chess championship between \(10\) competitors, who will all play each other once.
We must then take \(2\) players among the \(10\) competitors.
We want to create a basket of \((p = 4)\) fruits from a possible choice of \((n = 6)\) fruits, knowing that the available fruits are in abundance. We then have: