Luyện tập / Chủ đề Logic · Tư duy

Luyện tập Logic (Tư duy Logic)

Bài tập suy luận logic, nhận diện quy luật, bài toán cân đo, câu đố chiến thuật và tư duy thuật toán.

Câu đố tư duy

Rèn tư duy hình học và suy luận logic qua 5 loại câu đố tương tác trực quan.

Tangram

Ghép 7 mảnh xoay & lật

Có 923 bài tập Logic · Tư duy · khối Lớp 10 · Trang 14/62 (Question 196–210)

Điểm: 0/15

[Part C · Hard] A network graph $G$ is bipartite (2-colorable) if its vertices can be colored Red and Blue so every edge connects a Red vertex to a Blue vertex. Which structural condition is necessary and sufficient for a graph $G$ to be bipartite?

Chọn đáp án

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

Đáp án: $G$ contains no cycles of odd length

Answer / Đáp án: $G$ contains no cycles of odd length ($G$ không chứa chu trình độ dài lẻ)

Step-by-step (EN): Alternating colors along any cycle requires an even number of steps to return to the starting color; conversely, BFS 2-coloring succeeds on every connected component whenever there is no odd-length cycle ($C_3, C_5, C_7, \dots$).

Giải chi tiết (VI): Khi đi dọc một chu trình và đổi màu luân phiên Đỏ – Xanh, ta chỉ quay lại đúng màu ban đầu nếu chu trình có độ dài chẵn. Ngược lại, nếu đồ thị không có chu trình lẻ ($C_3, C_5, \dots$), thuật toán duyệt chiều rộng BFS luôn tô $2$ màu thành công.

Computational Thinking / Tư duy Máy tính: Bipartite Graphs & König's Odd-Cycle Theorem (Đồ thị hai phía & Kiểm tra 2-màu bằng BFS).

Alice and Bob play a game starting with a pile of $2026$ stones. Taking turns (Alice goes first), a player may remove $1, 2, 3,$ or $4$ stones on their turn. The player who takes the last stone wins. How many stones must Alice remove on her very first move to guarantee a win?

Chọn đáp án

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

Đáp án: $1$

  • Điểm cần lưu ý: Mỗi cặp lượt đi (Alice + Bob) có thể luôn giữ tổng số sỏi bốc đi bằng $1 + 4 = 5$ viên! Vậy vị trí thua là các bội số của $5$!
  • Cách suy luận: Vì $2026 = 5 \times 405 + 1$ chia $5$ dư $1$, ở nước đầu tiên Alice chỉ cần bốc đúng $1$ viên để đẩy số sỏi còn lại về $2025$ (bội của $5$). Từ đó hễ Bob bốc $k$ viên ($1 \leqslant k \leqslant 4$), Alice bốc $5 - k$ viên và chắc chắn ăn viên cuối cùng!

What is the smallest positive integer $n$ such that every digit of $15n$ is either $0$ or $8$?

Chọn đáp án

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

Đáp án: $592$

  • Điểm cần lưu ý: Số $M = 15n$ phải vừa chia hết cho $5$ (tận cùng bằng $0$, không thể bằng $8$), vừa chia hết cho $3$ (tổng các chữ số chia hết cho $3$, nên phải có ít nhất $3$ chữ số $8$ vì $\gcd(8{,}3)=1$)!
  • Cách suy luận: Số nhỏ nhất chỉ gồm các chữ số $8, 0$ chia hết cho cả $3$ và $5$ là $8880$. Khi đó giá trị nhỏ nhất của $n$ là $8880 \div 15 = 592$.

Question 199

Cực khó · +50 điểm

Đề: AIME 2012 Session II · Question 11 · Lớp 9–12

Let $f_1(x) = \dfrac{2}{3} - \dfrac{3}{3x+1}$, and for $n \geqslant 2$, define $f_n(x) = f_1(f_{n-1}(x))$. The value of $x$ that satisfies $f_{1001}(x) = x - 3$ can be expressed in the form $\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: $8$

Note that for $x \ne \dfrac{2}{3}$ or $-\dfrac{1}{3}$, $$ \begin{aligned} f_1(x) &= \dfrac{2}{3} - \dfrac{3}{3x+1} = \dfrac{6x-7}{9x+3}, \\ f_2(x) &= f_1(f_1(x)) = \dfrac{6 \cdot \left(\dfrac{6x-7}{9x+3}\right) - 7}{9 \cdot \left(\dfrac{6x-7}{9x+3}\right) + 3} = \dfrac{-3x-7}{9x-6}, \text{ and} \\ f_3(x) &= f_1(f_2(x)) = \dfrac{6 \cdot \left(\dfrac{-3x-7}{9x-6}\right) - 7}{9 \cdot \left(\dfrac{-3x-7}{9x-6}\right) + 3} = x. \end{aligned} $$ Thus it follows that $f_{3k}(x) = x$ for all positive integers $k$. Thus $f_{1001}(x) = f_2(x) = \dfrac{-3x-7}{9x-6} = x-3$, which is equivalent to $9x^2 - 30x + 25 = 0$, and the only solution to this quadratic is $x = \dfrac{5}{3}$. Thus $m + n = 5 + 3 = 8$.

