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ó 625 bài tập Combinatorics · Tổ hợp · khối Lớp 12 · Trang 5/42 (Question 61–75)

Điểm: 0/15

Question 61

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 62

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 63

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 64

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 65

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. \]

Question 66

Dễ · +10 điểm

Đề: AMC 12 2001 · Question 6 · Lớp 10–12

A telephone number has the form $ABC - DEF - GHIJ$, where each letter represents a different digit. The digits in each part of the number are in decreasing order; that is, $A > B > C$, $D > E > F$, and $G > H > I > J$. Furthermore, $D, E$, and $F$ are consecutive even digits; $G, H, I$, and $J$ are consecutive odd digits; and $A + B + C = 9$. Find $A$.

Chọn đáp án

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

Đáp án: $8$

All 10 digits $0, 1, 2, \dots, 9$ are used exactly once. The consecutive odd digits $G > H > I > J$ are 4 odd digits chosen from $\{1, 3, 5, 7, 9\}$. Thus $GHIJ$ is either $9, 7, 5, 3$ (leaving 1 as the remaining odd digit) or $7, 5, 3, 1$ (leaving 9 as the remaining odd digit). The three consecutive even digits $D > E > F$ must be either $8, 6, 4$ or $6, 4, 2$ or $4, 2, 0$. The remaining three digits form the set $\{A, B, C\}$ with $A > B > C$ and $A + B + C = 9$. If $GHIJ$ leaves 9, then 9 would have to be in $\{A, B, C\}$, but $A + B + C = 9$ with three distinct non-negative digits would require $9 + B + C = 9 \implies B + C = 0$, which is impossible since the digits are distinct. Thus, $GHIJ = 9, 7, 5, 3$, leaving 1 as the odd digit. Therefore, 1 must be one of $\{A, B, C\}$. Since 1 is in $\{A, B, C\}$, the other two digits in $\{A, B, C\}$ must be even digits whose sum is $9 - 1 = 8$. The even digits available (outside $D, E, F$) that sum to 8: The pair of distinct even digits summing to 8 can be $\{8, 0\}$ or $\{6, 2\}$. If $\{A, B, C\} = \{8, 0, 1\}$, then the remaining even digits are $\{6, 4, 2\}$, which are consecutive even digits for $DEF = 6, 4, 2$. This satisfies all conditions! Here, $\{A, B, C\} = \{8, 1, 0\}$, so $A = 8, B = 1, C = 0$, and $A + B + C = 9$. If $\{A, B, C\} = \{6, 2, 1\}$, then the remaining even digits are $\{8, 4, 0\}$, which are not consecutive. Thus $A = 8$.

Question 67

Dễ · +10 điểm

Đề: AMC 12 2003 · Question 8 · Lớp 10–12

What is the probability that a randomly drawn positive factor of 60 is less than 7?

Chọn đáp án

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

Đáp án: $\dfrac{1}{2}$

The prime factorization of 60 is $60 = 2^2 \cdot 3^1 \cdot 5^1$. The total number of positive factors of 60 is \[ (2 + 1)(1 + 1)(1 + 1) = 3 \times 2 \times 2 = 12. \] The positive factors of 60 in increasing order are: \[ 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60. \] The factors strictly less than 7 are $\{1, 2, 3, 4, 5, 6\}$, which are 6 factors. The probability of drawing a factor less than 7 is \[ \dfrac{6}{12} = \dfrac{1}{2}. \]

Question 68

Dễ · +10 điểm

Đề: AMC 12 2004 · Question 3 · Lớp 10–12

For how many ordered pairs of positive integers $(x, y)$ is $x + 2y = 100$?

Chọn đáp án

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

Đáp án: $49$

We solve for $x$: \[ x = 100 - 2y. \] For $x$ and $y$ to be positive integers, we must have $y \geqslant 1$ and: \[ 100 - 2y > 0 \implies 2y < 100 \implies y < 50. \] Thus, $y$ can be any integer from $1$ to $49$. For each such $y$, there is a unique corresponding positive integer $x$. Therefore, there are $49$ such ordered pairs.

Question 69

Dễ · +10 điểm

Đề: AMC 12 2004 · Question 29 · Lớp 10–12

An integer $x$, with $10 \leqslant x \leqslant 99$, is to be chosen. If all choices are equally likely, what is the probability that at least one digit of $x$ is a $7$?

Chọn đáp án

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

Đáp án: $\dfrac{1}{5}$

The total number of two-digit integers from $10$ to $99$ is: \[ 99 - 10 + 1 = 90. \] We count how many of these integers contain at least one digit equal to $7$: The tens digit can be $7$: there are $10$ such integers ($70, 71, \dots, 79$). The units digit can be $7$: there are $9$ such integers ($17, 27, 37, 47, 57, 67, 77, 87, 97$). The number $77$ is included in both lists. By the principle of inclusion-exclusion, the number of two-digit integers with at least one digit $7$ is: \[ 10 + 9 - 1 = 18. \] Therefore, the probability is: \[ \dfrac{18}{90} = \dfrac{1}{5}. \]

Question 70

Dễ · +10 điểm

Đề: AMC 12 2012B · Question 8 · Lớp 10–12

A dessert chef prepares the dessert for every day of a week starting with Sunday. The dessert each day is either cake, pie, ice cream, or pudding. The same dessert may not be served two days in a row. There must be cake on Friday because of a birthday. How many different dessert menus for the week are possible?

Chọn đáp án

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

Đáp án: $729$

