Question 76
Find the number of permutations of $1, 2, 3, 4, 5, 6$ such that for each $k$ with $1 \leqslant k \leqslant 5$, at least one of the first $k$ terms of the permutation is greater than $k$.
Xem đáp án và lời giải
Đáp án: $461$
Let a permutation of $\{1, 2, \dots, n\}$ be called $k$-stable if the first $k$ elements form a permutation of $\{1, 2, \dots, k\}$. The given condition states that for every $1 \leqslant k \leqslant 5$, the permutation is not $k$-stable. Let $a_n$ be the number of permutations of $\{1, 2, \dots, n\}$ that are not $k$-stable for any $1 \leqslant k < n$. The total number of permutations of $\{1, 2, \dots, n\}$ is $n!$. Any permutation of $\{1, \dots, n\}$ has a unique minimal $k$ ($1 \leqslant k \leqslant n$) for which it is $k$-stable. Once the first $k$ elements form a set $\{1, \dots, k\}$ that has no smaller stable prefix (which occurs in $a_k$ ways), the remaining $n - k$ elements can be arranged in $(n - k)!$ ways. Therefore, by partitioning all $n!$ permutations according to the minimal $k$: \[ n! = \sum_{k=1}^n a_k (n - k)!. \] We compute $a_n$ recursively: $n = 1$: $1! = a_1 (0)! \implies a_1 = 1$. $n = 2$: $2! = a_1 (1)! + a_2 (0)! \implies 2 = 1 + a_2 \implies a_2 = 1$. $n = 3$: $3! = a_1(2!) + a_2(1!) + a_3 \implies 6 = 1(2) + 1(1) + a_3 \implies a_3 = 3$. $n = 4$: $4! = a_1(3!) + a_2(2!) + a_3(1!) + a_4 \implies 24 = 1(6) + 1(2) + 3(1) + a_4 = 11 + a_4 \implies a_4 = 13$. $n = 5$: $5! = 1(24) + 1(6) + 3(2) + 13(1) + a_5 = 49 + a_5 \implies a_5 = 120 - 49 = 71$. $n = 6$: $6! = 1(120) + 1(24) + 3(6) + 13(2) + 71(1) + a_6 = 120 + 24 + 18 + 26 + 71 + a_6 = 259 + a_6 \implies a_6 = 720 - 259 = 461$. Thus, the number of such permutations is $461$.