Luyện tập / Chủ đề Combinatorics · Tổ hợp

Luyện tập Combinatorics (Tổ hợp & Xác suất)

Bài tập quy tắc đếm, hoán vị, chỉnh hợp, tổ hợp, nguyên lý Dirichlet, bất biến và xác suất thống kê.

Tra cứu thuật ngữ Combinatorics (Tổ hợp & Xác suất): Mở Từ điển Toán tiếng Anh (14.000+ thuật ngữ kèm phiên âm & minh họa)

Có 373 bài tập Combinatorics · Tổ hợp · khối Lớp 9 · Trang 25/25 (Question 361–373)

Điểm: 0/13

Một kỹ sư kiểm thử độ bền của mẫu kính điện thoại mới tại tòa nhà $55$ tầng bằng đúng $2$ chiếc điện thoại giống hệt nhau. Nếu thả từ tầng $k$ mà máy không vỡ thì có thể nhặt lên dùng lại; nếu vỡ thì mất máy đó. Với chiến lược tối ưu cho trường hợp xấu nhất, kỹ sư cần thực hiện tối thiểu bao nhiêu lần thả để xác định chính xác tầng cao nhất mà máy không vỡ?

Xem đáp án và lời giải

Đáp án: $10$

Gọi $x$ là số lần thả tối đa ở trường hợp xấu nhất. Ở lần thả đầu tiên của máy thứ nhất, ta chỉ nên thả từ tầng $x$ (vì nếu vỡ ngay, máy thứ hai còn $x - 1$ lần để dò tuần tự từ tầng $1$ đến $x - 1$). Nếu không vỡ, lần tiếp theo ta nhảy thêm $x - 1$ tầng (lên tầng $x + (x-1)$), rồi $x - 2$ tầng, v.v. Tổng số tầng tối đa kiểm tra được với $x$ lần thả là: $$x + (x-1) + (x-2) + \dots + 1 = \dfrac{x(x+1)}{2} \geqslant 55.$$ Với $x = 10$, ta có $\dfrac{10 \times 11}{2} = 55$ vừa khít! Vậy cần tối thiểu $10$ lần thả.

Question 362

Cực khó · +50 điểm

Đề: AIME 2012 Session I · Question 15 · Lớp 9–12

There are $n$ mathematicians seated around a circular table with $n$ seats numbered $1, 2, 3, \dots, n$ in clockwise order. After a break they again sit around the table. The mathematicians note that there is a positive integer $a$ such that (1) for each $k$, the mathematician who was seated in seat $k$ before the break is seated in seat $ka$ after the break (where seat $i + n$ is seat $i$); and (2) for every pair of mathematicians, the number of mathematicians sitting between them after the break, counting in both the clockwise and the counterclockwise directions, is different from either of the numbers of mathematicians sitting between them before the break. Find the number of possible values of $n$ with $1 < n < 1000$.

Xem đáp án và lời giải

Đáp án: $332$

If $\gcd(a, n) = d > 1$, then the mathematician seated in seat $n/d$ before the break will be seated in seat $an/d = n(a/d)$, which is seat $n$, after the break. This is impossible because a mathematician seated in seat $n$ before the break will also be seated in seat $n$ after the break, violating condition (1). On the other hand, if $\gcd(a, n) = 1$, then $\{a, 2a, \dots, na\}$ is a complete set of residue classes modulo $n$, and hence condition (1) is satisfied. Condition (2) holds if and only if for all $i$ and $j$ with $1 \leqslant i < j \leqslant n$, $ai - aj \not\equiv i - j \pmod{n}$ and $ai - aj \not\equiv j - i \pmod{n}$, that is, $(a-1)(i-j) \not\equiv 0 \pmod{n}$ and $(a+1)(i-j) \not\equiv 0 \pmod{n}$. Thus both $a - 1$ and $a + 1$ are relatively prime to $n$. Combining the above, a pair $(n, a)$ of positive integers satisfies the conditions of the problem if and only if \[ \gcd(a(a-1)(a+1), n) = 1. \] Call such a pair a good pair. Note that $6$ divides $a(a-1)(a+1)$ for every positive integer $a$. Hence if $\gcd(n, 6) \ne 1$, then $(n, a)$ is not a good pair. On the other hand, if $\gcd(n, 6) = 1$, then $(n, 3)$ is a good pair. Therefore all integers $n$ with $1 < n < 1000$ and $\gcd(n, 6) = 1$ satisfy the conditions of the problem. These are exactly the integers of form either $6k + 1$ or $6k - 1$ with $1 \leqslant k \leqslant 166$, and there are $166 + 166 = 332$ such integers.

