exercise - permutations and combinations
permutations
A permutation of a set is an arrangement of its elements into a sequence, where the order of the elements matter. For example, if we have 10 books on a shelf and we need to pick 3 to put on another shelf, there are ways to do that.
For example, the 6 permutations (orderings) of the set {1, 2, 3} are (1, 2, 3), (1, 3, 2), (2, 1, 3), (2, 3, 1), (3, 1, 2), and (3, 2, 1).
For a set with distinct elements, the number of permutations possible if we pick elements from the set and ordered them is called a k-permutation, represented as .
id: 1741511531746
---
$P(n,k)$ = ==$\dfrac{n!}{(n-k)!}$==combinations
A combination is a selection of items from a set that has distinct members, such that the order of selection does not matter. Unlike permutations.
A k-combination of a set is a subset of that has distinct elements of
in other words, if a set has elements and we need to select of them and we do not care about the order, is the number of k-combinations, and is also a binomial coefficient - that is, one of the numbers seen in Pascal’s triangle.
A k-combination can be represented in one of these ways.
id: 1741511532095
---
$C(n,k)$ = ==$\dfrac{n!}{k!(n-k)!}$==Symmetry seen in Pascal’s triangle is represented with the equation .
a special case of the combination function where can use the formula