Question 106
How many ordered triples of positive integers $(x, y, z)$ satisfy $x + y + z = 13$?
Xem đáp án và lời giải
Đáp án: $66$
By stars and bars for positive integers: $\binom{13-1}{3-1} = \binom{12}{2} = 66$.
Luyện tập / Chủ đề Combinatorics · Tổ hợp
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ê.
Đăng nhập để lưu tiến độ và tích lũy điểm trên bảng xếp hạng.
How many ordered triples of positive integers $(x, y, z)$ satisfy $x + y + z = 13$?
Đáp án: $66$
By stars and bars for positive integers: $\binom{13-1}{3-1} = \binom{12}{2} = 66$.
How many ordered triples of positive integers $(x, y, z)$ satisfy $x + y + z = 6$?
Đáp án: $10$
By stars and bars for positive integers: $\binom{6-1}{3-1} = \binom{5}{2} = 10$.
How many ordered triples of positive integers $(x, y, z)$ satisfy $x + y + z = 14$?
Đáp án: $78$
By stars and bars for positive integers: $\binom{14-1}{3-1} = \binom{13}{2} = 78$.
Vẫn trên thanh ray thẳng ở bài trước, giả sử ban đầu người ta đặt $12$ robot mini ở $12$ vị trí phân biệt, mỗi robot hướng sang trái hoặc sang phải và trượt cùng vận tốc không đổi; hễ hai robot chạm nhau là cả hai lập tức quay đầu ngược lại. Hỏi từ lúc bắt đầu đến khi mọi robot đều rơi khỏi thanh ray, có thể xảy ra nhiều nhất bao nhiêu lần va chạm giữa hai robot?
Đáp án: $36$
Lối mòn dễ mắc: Vẽ sơ đồ va chạm trực tiếp rất dễ đếm sót vì một robot có thể bật đi bật lại nhiều lần.
Đổi câu hỏi (Chìa khóa): Nhìn dưới góc độ «đi xuyên thẳng qua nhau»: hai vệt chuyển động chỉ cắt nhau (tạo ra đúng $1$ va chạm) khi và chỉ khi robot đứng bên trái đi sang phải còn robot đứng bên phải đi sang trái!
Lời giải gọn đẹp: Để số lần cắt nhau là lớn nhất, toàn bộ $k$ robot ở nửa bên trái phải cùng hướng sang phải, và toàn bộ $12 - k$ robot ở nửa bên phải phải cùng hướng sang trái. Khi đó mỗi vệt bên trái đều xuyên qua mọi vệt bên phải đúng $1$ lần, tạo ra $k(12 - k)$ va chạm. Tích hai số có tổng bằng $12$ đạt giá trị lớn nhất khi $k = 6$: $$6 \times 6 = 36\text{ (lần va chạm)}.$$
A bag contains four pieces of paper, each labeled with one of the digits $1$, $2$, $3$ or $4$, with no repeats. Three of these pieces are drawn, one at a time without replacement, to construct a three-digit number. What is the probability that the three-digit number is a multiple of $3$?
Đáp án: $\dfrac{1}{2}$
A number is a multiple of three when the sum of its digits is a multiple of $3$. If the number has three distinct digits drawn from the set $\{1, 2, 3, 4\}$, then the sum of the digits will be a multiple of three when the digits are $\{1, 2, 3\}$ or $\{2, 3, 4\}$. That means the number formed is a multiple of three when, after the three draws, the number remaining in the bag is $1$ or $4$. The probability of this occurring is $\dfrac{1}{4} + \dfrac{1}{4} = \dfrac{1}{2}$.
A full binary tree has $1$ root at level $0$, $2$ nodes at level $1$, and doubles at every next level. How many nodes are there in total from level $0$ to level $5$?
Đáp án: $63$
Tổng số nút là $1 + 2 + 4 + \cdots + 2^{5} = 2^{6} - 1 = 63$.
In a single-elimination (knockout) tournament with $21$ teams, how many matches must be played in total to determine the champion?
Đáp án: $20$
Mỗi trận đấu loại đúng $1$ đội. Để còn lại $1$ đội vô địch từ $21$ đội cần loại $21 - 1 = 20$ đội, tức là $20$ trận.
How many triangles in total can be seen in the figure?
Đáp án: $15$
Mỗi cặp tia bất kỳ trong $6$ tia tạo thành đúng $1$ tam giác với cạnh đáy, nên có $\dfrac{6 \times 5}{2} = 15$ tam giác.
At a meeting, $10$ students each shake hands with every other student exactly once. How many handshakes take place in total?
Đáp án: $45$
Số cái bắt tay là $\dfrac{10 \times (10 - 1)}{2} = 45$.
An image row is compressed with Run-Length Encoding as 2W 4B 4W (meaning 2 White, 4 Black, 4 White). How many pixels are in this row?
Đáp án: $10$
Tổng số ô ảnh bằng $2 + 4 + 4 = 10$.
In a database, $11$ files have only Tag A, $11$ have only Tag B, and $8$ have both. How many files match the search query Tag A OR Tag B?
Đáp án: $30$
Phép OR lấy hợp của hai tập: $11 + 8 + 11 = 30$.
The Venn diagram shows the number of students in Chess only ($11$), Coding only ($8$), both clubs ($7$), while $4$ students joined neither club. How many students are in the class altogether?
Đáp án: $30$
The Venn diagram shows the number of students in Chess only ($11$), Coding only ($7$), both clubs ($9$), while $5$ students joined neither club. How many students are in the class altogether?
Đáp án: $32$
The Venn diagram shows the number of students in Chess only ($11$), Coding only ($8$), both clubs ($6$), while $3$ students joined neither club. How many students are in the class altogether?
Đáp án: $28$
The Venn diagram shows the number of students in Chess only ($11$), Coding only ($8$), both clubs ($11$), while $6$ students joined neither club. How many students are in the class altogether?
Đáp án: $36$