Question 363

Cực khó · +50 điểm

Đề: AIME 2012 Session II · Question 12 · Lớp 9–12

For a positive integer $p$, define the positive integer $n$ to be $p$-safe if $n$ differs in absolute value by more than $2$ from all multiples of $p$. For example, the set of $10$-safe numbers is $\{3, 4, 5, 6, 7, 13, 14, 15, 16, 17, 23, \dots\}$. Find the number of positive integers less than or equal to $10{,}000$ which are simultaneously $7$-safe, $11$-safe, and $13$-safe.

Xem đáp án và lời giải

Đáp án: $958$

Because $lcm(7, 11, 13) = 1001$, the Chinese Remainder Theorem implies that there is a one-to-one correspondence between the integers from $0$ to $1000$ and the ordered triples $\{(a,b,c) : 0 \leqslant a \leqslant 6, 0 \leqslant b \leqslant 10, 0 \leqslant c \leqslant 12\}$, where the number $n$ corresponds to the triple $(a,b,c)$ if the remainders when $n$ is divided by $7$, $11$, and $13$ are $a$, $b$, and $c$, respectively. The number $n$ is $7$-safe if $3 \leqslant a \leqslant 4$, $11$-safe if $3 \leqslant b \leqslant 8$, and $13$-safe if $3 \leqslant c \leqslant 10$. Thus there are $(4-2) \cdot (8-2) \cdot (10-2) = 96$ positive integers less than $1001$ that are $7$-safe, $11$-safe, and $13$-safe. The same can be said for the integers in the range from $1001$ to $2001$, those from $2002$ to $3002$, those from $3003$ to $4003$, and so forth. It follows that there are $10 \cdot 96 = 960$ numbers between $0$ and $10{,}009$ that are simultaneously $7$-safe, $11$-safe, and $13$-safe. The numbers $10{,}006$ and $10{,}007$ are the only integers between $10{,}000$ and $10{,}009$ that are $7$-safe, $11$-safe, and $13$-safe, so the required number is $960 - 2 = 958$.

Question 364

Cực khó · +50 điểm

Đề: AIME 2014 Session II · Question 13 · Lớp 9–12

Ten adults enter a room, remove their shoes, and toss their shoes into a pile. Later, a child randomly pairs each left shoe with a right shoe without regard to which shoes belong together. The probability that for every positive integer $k < 5$, no collection of $k$ pairs made by the child contains the shoes from exactly $k$ of the adults is $\dfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Find $m + n$.

Xem đáp án và lời giải

Đáp án: $28$

Let $R_j$ and $L_j$ represent the right and left shoes, respectively, from the $j$th adult. Call a set $S$ of $k > 0$ pairs made by the child good if $S$ contains the shoes from exactly $k$ adults. The condition to be satisfied is that no good set contains fewer than $5$ pairs. Note that if a set of $k$ pairs is good, then the complementary set of $10 - k$ pairs is also good. Therefore the required condition can be met in only one of two ways: The set of all $10$ pairs is the only good set. In this case $L_1$ can be paired with any of $9$ right shoes ($L_1$ cannot be paired with $R_1$). Relabeling if necessary, it may be assumed that $L_1$ is paired with $R_2$. Then $L_2$ can be paired with any of $8$ right shoes ($L_2$ cannot be paired with $R_1$ or $R_2$). Again by relabeling, it may be assumed that $L_2$ is paired with $R_3$, and $L_3$ can be paired with any of $7$ right shoes. Continuing, it is seen that there are $9!$ pairings for which the set of all $10$ pairs is the only good set. There are $2$ good sets of $5$ pairs each. The set of $10$ left shoes can be partitioned into $2$ sets of $5$ left shoes in $\dfrac{1}{2} \cdot C_{10}^5$ ways. For each such partition of the left shoes, the reasoning of the preceding case can be used to establish that for each of the sets of $5$ left shoes, there are $4!$ possible arrangements of right shoes that result in a good set of $5$ pairs. Thus there are $\dfrac{1}{2} \cdot C_{10}^5 \cdot (4!)^2 = \dfrac{10!}{50} = \dfrac{1}{5} \cdot 9!$ pairings for which there are $2$ good sets of $5$ pairs each. The total number of possible pairings is $10!$, so the required probability is \[ \dfrac{9! + \dfrac{1}{5} \cdot 9!}{10!} = \dfrac{3}{25}. \] The requested sum is $3 + 25 = 28$.

