Fundamental Rules of Combinatorics. Permutations
In how many ways can the students in your class line up one after another in the cafeteria queue? In how many ways can you choose a class president and vice president? In how many ways can gold, silver, and bronze medals be distributed at the FIFA World Cup?
To answer these questions, we need to count how many different combinations, formed according to a certain rule, can be made from elements of a given finite set. The branch of mathematics that deals with such counting problems is called combinatorics.
At the core of solving most combinatorial problems are two rules: the sum rule and the product rule.
The Sum Rule
If sets and are such that , , and , then the choice of ” or ”, where , , can be made in ways.
This rule can be illustrated using the well-known property: if sets and are finite and , then .
The sum rule generalizes naturally. If sets are pairwise disjoint with , , …, , then the choice of ”, or , or …, or ” can be made in ways.
Statement. A tourist is interested in 5 routes through the Dnieper region and 7 routes through the Carpathians. In how many ways can they plan their vacation if they have time for only one route?
Solution. Since there are different routes in total, one of them can be chosen in 12 ways.
Answer: 12 ways.
The Product Rule
If element can be chosen in ways, and after each such choice element can be chosen in ways, then the choice of ” and ” in the specified order, i.e., the choice of the ordered pair , can be made in ways.
The product rule also generalizes naturally. If element can be chosen in ways, element in ways, and so on, element in ways (with the independence principle), then the choice of the ordered tuple can be made in ways.
Statement. How many natural divisors does the number have?
Solution. Any divisor of this number has the form , where are integers satisfying , , .
The number can be chosen in 5 ways, in 4 ways, in 7 ways. By the generalized product rule, the total number of divisors is .
Answer: 140 divisors.
Ordered Sets
A set consisting of elements () is called ordered if a one-to-one correspondence has been established between it and the set of the first natural numbers.
Permutations
A permutation of a finite set is any ordered set formed from all elements of .
For example, there are 6 permutations of the set :
, , , , , .
Permutations of a given finite set differ only in the order of their elements.
The number of permutations of an -element set is denoted by , using the first letter of the French word permutation.
For any natural number , the following formula holds:
where (read: ” factorial”). By convention, and .
Proof. Let the set consist of elements. Writing any permutation of is essentially assigning each element a unique number from 1 to . Choose an element from . There are ways to assign it a number. Next, choose element — there are remaining choices. Continuing this reasoning, the last unchosen element has exactly one available number. By the generalized product rule:
Statement. In how many ways can 8 rooks be placed on a chessboard so that no two attack each other?
Solution. For no two rooks to attack each other, there must be exactly one rook on each row and each column. Let be the column number where the rook on the first row stands, be the column for the second row, …, for the eighth row.
Then is a permutation of the set . Each such permutation corresponds to a valid placement of rooks.
Therefore, the number of ways is .
Answer: .
-
In how many ways can 7 different books be arranged on a shelf?
-
In how many ways can 5 people sit in a car if any of them can be the driver?
-
A school has 20 classes and 20 class teachers. In how many ways can class supervision be distributed among the teachers?
-
How many five-digit numbers can be formed using the digits 1, 2, 3, 4, 5 with no digit repeated?