A dark drawer contains $9$ red socks, $9$ blue socks, $9$ green socks, and $3$ more color(s) with $9$ socks each (6 colors in total). What is the minimum number of socks you must pull out without looking to guarantee a matching pair?
Xem đáp án và lời giải
Đáp án: $7$
Theo nguyên lý Dirichlet, trong trường hợp xấu nhất ta rút được $6$ chiếc khác màu nhau. Chiếc thứ $7$ chắc chắn trùng màu với một chiếc đã rút.
A box contains socks of $3$ different colors (at least $10$ of each). What is the minimum number of socks to draw in the dark to guarantee at least $3$ socks of the same color?
Xem đáp án và lời giải
Đáp án: $7$
Theo nguyên lý Dirichlet, số tất ít nhất phải lấy là $3 \times (3 - 1) + 1 = 7$.
In a class, $16$ students are in the Chess Club, $14$ are in the Art Club, $6$ belong to both clubs, and $3$ belong to neither club. How many students are in the class altogether?
Xem đáp án và lời giải
Đáp án: $27$
Điểm cần lưu ý: Tránh cộng trùng $6$ bạn tham gia cả hai câu lạc bộ, và nhớ cộng $3$ bạn đứng ngoài!
Cách suy luận: Số bạn tham gia ít nhất một CLB là $16 + 14 - 6 = 24$ bạn. Cộng thêm $3$ bạn không tham gia CLB nào: $24 + 3 = 27$ học sinh.
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$.
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 $3$?
Xem đáp án và lời giải
Đáp án: $15$
Tổng số nút là $1 + 2 + 4 + \cdots + 2^{3} = 2^{4} - 1 = 15$.
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$.
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$.
Bonus question. A frog wants to travel exactly 11 squares forward. Each jump moves either 1 square or 3 squares. How many different sequences of jumps are possible?
Xem đáp án và lời giải
Đáp án: $41$
Gọi W(k) là số cách đi đúng k ô, W(0)=1. Xét bước cuối: W(k)=W(k−1)+W(k−3), với W(k)=0 khi k âm. Tính lần lượt đến k=11 được 41.