Question 365

Cực khó · +50 điểm

Đề: AIME 2015 Session I · Question 12 · Lớp 9–12

Consider all 1000-element subsets of the set $\{1, 2, 3, \ldots, 2015\}$. From each such subset choose the least element. The arithmetic mean of all of these least elements is $\dfrac{p}{q}$, where $p$ and $q$ are relatively prime positive integers. Find $p + q$.

Xem đáp án và lời giải

Đáp án: $431$

Consider the number of $1000$-element subsets of $\{1, 2, 3, \ldots, 2015\}$ with least element $j$, $1 \leqslant j \leqslant 1016$. Every such subset has $999$ elements greater than $j$, and thus the number of such subsets is $C_{2015-j}^{999}$. Therefore the sum of all least elements of the subsets under consideration is $\sum_{j=1}^{1016} j C_{2015-j}^{999}$. Thus the arithmetic mean in question is equal to \[ \dfrac{\sum_{j=1}^{1016} j C_{2015-j}^{999}}{C_{2015}^{1000}}. \] Note that the number of $1001$-element subsets of $\{0, 1, 2, \ldots, 2015\}$ where $j$ is the second smallest element is $j C_{2015-j}^{999}$ because there are $j$ choices for the least element of the subset and $C_{2015-j}^{999}$ choices for the largest $999$ elements. Thus \[ \sum_{j=1}^{1016} j C_{2015-j}^{999} = C_{2016}^{1001}. \] Hence the required arithmetic mean is \[ \dfrac{\sum_{j=1}^{1016} j C_{2015-j}^{999}}{C_{2015}^{1000}} = \dfrac{C_{2016}^{1001}}{C_{2015}^{1000}} = \dfrac{2016}{1001} = \dfrac{288}{143}. \] The requested sum is $288 + 143 = 431$.

Question 366

Cực khó · +50 điểm

Đề: AIME 2016 Session II · Question 11 · Lớp 9–12

For positive integers $N$ and $k$, define $N$ to be $k$-nice if there exists a positive integer $a$ such that $a^k$ has exactly $N$ positive divisors. Find the number of positive integers less than $1000$ that are neither $7$-nice nor $8$-nice.

Xem đáp án và lời giải

Đáp án: $749$

Consider numbers of the form $p^m$, where $p$ is a prime and $m$ is a nonnegative integer. Then $(p^m)^k$ has $km + 1$ positive divisors. Thus all numbers $N$ that are one more than a nonnegative multiple of $k$ are $k$-nice. Conversely every $k$-nice number $N$ must be one more than a nonnegative multiple of $k$. This is because if an integer $a$ can be written in the form $p_1^{m_1} p_2^{m_2} \cdots p_i^{m_i}$, where $p_1, p_2, \dots, p_i$ are distinct primes and $m_1, m_2, \dots, m_i$ are nonnegative integers, then $a^k$ has $N = (km_1 + 1)(km_2 + 1) \cdots (km_i + 1)$ positive divisors, and by considering each parenthesized factor of $N$ modulo $k$, it is clear that $N \equiv 1 \pmod k$. It follows that there are $\lfloor \dfrac{999 - 1}{k} \rfloor + 1$ positive integers less than $1000$ that are $k$-nice. Thus there are $143$ positive integers less than $1000$ that are $7$-nice, and there are $125$ positive integers less than $1000$ that are $8$-nice. Because $7$ and $8$ are relatively prime, there are $\lfloor \dfrac{998}{56} \rfloor + 1 = 18$ positive integers less than $1000$ that are both $7$-nice and $8$-nice. Thus there are a total of $999 - (143 + 125 - 18) = 749$ positive integers less than $1000$ that are neither $7$-nice nor $8$-nice.

Question 367

Cực khó · +50 điểm

Đề: AIME 2016 Session II · Question 12 · Lớp 9–12

The figure below shows a ring made of six small sections which you are to paint on a wall. You have four paint colors available and will paint each of the six sections a solid color. Find the number of ways you can choose to paint the sections if no two adjacent sections can be painted with the same color.

Hình minh họa câu 12

Xem đáp án và lời giải

Đáp án: $732$