Question 200

Cực khó · +50 điểm

Đề: AIME 2013 Session I · Question 14 · Lớp 9–12

For $\pi \leqslant \theta < 2\pi$, let \[ P = \dfrac{1}{2}\cos\theta - \dfrac{1}{4}\sin 2\theta - \dfrac{1}{8}\cos 3\theta + \dfrac{1}{16}\sin 4\theta + \dfrac{1}{32}\cos 5\theta - \dfrac{1}{64}\sin 6\theta - \dfrac{1}{128}\cos 7\theta + \dots \] and \[ Q = 1 - \dfrac{1}{2}\sin\theta - \dfrac{1}{4}\cos 2\theta + \dfrac{1}{8}\sin 3\theta + \dfrac{1}{16}\cos 4\theta - \dfrac{1}{32}\sin 5\theta - \dfrac{1}{64}\cos 6\theta + \dfrac{1}{128}\sin 7\theta + \dots \] so that $\dfrac{P}{Q} = \dfrac{2\sqrt{2}}{7}$. Then $\sin\theta = -\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: $36$

Notice that $$ \begin{aligned} Q + iP &= 1 + \dfrac{1}{2}(-\sin\theta + i\cos\theta) + \dfrac{1}{4}(-\cos 2\theta - i\sin 2\theta) + \dfrac{1}{8}(\sin 3\theta - i\cos 3\theta) + \cdots \\ &= 1 + \dfrac{1}{2}ie^{i\theta} + \dfrac{1}{4}i^2e^{2i\theta} + \dfrac{1}{8}i^3e^{3i\theta} + \cdots \\ &= \dfrac{2}{2 - ie^{i\theta}} = \dfrac{2(2 + \sin\theta + i\cos\theta)}{5 + 4\sin\theta}. \end{aligned} $$ Thus $P = \dfrac{2\cos\theta}{5 + 4\sin\theta}$ and $Q = \dfrac{4 + 2\sin\theta}{5 + 4\sin\theta}$. So \[ \dfrac{2\sqrt{2}}{7} = \dfrac{P}{Q} = \dfrac{\cos\theta}{2 + \sin\theta}, \] \[ 32 + 32\sin\theta + 8\sin^2\theta = 49 - 49\sin^2\theta, \] \[ 57\sin^2\theta + 32\sin\theta - 17 = (3\sin\theta - 1)(19\sin\theta + 17) = 0, \] and \[ \sin\theta = -\dfrac{17}{19} \text{ or } \dfrac{1}{3}. \] The requested sum for the negative solution is $17 + 19 = 36$.

Question 201

Cực khó · +50 điểm

Đề: AIME 2015 Session I · Question 14 · Lớp 9–12

For each integer $n \geqslant 2$, let $A(n)$ be the area of the region in the coordinate plane defined by the inequalities $1 \leqslant x < n$ and $0 \leqslant y \leqslant x \lfloor\sqrt{x}\rfloor$, where $\lfloor\sqrt{x}\rfloor$ is the greatest integer not exceeding $\sqrt{x}$. Find the number of values of $n$ with $2 \leqslant n \leqslant 1000$ for which $A(n)$ is an integer.

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

Đáp án: $483$