There are $3$ choices for Saturday (anything except cake) and for the same reason $3$ choices for Thursday. Similarly there are $3$ choices for Wednesday, Tuesday, Monday, and Sunday (anything except what was to be served the following day). Therefore there are $3^6 = 729$ possible dessert menus.

Question 71

Dễ · +10 điểm

Đề: AMC 12 2013B · Question 3 · Lớp 10–12

When counting from $3$ to $201$, $53$ is the $51^{\text{st}}$ number counted. When counting backwards from $201$ to $3$, $53$ is the $n^{\text{th}}$ number counted. What is $n$?

Chọn đáp án

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

Đáp án: $149$

The number $201$ is the $1^{\text{st}}$ number counted when proceeding backwards from $201$ to $3$. In turn, $200$ is the $2^{\text{nd}}$ number, $199$ is the $3^{\text{rd}}$ number, and $x$ is the $(202 - x)^{\text{th}}$ number. Therefore $53$ is the $(202 - 53)^{\text{th}}$ number, which is the $149^{\text{th}}$ number.

Question 72

Dễ · +10 điểm

Đề: AMC 12 2014 · Question 3 · Lớp 10–12

Walking down Jane Street, Ralph passed four houses in a row, each painted a different color. He passed the orange house before the red house, and he passed the blue house before the yellow house. The blue house was not next to the yellow house. How many orderings of the colored houses are possible?

Chọn đáp án

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

Đáp án: $3$

Let the houses be denoted by their colors: Orange ($O$), Red ($R$), Blue ($B$), Yellow ($Y$). We must have $O$ before $R$ ($O < R$) and $B$ before $Y$ ($B < Y$). Without the adjacency restriction, among the $4! = 24$ total orderings of four distinct elements, by symmetry exactly $\dfrac{1}{2}$ have $O < R$ and $\dfrac{1}{2}$ have $B < Y$, so: \[ \dfrac{24}{2 \times 2} = 6\text{ orderings}. \] Now we subtract the orderings where $B$ is directly next to $Y$. Since $B < Y$, $B$ next to $Y$ means the block $BY$ appears as a single unit. Treating $(BY)$ as one item along with $O$ and $R$, we have $3$ items: $O, R, (BY)$. The number of permutations of these $3$ items with $O < R$ is: \[ \dfrac{3!}{2} = 3\text{ orderings}. \] (Explicitly, these are $BY-O-R$, $O-BY-R$, $O-R-BY$). Subtracting these, the number of allowed orderings where $B$ is not next to $Y$ is: \[ 6 - 3 = 3. \] (The $3$ valid orderings are $B-O-Y-R$, $B-O-R-Y$, $O-B-R-Y$).

Question 73

Dễ · +10 điểm

Đề: AMC 12 2014 · Question 26 · Lớp 10–12

Leah has $13$ coins, all of which are pennies and nickels. If she had one more nickel than she has now, then she would have the same number of pennies and nickels. How much money does Leah have, in cents?

Chọn đáp án

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

Đáp án: $37$

Let $p$ be the number of pennies and $n$ be the number of nickels Leah has. We are given: $$p + n = 13 \qquad \text{ and } \qquad n + 1 = p.$$ Substituting $p = n + 1$ into the first equation gives $(n + 1) + n = 13 \implies 2n = 12 \implies n = 6$, and hence $p = 7$.

The total value of $7$ pennies and $6$ nickels is $7(1) + 6(5) = 37\text{ cents}$.

Question 74

Dễ · +10 điểm

Đề: AMC 12 2017A · Question 5 · Lớp 10–12

At a gathering of $30$ people, there are $20$ people who all know each other and $10$ people who know no one. People who know each other hug, and people who do not know each other shake hands. How many handshakes occur?

Chọn đáp án

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

Đáp án: $245$

Every pair of people either hugs or shakes hands. The total number of pairs of people among the $30$ attendees is \[ C_{30}^2 = \dfrac{30 \times 29}{2} = 435. \] The people who know each other are the $20$ people in the first group, and any two people in this group hug each other. The number of hugs is \[ C_{20}^2 = \dfrac{20 \times 19}{2} = 190. \] Since all other pairs do not know each other and therefore shake hands, the total number of handshakes is \[ 435 - 190 = 245. \]

Question 75

Dễ · +10 điểm

Đề: AMC 12 2017A · Question 6 · Lớp 10–12

Joy has $30$ thin rods, one each of every integer length from $1\text{ cm}$ through $30\text{ cm}$. She places the rods with lengths $3\text{ cm}$, $7\text{ cm}$, and $15\text{ cm}$ on a table. She then wants to choose a fourth rod that she can put with these three to form a quadrilateral with positive area. How many of the remaining rods can she choose as the fourth rod?

Chọn đáp án

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

Đáp án: $17$

Four rods of lengths $a, b, c, d$ can form a quadrilateral with positive area if and only if each side length is strictly less than the sum of the other three. Here the three given lengths are $3, 7, 15$. Let $n$ be the length of the fourth rod in centimeters. Then we must have: $15 < 3 + 7 + n \implies n > 5$. $n < 3 + 7 + 15 \implies n < 25$. Thus $6 \leqslant n \leqslant 24$, giving $24 - 6 + 1 = 19$ possible integer lengths. However, rods of lengths $7\text{ cm}$ and $15\text{ cm}$ have already been chosen and cannot be picked again (the rod of length $3\text{ cm}$ is not in the range $6 \leqslant n \leqslant 24$). Therefore, Joy can choose $19 - 2 = 17$ rods.

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.