Olympiad Maths Prep

Track / Stage 6 / 312 of 400 #1312 of 2000

Problem 1312

National olympiad, first round
Combinatorics Difficulty 6.6 Find the answer

assume that k,n are two positive integer knk\leq ncount the number of permutation { 1,,n} \{\ 1,\dots ,n\}\ st for any 1i,jk1\leq i,j\leq kand any positive integer m we have fm(i)jf^m(i)\neq j (fmf^m meas iterarte function,)

Official solution

To solve this problem, we need to count the number of permutations of the set {1,2,,n}\{1, 2, \ldots, n\} such that for any 1i,jk1 \leq i, j \leq k and any positive integer mm, we have fm(i)jf^m(i) \neq j. This means that the first kk elements must be in separate cycles in the permutation.

1. Understanding the Problem:
- We are given a set {1,2,,n}\{1, 2, \ldots, n\}.
- We need to count permutations where the first kk elements are in separate cycles.
- This means that for any 1i,jk1 \leq i, j \leq k and iji \neq j, fm(i)jf^m(i) \neq j for any positive integer mm.

2. Permutations and Cycles:
- A permutation can be represented as a product of disjoint cycles.
- For the first kk elements to be in separate cycles, each of these elements must be in a cycle of length 1 (i.e., a fixed point) or in a cycle that does not include any other of the first kk elements.

3. Counting the Permutations:
- We need to count the number of ways to arrange the first kk elements such that they are in separate cycles.
- The remaining nkn-k elements can be arranged in any way.

4. Deriving the Formula:
- The number of ways to arrange the first kk elements such that they are in separate cycles is given by the number of derangements of kk elements, denoted by DkD_k.
- A derangement is a permutation where no element appears in its original position.
- The number of derangements of kk elements is given by:
Dk=k!i=0k(1)ii! D_k = k! \sum_{i=0}^{k} \frac{(-1)^i}{i!}
- The remaining nkn-k elements can be arranged in (nk)!(n-k)! ways.

5. Combining the Results:
- The total number of permutations is the product of the number of derangements of the first kk elements and the number of permutations of the remaining nkn-k elements:
Total permutations=Dk(nk)! \text{Total permutations} = D_k \cdot (n-k)!

The final answer is Dk(nk)!\boxed{D_k \cdot (n-k)!}.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.