Question 1921
A fair coin is tossed $6$ times. How many outcome sequences contain at least two Heads?
Xem đáp án và lời giải
Đáp án: $57$
Lấy tổng $2^{6}$ trừ trường hợp $0$ ngửa ($1$) và $1$ ngửa ($6$): $2^{6} - 1 - 6 = 57$.
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.
A fair coin is tossed $6$ times. How many outcome sequences contain at least two Heads?
Đáp án: $57$
Lấy tổng $2^{6}$ trừ trường hợp $0$ ngửa ($1$) và $1$ ngửa ($6$): $2^{6} - 1 - 6 = 57$.
Each of the $4$ circular islands shown is to be painted using one of $4$ available colors so that any two islands connected by a bridge have different colors. In how many different ways can all $4$ islands be painted?
Đáp án: $48$
Ba đảo $A, B, C$ đôi một nối nhau có $4 \times 3 \times 2$ cách tô; đảo $D$ nối với cả $B$ và $C$ (đã khác màu nhau) nên có $2$ cách tô. Tổng cộng $48$ cách.
How many ordered triples $(x, y, z)$ of positive integers satisfy $x + y + z = 13$?
Đáp án: $66$
Theo bài toán chia kẹo Euler: $\binom{13-1}{3-1} = \binom{12}{2} = 66$.
How many triples of non-negative integers $(x, y, z)$ satisfy $x + y + z = 8$?
Đáp án: $45$
Áp dụng bài toán chia kẹo Euler: số nghiệm nguyên không âm là $\binom{8 + 3 - 1}{3 - 1} = \binom{10}{2} = 45$.
[Part C · Hard] In a directed web-link graph, a Strongly Connected Component (SCC) is a maximal set of pages where every page in the set can reach every other page in the set via directed links (a single page with no cycle is an SCC of size $1$). How many SCCs decompose the $7$-page directed graph shown?
Trên đồ thị liên kết web có hướng, một Thành phần liên thông mạnh (SCC) là tập cực đại các trang mà từ bất kỳ trang nào trong tập cũng đi tới được mọi trang khác trong tập theo chiều mũi tên (một đỉnh không thuộc chu trình nào tạo thành $1$ SCC kích thước $1$). Đồ thị $7$ đỉnh dưới đây phân rã thành bao nhiêu SCC? (Chỉ điền số)
Đáp án: $3$
Answer / Đáp án: 3
Step-by-step (EN): Identify directed cycles and cross-component bridges (Tarjan's / Kosaraju's algorithm):
1) {1, 4, 5} form a directed cycle 1 -> 4 -> 5 -> 1.
2) {2, 3, 6} form a directed cycle 2 -> 3 -> 6 -> 2. Edges 1 -> 2 and 5 -> 6 go strictly one-way from {1, 4, 5} into {2, 3, 6} with no return edge.
3) {7} only has incoming edge 6 -> 7 and out-degree $0$.
Hence there are exactly $3$ SCCs: {1, 4, 5}, {2, 3, 6}, and {7}.
Giải chi tiết (VI): Phân tích theo thuật toán Kosaraju / Tarjan:
1) Cụm {1, 4, 5} tạo chu trình khép kín 1 -> 4 -> 5 -> 1.
2) Cụm {2, 3, 6} tạo chu trình khép kín 2 -> 3 -> 6 -> 2 (các cạnh 1 -> 2 và 5 -> 6 chỉ đi một chiều từ cụm 1 sang cụm 2, không có chiều ngược lại).
3) Đỉnh {7} không có cạnh đi ra nên đứng riêng $1$ thành phần.
Vậy đồ thị có đúng $3$ SCC.
Computational Thinking / Tư duy Máy tính: Strongly Connected Components — Tarjan / Kosaraju Decomposition (Phân rã thành phần liên thông mạnh).
In a database, $15$ files have only Tag A, $9$ have only Tag B, and $6$ 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: $15 + 6 + 9 = 30$.
Two fair six-sided dice are rolled. What is the probability that the maximum of the two numbers rolled is exactly $5$?
Đáp án: $\dfrac{1}{4}$
A bag contains $4$ red marbles and $2$ blue marbles. Two marbles are drawn at random without replacement. What is the probability that the two marbles have different colors?
Đáp án: $\dfrac{8}{15}$
Five coins are flipped at once. What is the probability of getting at least $4$ Heads?
Đáp án: $\dfrac{3}{16}$
Four distinct vertices of a regular hexagon are chosen uniformly at random. What is the probability that these four vertices form the vertices of a rectangle?
Đáp án: $\dfrac{1}{5}$
Grid #4-1 is a $5\times 5$ square grid colored like a chessboard, starting with green at the top-left corner. How many green squares are there?
Đáp án: $13$
Grid #4-2 is a $4\times 4$ square grid colored like a chessboard, starting with green at the top-left corner. How many green squares are there?
Đáp án: $8$
How many distinct permutations can be made using all the letters of the word BANANA?
Đáp án: $60$
Answer / Đáp án: 60
There are $6$ letters with A repeated $3$ times and N repeated $2$ times:
$$\dfrac{6!}{3!\,2!\,1!} = \dfrac{720}{12} = 60.$$
Nguồn học liệu gốc: Everything Maths Grade 11 & 12 · Siyavula & FHSST Contributors (CC BY 3.0, github.com/Siyavula/siyavula-books).
Four boys and three girls sit in a row of $7$ chairs. In how many ways can they be seated if all three girls must sit together as a single block?
Đáp án: $720$
Answer / Đáp án: 720
Treat the $3$ girls as $1$ unit, giving $4 + 1 = 5$ units arranged in $5! = 120$ ways, and the girls permute internally in $3! = 6$ ways: $120 \times 6 = 720$.
Nguồn học liệu gốc: Everything Maths Grade 11 & 12 · Siyavula & FHSST Contributors (CC BY 3.0, github.com/Siyavula/siyavula-books).
From $5$ mathematicians and $4$ physicists, a research panel of $4$ people must include at least $3$ mathematicians. How many panels are possible?
Đáp án: $45$
Answer / Đáp án: 45
Total $= 40 + 5 = 45$.
Nguồn học liệu gốc: Everything Maths Grade 11 & 12 · Siyavula & FHSST Contributors (CC BY 3.0, github.com/Siyavula/siyavula-books).