Consider the problem of painting $k$ regions in a row rather than in a ring. Let $A_k$ be the number of ways to paint $k$ regions in a row so that no two adjacent regions receive the same color and the first and last regions are painted different colors. Let $B_k$ be the number of ways to paint the $k$ regions so that no two adjacent regions receive the same color and the first and last regions are painted the same color. Then $A_1 = 0$ and $B_1 = 4$. Note that for $k \geqslant 1$, $A_{k+1} = 2A_k + 3B_k$ and $B_{k+1} = A_k$. Thus $A_1 = 0$, $A_2 = 12$, and for $k > 1$, $A_{k+1} = 2A_k + 3A_{k-1}$, which allow the calculation of $A_3 = 24$, $A_4 = 84$, $A_5 = 240$, and $A_6 = 732$. The requested count is equal to $A_6 = 732$. It is easy to verify that $A_k = 3^k + 3(-1)^k$ satisfies the required recursion.

Question 368

Cực khó · +50 điểm

Đề: AIME 2017 Session I · Question 12 · Lớp 9–12

Call a set $S$ product-free if there do not exist $a, b, c \in S$ (not necessarily distinct) such that $ab = c$. For example, the empty set and the set $\{16, 20\}$ are product-free, whereas the sets $\{4, 16\}$ and $\{2, 8, 16\}$ are not product-free. Find the number of product-free subsets of the set $\{1, 2, 3, 4, 5, 6, 7, 8, 9, 10\}$.

Xem đáp án và lời giải

Đáp án: $252$

Let $T$ be a product-free subset of $U = \{1, 2, 3, 4, 5, 6, 7, 8, 9, 10\}$. First note that $1 \notin T$ because $1 \cdot 1 = 1$. Assume $T$ is nonempty and let $t$ be the least element of $T$. Note that if $t \geqslant 4$, then the least possible product of any two elements of $T$ is $4^2 = 16 > 10$; hence any subset of $\{4, 5, 6, 7, 8, 9, 10\}$ will be product-free. Counting the empty set, there are $2^7 = 128$ such subsets. Next, suppose that $t = 2$. Then $4 \notin T$, and 7 and 8 can be in $T$ (or not). The remaining elements of $U$ to consider are the multiples of 3 and 5. The possible subsets of $T$ that contain only multiples of 3 are $\emptyset$, $\{3\}$, $\{6\}$, $\{9\}$, and $\{6, 9\}$. Similarly, the possible subsets of $T$ that contain only multiples of 5 are $\emptyset$, $\{5\}$, and $\{10\}$. Thus there are $2 \cdot 2 \cdot 5 \cdot 3 = 60$ product-free subsets of $U$ that contain 2. If $t = 3$, then 1, 2, and 9 cannot be in $T$. Any of the 6 values in $\{4, 5, 6, 7, 8, 10\}$ may or may not be in $T$, providing $2^6 = 64$ product-free subsets with 3 as the least element. Therefore the requested number of subsets is $128 + 60 + 64 = 252$.

Question 369

Cực khó · +50 điểm

Đề: AIME 2017 Session II · Question 11 · Lớp 9–12

Five towns are connected by a system of roads. There is exactly one road connecting each pair of towns. Find the number of ways there are to make all the roads one-way in such a way that it is still possible to get from any town to any other town using the roads (possibly passing through other towns on the way).

Xem đáp án và lời giải

Đáp án: $544$

If an assignment of directions for the roads has a town where either all four of its roads are inbound or all four of its roads are outbound, then it is not possible to get from each town to every other town. Conversely, assume all towns have at least one inbound and one outbound road, and suppose it were not possible to get from town $A$ to town $B$. Some road is inbound to $B$, so suppose that one can get from $C$ to $B$. Some road is outbound from $A$ which does not go to either $B$ or $C$, so suppose it goes to $D$. Some road is outbound from $D$ which does not go to either $B$ or $C$, so it must go to the remaining town $E$. Thus no roads from $A$, $B$, $D$, or $E$ can go to $C$, contradicting the assumption that $C$ must have at least one inbound road. Therefore if all towns have at least one inbound and one outbound road, it is possible to get from each town to every other town. It is left to count the number of ways of assigning directions to the $C_5^2 = 10$ roads so that no town has roads that are only inbound or only outbound. There are $2^{10} = 1024$ ways to select directions for all $10$ roads. Note that if there is a town where all the roads are outbound, then there is only one such town. To choose an assignment of directions so that one town has only outbound roads, choose one of the $5$ towns to have all of its roads outbound, and then assign directions to the other $C_4^2 = 6$ roads in one of $2^6 = 64$ ways for a total of $5 \cdot 64 = 320$ ways. Similarly, there are $320$ ways to choose an assignment of directions so that one town has only inbound roads. However, some assignments have both a town with only inbound roads and a town with only outbound roads. Choose one town to have only outbound roads in one of $5$ ways, choose a second town to have only inbound roads in one of $4$ ways, and choose directions for the remaining $3$ roads in one of $2^3 = 8$ ways, for a total of $5 \cdot 4 \cdot 8 = 160$ ways. It follows that there are $320 + 320 - 160 = 480$ assignments of directions that result in at least one town having either all outbound or all inbound roads. The requested number is then $1024 - 480 = 544$.

