(Đề #3) Lớp có $28$ học sinh, bạn nào cũng thích ít nhất một trong hai môn Toán hoặc Văn. Có $20$ bạn thích Toán và $17$ bạn thích Văn. Hỏi có bao nhiêu bạn thích cả hai môn?
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$?
Xem đáp án và lời giải
Đáp án: $63$
Tổng số nút là $1 + 2 + 4 + \cdots + 2^{5} = 2^{6} - 1 = 63$.
A $5 \times 5$ square grid is colored like a chessboard, starting with an orange square at the top-left corner. How many orange squares are there in total?
Xem đáp án và lời giải
Đáp án: $13$
Bảng $5 \times 5$ có $25$ ô, số ô màu cam là $\lceil 25 / 2 \rceil = 13$.
Moving only to the right ($\to$) and upward ($\uparrow$) along the grid lines, how many different routes lead from $A$ to $B$?
Xem đáp án và lời giải
Đáp án: $10$
Điền số cách đi tại từng giao điểm từ trái sang phải, từ dưới lên trên (mỗi nút $=$ nút bên trái $+$ nút bên dưới): hàng 1: $(1 , 1 , 1 , 1)$ ; hàng 2: $(1 , 2 , 3 , 4)$ ; hàng 3: $(1 , 3 , 6 , 10)$. Vậy đến $B$ có $10$ đường đi.
Mia has $4$ different shirts, $5$ pairs of socks, and $3$ different crowns. How many different outfits (1 shirt, 1 pair of socks, 1 crown) can she choose?
A $6 \times 6$ square grid is colored like a chessboard, starting with an orange square at the top-left corner. How many orange squares are there in total?
Xem đáp án và lời giải
Đáp án: $18$
Bảng $6 \times 6$ có $36$ ô, số ô màu cam là $\lceil 36 / 2 \rceil = 18$.
Nối $n$ đỉnh được đánh số $1, 2, \dots, n$ bởi $n-1$ cạnh để tạo thành một đồ thị cây có nhãn. Theo công thức Cayley, với $n = 5$ đỉnh có tất cả bao nhiêu cây khác nhau?
Xem đáp án và lời giải
Đáp án: 125 cây ($5^3$)
Công thức cây của Cayley (Cayley's Formula):
Số cây có nhãn khác nhau trên $n$ đỉnh phân biệt là:
$$T_n = n^{n-2}$$
Kiểm tra:
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 $4$?
Xem đáp án và lời giải
Đáp án: $31$
Tổng số nút là $1 + 2 + 4 + \cdots + 2^{4} = 2^{5} - 1 = 31$.