




Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!





A = {[Pere, Joan, Jordi, Anna], [Pere, Jordi, Pep, Anna], [Pere, Pep, Marc, Judit], ...}
Combinatorics is a set of techniques to count the number of outcomes that conform an event or the sample space
Definició 15 The number of different permutations of n objects in lists of r objects is the number of ordered lists that can be constructed with r objects taken from a set with n objects
(i) Without replacement
If the different objects can appear at most once in the list we will have n objects available for the first position in the list, n −1 for the second position (because we have already used one that cannot be used again), n − 2 for the third position (because we have already used two), and so no. Thus, we have the formula:
P(n, r) = n · (n − 1 ) · (n − 2 ) ·... · (n − r + 1 ) =
n! (n − r)!
Exemple 16 There are 5 kids in a class, how many different rows with 3 kids can we form? P( 5 , 3 ) = 5 · 4 · 3 = 60
(ii) With replacement
If any object can be used more than once in the list we will have n objects available for the first position in the list, the same n objects for the second position, the same n objects for the third position, and so no. Hence the formula: P(n, r) = ︷ r−︸︸times ︷ n · n · · · n = nr
Finally, a special case is to create ordered lists with n objects when there are some objects that are repeated. This is the case of permutations with repeti- tions
Definició 18 The number of different permutations with repetitions of n ob- jects when there are n 1 identical objects, n 2 identical objects, ..., nk identical objects (n 1 +... + nk = n) is the number of different lists that we can create with these objects
In this case the formula that does the count is:
PR(n; n 1 , n 2 ,... , nk) =
n! n 1! · n 2! ·... · nk!
Exemple 19 In how many ways can we order 6 books on a shelf if we have 3 red books and 3 yellow books?