For positive integer $k$, if $1 \leqslant k^2 \leqslant x < (k+1)^2$, then $x\lfloor\sqrt{x}\rfloor = kx$. The inequalities $n \leqslant x < n + 1$ and $0 \leqslant y \leqslant x\lfloor\sqrt{x}\rfloor$ define a trapezoid with height $1$ and average of the bases $\dfrac{(2n+1)k}{2}$. The area of this trapezoid, which is $A(n+1) - A(n)$, is an integer if $k$ is even and a half-integer if $k$ is odd. Hence for even values of $k$, $A(n+1)$ is an integer if and only if $A(n)$ is an integer, and for odd values of $k$, $A(n+1)$ is an integer if and only if $A(n)$ is not an integer. For $k \geqslant 1$, let $I_k$ be the set of the $2k+1$ integers $n$ such that $k^2 < n \leqslant (k+1)^2$. If $k$ is even, the values of $A(n)$ for $n \in I_k$ are either all integers or all non-integers, according to whether $A(k^2)$ is or is not an integer. Furthermore, if $k$ is odd, the values of $A(n)$ for $n \in I_k$ alternate between integers and non-integers, beginning with an integer if $A(k^2)$ is a non-integer and vice versa. Because $A(2)$ is not an integer, the number of integer values of $A(n)$ for elements of each set $I_k$ can be calculated by considering $k$ modulo $4$: $k = 4j-3$, $4j-2$, $4j-1$, $4j$. Because $A((4j-3)^2)$ is an integer, the values of $A(n)$ for $n \in I_{4j-3}$ alternate between integers and non-integers, beginning and ending with a non-integer. Thus there are $4j-3$ integer values of $A(n)$ for $n \in I_{4j-3}$. Because $A((4j-2)^2)$ is not an integer, there are no integer values of $A(n)$ for $n \in I_{4j-2}$. Because $A((4j-1)^2)$ is not an integer, the values of $A(n)$ for $n \in I_{4j-1}$ alternate between integers and non-integers, beginning and ending with an integer. Thus there are $4j$ integer values of $A(n)$ for $n \in I_{4j-1}$. Because $A((4j)^2)$ is an integer, all $8j+1$ values of $A(n)$ for $n \in I_{4j}$ are integers. Thus for $j \geqslant 1$, there are $16j-2$ integer values of $A(n)$ for $(4j-3)^2 < n \leqslant (4j+1)^2$. The number of integer values of $A(n)$ for $2 \leqslant n \leqslant 29^2$ is \[ \sum_{j=1}^7 (16j - 2) = 16\left(\dfrac{7 \cdot 8}{2}\right) - 7 \cdot 2 = 434. \] There are additionally $29$ integer values of $A(n)$ for $29^2 < n \leqslant 30^2$, none for $30^2 < n \leqslant 31^2$, and $20$ for $31^2 < n \leqslant 1000$, for a total of $434 + 29 + 20 = 483$ integer values of $A(n)$.

Question 202

Cực khó · +50 điểm

Đề: AIME 2015 Session II · Question 12 · Lớp 9–12

There are $2^{10} = 1024$ possible 10-letter strings in which each letter is either an A or a B. Find the number of such strings that do not have more than $3$ adjacent letters that are identical.

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

Đáp án: $548$

Let $a_k$, $b_k$, and $c_k$ be the number of acceptable strings of length $k$ that begin with exactly $1$, $2$, or $3$ of the same letter, respectively. For $k \geqslant 3$, $b_{k+1} = a_k$, $c_{k+1} = b_k$, and $a_{k+1} = a_k + b_k + c_k = a_k + a_{k-1} + a_{k-2}$. Using the fact that $a_1 = 2$, $a_2 = 2$, and $a_3 = 4$, the recursion can be used to find the first $11$ terms of the sequence $a_n$ to be $2, 2, 4, 8, 14, 26, 48, 88, 162, 298,$ and $548$. The number of strings of length $10$ that satisfy the requirement is $a_{10} + b_{10} + c_{10} = a_{11} = 548$.

Question 203

Cực khó · +50 điểm

Đề: AIME 2016 Session II · Question 15 · Lớp 9–12

For $1 \leqslant i \leqslant 215$ let $a_i = \dfrac{1}{2^i}$ and $a_{216} = \dfrac{1}{2^{215}}$. Let $x_1, x_2, \dots, x_{216}$ be positive real numbers such that \[ \sum_{i=1}^{216} x_i = 1 \text{ and } \sum_{1 \leqslant i < j \leqslant 216} x_i x_j = \dfrac{107}{215} + \sum_{i=1}^{216} \dfrac{a_i x_i^2}{2(1 - a_i)}. \] The maximum possible value of $x_2 = \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: $863$