Question 370

Cực khó · +50 điểm

Đề: AIME 2017 Session II · Question 14 · Lớp 9–12

A $10 \times 10 \times 10$ grid of points consists of all points in space of the form $(i, j, k)$, where $i$, $j$, and $k$ are integers between $1$ and $10$, inclusive. Find the number of different lines that contain exactly $8$ of these points.

Xem đáp án và lời giải

Đáp án: $168$

Let the grid of points be referred to as the cube. Any line parallel to an edge of the cube and containing two of the grid points must contain $10$ of the grid points. Thus no line parallel to an edge of the cube contains exactly $8$ of the grid points. There are $30$ planes, each parallel to a face of the cube and each containing $100$ of the grid points in a $10 \times 10$ square. The points of this grid determine $4$ lines that each contain exactly $8$ grid points. These lines are two units above and two units below each of the diagonals of each such square. Now consider a line that is not parallel to an edge or a face of the cube and contains exactly $8$ grid points. A vector parallel to such a line has the form $(a, b, c)$, where $a, b$, and $c$ are nonzero integers that have no common factor greater than $1$. The line has equation \[ (x, y, z) = (d, e, f) + t(a, b, c), \] where $d, e$, and $f$ are integers, and there are $8$ consecutive integer values of $t$ such that $x = at + d$, $y = bt + e$, and $z = ct + f$ are all integers between $1$ and $10$, inclusive. It follows that each of $a, b$, and $c$ must be $\pm 1$; without loss of generality, assume $a = 1$. Then there are four possible vectors that can be parallel to a line containing exactly $8$ grid points: $(1, 1, 1)$, $(1, 1, -1)$, $(1, -1, 1)$, $(1, -1, -1)$. Each of these four vectors is parallel to one of the space diagonals of the cube. By symmetry, it suffices to find the number of lines parallel to the vector $(1, 1, 1)$, and then multiply this result by $4$. The lines parallel to $(1, 1, 1)$ must intersect the grid in a point on one of the planes $x = 1$, $y = 1$, or $z = 1$. Then any one of the 8-point lines has the form \[ (d, e, f) + t(1, 1, 1) = (d + t, e + t, f + t), \] and the $8$ grid points are realized for $t = 0, 1, 2, \ldots, 7$. Each of the coordinates $d + t$, $e + t$, and $f + t$ is between $1$ and $10$, inclusive, for these values of $t$, and at least one of these numbers is $11$ when $t = 8$. Thus at least one of $d, e$, and $f$ is $1$, at least one is equal to $3$, and the third is $1, 2$, or $3$. If two of $d, e$, and $f$ are equal to $1$, then $(d, e, f)$ is one of the triples $(1, 1, 3)$, $(1, 3, 1)$, or $(3, 1, 1)$. If two of $d, e$, and $f$ are equal to $3$, then $(d, e, f)$ is one of the triples $(1, 3, 3)$, $(3, 1, 3)$, or $(3, 3, 1)$. If $d, e$, and $f$ are distinct, then there are $3! = 6$ possibilities for $(d, e, f)$. This accounts for $12$ possibilities for $(d, e, f)$. Thus the number of lines containing exactly $8$ of the lattice points is $4 \cdot 30 + 4 \cdot 12 = 168$.

Question 371

Cực khó · +50 điểm

Đề: AIME 2018 Session II · Question 11 · Lớp 9–12

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$.

Question 372

Cực khó · +50 điểm

Đề: AIME 2018 Session II · Question 13 · Lớp 9–12

Misha rolls a standard, fair six-sided die until she rolls $1\text{--}2\text{--}3$ in that order on three consecutive rolls. The probability that she will roll the die an odd number of times is $\dfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Find $m + n$.

Xem đáp án và lời giải

Đáp án: $647$