For $1 \leqslant i \leqslant 216$, let $b_i = \sqrt{1 - a_i}$. Because $\sum_{i=1}^{216} a_i = 1$, it follows that $\sum_{i=1}^{216} b_i^2 = 215$. Also, if $\{x_i\}$ is a sequence of positive real numbers with $\sum_{i=1}^{216} x_i = 1$, then \[ \sum_{1 \leqslant i < j \leqslant 216} 2x_i x_j = \left(\sum_{i=1}^{216} x_i\right)^2 - \sum_{i=1}^{216} x_i^2 = 1 - \sum_{i=1}^{216} x_i^2. \] Observe that for each $i$, $\left(\dfrac{x_i}{b_i}\right)^2 - \dfrac{2x_i}{215} + \left(\dfrac{b_i}{215}\right)^2 = \left(\dfrac{x_i}{b_i} - \dfrac{b_i}{215}\right)^2 \geqslant 0$, and thus summing over $1 \leqslant i \leqslant 216$ yields \[ \sum_{i=1}^{216} \left(\left(\dfrac{x_i}{b_i}\right)^2 - \dfrac{2x_i}{215} + \left(\dfrac{b_i}{215}\right)^2\right) \geqslant 0. \] Because $\sum_{i=1}^{216} b_i^2 = 215$ and $\sum_{i=1}^{216} x_i = 1$, it follows that \[ \sum_{i=1}^{216} \left(\dfrac{x_i}{b_i}\right)^2 - \dfrac{2}{215} + \dfrac{1}{215^2} \cdot 215 \geqslant 0, \] which is equivalent to \[ \dfrac{1}{215} \leqslant \sum_{i=1}^{216} \left(\dfrac{x_i}{b_i}\right)^2 = \sum_{i=1}^{216} \dfrac{x_i^2}{1 - a_i}. \] Hence \[ \sum_{1 \leqslant i < j \leqslant 216} 2x_i x_j = 1 - \sum_{i=1}^{216} x_i^2 \leqslant \dfrac{214}{215} + \sum_{i=1}^{216} \dfrac{x_i^2}{1 - a_i} - \sum_{i=1}^{216} x_i^2 = \dfrac{214}{215} + \sum_{i=1}^{216} \dfrac{a_i x_i^2}{1 - a_i}, \] so \[ \sum_{1 \leqslant i < j \leqslant 216} x_i x_j \leqslant \dfrac{107}{215} + \sum_{i=1}^{216} \dfrac{a_i x_i^2}{2(1 - a_i)}. \] Equality occurs in this inequality if and only if for each $i$, $\dfrac{x_i}{b_i} - \dfrac{b_i}{215} = 0$ or $x_i = \dfrac{1 - a_i}{215}$. Therefore such a sequence $\{x_i\}$ is unique and $x_2 = \dfrac{1 - a_2}{215} = \dfrac{1 - \dfrac{1}{4}}{215} = \dfrac{3}{860}$. The requested sum is $3 + 860 = 863$.

Question 204

Cực khó · +50 điểm

Đề: AIME 2018 Session I · Question 11 · Lớp 9–12

Find the least positive integer $n$ such that when $3^n$ is written in base $143$, its two right-most digits in base $143$ are $01$.

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

Đáp án: $195$

The condition that the two right-most digits of $3^n$ in base $143$ are $01$ is equivalent to: \[ 3^n \equiv 1 \pmod{143^2}. \] Notice that $143 = 11 \times 13$, so $143^2 = 11^2 \times 13^2 = 121 \times 169$. Since $\gcd(121, 169) = 1$, by the Chinese Remainder Theorem this is equivalent to the system: \[ 3^n \equiv 1 \pmod{121} \text{ and } 3^n \equiv 1 \pmod{169}. \] We find the order of $3$ modulo $121$ and modulo $169$: Modulo $11$: $3^1 = 3, 3^2 = 9, 3^3 = 27 \equiv 5, 3^4 \equiv 4, 3^5 \equiv 1 \pmod{11}$. Thus $ord_{11}(3) = 5$. Now $3^5 = 243 = 2 \times 121 + 1 \equiv 1 \pmod{121}$. Therefore, $ord_{121}(3) = 5$. Modulo $13$: $3^3 = 27 \equiv 1 \pmod{13}$, so $ord_{13}(3) = 3$. Testing powers of $3^3 = 27$ modulo $169$: $27 \not\equiv 1 \pmod{169}$. By the Lifting the Exponent Lemma (or binomial theorem), since $ord_{13}(3) = 3$ and $3^3 - 1 = 26$ has exactly one factor of $13$, the order modulo $13^2$ is \[ ord_{169}(3) = 3 \times 13 = 39. \] For $3^n \equiv 1 \pmod{143^2}$, $n$ must be a common multiple of $5$ and $39$. The least such positive integer is \[ n = lcm(5, 39) = 5 \times 39 = 195. \]

Ten numbers are written around a circle so that every number equals the average of its two immediate neighbours. If one of the numbers is $7$, what is the sum of all ten numbers?

Chọn đáp án

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

Đáp án: $70$

  • Điểm cần lưu ý: Xét phần tử lớn nhất $M$ trên vòng tròn: một số chỉ có thể bằng trung bình cộng của hai số $\leqslant M$ khi và chỉ khi cả hai số hàng xóm đó cũng bằng $M$!
  • Cách suy luận: Lan truyền quanh vòng tròn, toàn bộ $10$ số bắt buộc phải bằng hệt nhau và cùng bằng $7$! Vậy tổng của $10$ số là $10 \times 7 = 70$.

On a $8 \times 8$ chessboard, the two opposite corner squares (top-left and bottom-right) are sawed off, leaving $62$ unit squares. You have plenty of $1 \times 2$ dominoes, each covering $2$ adjacent squares. What is the maximum number of dominoes you can place on the remaining $62$-square board without overlap?

Chọn đáp án

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

Đáp án: $30$

  • Điểm cần lưu ý: Hai góc đối diện qua đường chéo chính của bàn cờ $8 \times 8$ có cùng màu! Cắt bỏ $2$ ô Trắng thì trên bàn còn $32$ ô Đen và chỉ có $30$ ô Trắng!
  • Cách suy luận: Mỗi quân domino $1 \times 2$ luôn phủ $1$ ô Đen và $1$ ô Trắng. Do chỉ còn $30$ ô Trắng, không thể đặt tới $31$ quân mà tối đa chỉ đặt được $30$ quân domino (và dễ dàng đặt được $30$ quân bằng cách chừa $2$ ô Đen).

Twenty-five people sit in a $5 \times 5$ grid of chairs. Simultaneously, every person stands up and moves to an orthogonally adjacent chair (up, down, left, or right — no diagonal moves). Can every chair be occupied by exactly one person again?

Chọn đáp án

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

Đáp án: No, it is completely impossible

  • Điểm cần lưu ý: Tô màu đen – trắng cho $25$ chiếc ghế như bàn cờ vua: có $13$ ghế Đen và $12$ ghế Trắng!
  • Cách suy luận: Mỗi bước di chuyển sang ghế kề cạnh sẽ đổi màu ghế (Đen $\leftrightarrow$ Trắng). Do đó cả $13$ người đang ngồi ghế Đen đều phải chuyển sang ngồi ghế Trắng — điều này bất khả thi vì cả phòng chỉ có $12$ ghế Trắng!

Question 208

Dễ · +10 điểm

Đề: AMC 12 2000 · Question 2 · Lớp 10–12

$2000(2000^{2000}) =$

Chọn đáp án

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

Đáp án: $2000^{2001}$

Using the exponent rule $a^1 \cdot a^b = a^{1+b}$, we have \[ 2000(2000^{2000}) = 2000^1 \cdot 2000^{2000} = 2000^{1+2000} = 2000^{2001}. \] All other options are strictly greater than $2000^{2001}$.

Question 209

Dễ · +10 điểm

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

The mean of three numbers is 10 more than the least of the numbers and 15 less than the greatest. The median of the three numbers is 5. What is their sum?

Chọn đáp án

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

Đáp án: $30$

Let the three numbers in non-decreasing order be $x \leqslant 5 \leqslant y$. The median is 5. Let $m$ be the mean of the three numbers. We are given that the least number is $x = m - 10$ and the greatest number is $y = m + 15$. The mean of the three numbers is \[ m = \dfrac{x + 5 + y}{3} = \dfrac{(m - 10) + 5 + (m + 15)}{3} = \dfrac{2m + 10}{3}. \] Multiply by 3: \[ 3m = 2m + 10 \implies m = 10. \] The sum of the three numbers is \[ 3m = 3 \cdot 10 = 30. \] (The three numbers are $0, 5, 25$.)

Question 210

Dễ · +10 điểm

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

According to the standard convention for exponentiation, \[ 2^{2^{2^2}} = 2^{\left(2^{\left(2^2\right)}\right)} = 2^{2^4} = 2^{16} = 65{,}536. \] If the order in which the exponentiations are performed is changed, how many other values are possible?

Chọn đáp án

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

Đáp án: $1$

No matter how the exponentiations are performed, the bottom or first pair of $2^2$ always yields 4. Depending on parenthesization, the possible groupings of $a^{b^{c^d}}$ for four 2s are: $2^{\left(2^{\left(2^2\right)}\right)} = 2^{2^4} = 2^{16} = 65{,}536$. $\left(2^2\right)^{\left(2^2\right)} = 4^4 = 256$. $\left(\left(2^2\right)^2\right)^2 = \left(4^2\right)^2 = 16^2 = 256$. $2^{\left(\left(2^2\right)^2\right)} = 2^{4^2} = 2^{16} = 65{,}536$. $\left(2^{\left(2^2\right)}\right)^2 = \left(2^4\right)^2 = 16^2 = 256$. The only possible values are $65{,}536$ and 256. Since $65{,}536$ is the standard value, there is only 1 other possible value (namely 256).

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.