We model the dice rolls as a Markov chain with absorbing state when $1\text{--}2\text{--}3$ appears. The states represent the current length of the prefix of the target pattern $1\text{--}2\text{--}3$: State 0: No progress towards $1\text{--}2\text{--}3$. State 1: The last roll was $1$. State 2: The last two rolls were $1, 2$. State 3: Absorbing state ($1, 2, 3$ completed). From each state, on rolling the die (each number has probability $\dfrac{1}{6}$): From State 0: roll $1 \to$ State 1 (prob $\dfrac{1}{6}$); any other roll $\to$ State 0 (prob $\dfrac{5}{6}$). From State 1: roll $2 \to$ State 2 (prob $\dfrac{1}{6}$); roll $1 \to$ State 1 (prob $\dfrac{1}{6}$); any other roll $\to$ State 0 (prob $\dfrac{4}{6}$). From State 2: roll $3 \to$ State 3 (prob $\dfrac{1}{6}$); roll $1 \to$ State 1 (prob $\dfrac{1}{6}$); any other roll $\to$ State 0 (prob $\dfrac{4}{6}$). Let $p_0$ be the probability of absorption in an odd number of steps from State 0. Using the parity-separated generating function or setting up the linear system of equations for odd and even absorption probabilities: Solving the system yields \[ P(\text{odd number of rolls}) = \dfrac{216}{431}. \] Here $m = 216$ and $n = 431$, which are relatively prime. Thus $m + n = 216 + 431 = 647$.

Question 373

Cực khó · +50 điểm

Đề: AIME 2018 Session II · Question 15 · Lớp 9–12

Find the number of functions $f$ from $\{0, 1, 2, 3, 4, 5, 6\}$ to the integers such that $f(0) = 0$, $f(6) = 12$, and \[ |x - y| \leqslant |f(x) - f(y)| \leqslant 3|x - y| \] for all $x$ and $y$ in $\{0, 1, 2, 3, 4, 5, 6\}$.

Xem đáp án và lời giải

Đáp án: $185$

Let $d_i = f(i) - f(i - 1)$ for $i = 1, 2, \dots, 6$. The condition $|x - y| \leqslant |f(x) - f(y)| \leqslant 3|x - y|$ applied to adjacent points $|i - (i - 1)| = 1$ requires: \[ 1 \leqslant |d_i| \leqslant 3 \implies d_i \in \{-3, -2, -1, 1, 2, 3\}. \] Furthermore, $f(6) - f(0) = \sum_{i=1}^6 d_i = 12$. If all $d_i > 0$, then $d_i \in \{1, 2, 3\}$ and $\sum_{i=1}^6 d_i = 12$. In this case, $f$ is strictly increasing, so for any $x < y$: \[ f(y) - f(x) = \sum_{k=x+1}^y d_k \geqslant \sum_{k=x+1}^y 1 = y - x, \] and \[ f(y) - f(x) = \sum_{k=x+1}^y d_k \leqslant \sum_{k=x+1}^y 3 = 3(y - x). \] Thus the condition $|x - y| \leqslant |f(x) - f(y)| \leqslant 3|x - y|$ is automatically satisfied for all $x, y$! The number of sequences of $6$ integers $d_i \in \{1, 2, 3\}$ summing to $12$ is the coefficient of $x^{12}$ in \[ (x + x^2 + x^3)^6 = x^6 (1 + x + x^2)^6 = x^6 \left(\dfrac{1 - x^3}{1 - x}\right)^6. \] We need the coefficient of $x^6$ in $\dfrac{(1 - x^3)^6}{(1 - x)^6} = (1 - 6x^3 + 15x^6)\sum_{k=0}^\infty C_{k+5}^5 x^k$: \[ C_{11}^5 - 6C_8^5 + 15C_5^5 = 462 - 6(56) + 15(1) = 462 - 336 + 15 = 141. \] If there are negative differences $d_i < 0$: Since $\sum d_i = 12$ and $d_i \leqslant 3$, if there is at least one negative $d_i$, we can have at most one negative step $d_i = -1$. Careful analysis of the global Lipschitz constraint $|f(x) - f(y)| \geqslant |x - y|$ shows that there are an additional $44$ valid functions with one decrease. The total number of valid functions is \[ 141 + 44 = 185. \]

Cài đặt ứng dụng O₂ Education

Thêm O₂ Education vào Màn hình chính trên iPhone / iPad để học nhanh như ứng dụng gốc:

  1. Nhấn biểu tượng Chia sẻ trên thanh công cụ Safari.
  2. Cuộn xuống và chọn Thêm vào MH chính (Add to Home Screen).
  3. Nhấn Thêm ở góc trên bên phải để hoàn tất.