Luyện tập / Chủ đề Number Theory · Số học

Luyện tập Number Theory (Số học)

Bài tập tính chia hết, số nguyên tố, ước và bội, phép chia có dư, đồng dư, chữ số tận cùng và phương trình nghiệm nguyên.

Có 909 bài tập Number Theory · Số học · khối Lớp 10 · Trang 17/61 (Question 241–255)

Điểm: 0/15

Question 241

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

Đề: AMC 10 2018A · Question 25 · Lớp 8–10

For a positive integer $n$ and nonzero digits $a, b,$ and $c$, let $A_n$ be the $n$-digit integer each of whose digits is equal to $a$; let $B_n$ be the $n$-digit integer each of whose digits is equal to $b$; and let $C_n$ be the $2n$-digit (not $n$-digit) integer each of whose digits is equal to $c$. What is the greatest possible value of $a + b + c$ for which there are at least two values of $n$ such that $C_n - B_n = A_n^2$?

Chọn đáp án

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

Đáp án: $18$

Let $R_k = \dfrac{10^k - 1}{9}$ be the repunit of length $k$. Then \[ A_n = a R_n, \quad B_n = b R_n, \quad C_n = c R_{2n} = c \left(\dfrac{10^{2n} - 1}{9}\right) = c R_n (10^n + 1). \] The given equation $C_n - B_n = A_n^2$ becomes \[ c R_n (10^n + 1) - b R_n = a^2 R_n^2. \] Dividing both sides by $R_n \ne 0$: \[ c(10^n + 1) - b = a^2 R_n = a^2 \left(\dfrac{10^n - 1}{9}\right). \] Multiplying by $9$: \[ 9c \cdot 10^n + 9c - 9b = a^2 \cdot 10^n - a^2 \iff (9c - a^2) \cdot 10^n + (9c - 9b + a^2) = 0. \] For this equation to hold for at least two different values of $n$, the polynomial in $10^n$ must vanish identically: \[ 9c - a^2 = 0 \quad \text{and} \quad 9c - 9b + a^2 = 0. \] From $a^2 = 9c$, since $a$ and $c$ are nonzero digits: $c = \dfrac{a^2}{9}$, so $a$ must be a multiple of $3$. Thus $a \in \{3, 6, 9\}$.

  • If $a = 3$: $c = 1$. Then $9(1) - 9b + 9 = 0 \implies 18 = 9b \implies b = 2$.

Here $a + b + c = 3 + 2 + 1 = 6$.

  • If $a = 6$: $c = \dfrac{36}{9} = 4$. Then $9(4) - 9b + 36 = 0 \implies 72 = 9b \implies b = 8$.

Here $b = 8$ is a valid digit, so $a + b + c = 6 + 8 + 4 = 18$.

  • If $a = 9$: $c = \dfrac{81}{9} = 9$. Then $9(9) - 9b + 81 = 0 \implies 162 = 9b \implies b = 18$, which is not a single digit!

Thus the only valid solution with maximal sum is $(a, b, c) = (6, 8, 4)$, which gives \[ a + b + c = 6 + 8 + 4 = 18. \]

Question 242

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

Đề: AMC 10 2018B · Question 23 · Lớp 8–10

How many ordered pairs $(a, b)$ of positive integers satisfy the equation \[ a \cdot b + 63 = 20 \cdot \operatorname{lcm}(a, b) + 12 \cdot \gcd(a, b), \] where $\gcd(a, b)$ denotes the greatest common divisor of $a$ and $b$, and $\operatorname{lcm}(a, b)$ denotes their least common multiple?

Chọn đáp án

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

Đáp án: $2$

Recall the fundamental identity $a \cdot b = \operatorname{lcm}(a, b) \cdot \gcd(a, b)$. Let $L = \operatorname{lcm}(a, b)$ and $G = \gcd(a, b)$. Note that $L$ is always a multiple of $G$, so $L \geqslant G$. The equation becomes \[ LG + 63 = 20L + 12G \iff LG - 20L - 12G + 240 = 240 - 63 = 177. \] Factoring the left side: \[ (L - 12)(G - 20) = 177. \] The prime factorization of $177$ is $3 \times 59$. The positive divisors of $177$ are $1, 3, 59, 177$. Since $G \geqslant 1$ is an integer, $G - 20 \geqslant -19$. We test the possible factorizations:

  • Case 1: $G - 20 = 1 \implies G = 21$. Then $L - 12 = 177 \implies L = 189$.

Check if $G \mid L$: $189 = 9 \times 21$, so $G \mid L$ holds! Here $\dfrac{L}{G} = 9$. We need $a = 21u, b = 21v$ with $\gcd(u, v) = 1$ and $uv = 9$. Since $\gcd(u, v) = 1$, the only pairs are $\{u, v\} = \{1, 9\}$, giving ordered pairs $(21, 189)$ and $(189, 21)$ ($2$ solutions).

  • Case 2: $G - 20 = 3 \implies G = 23$. Then $L - 12 = 59 \implies L = 71$.

$23 \nmid 71$, so no solution.

  • Case 3: $G - 20 = -1 \implies G = 19$. Then $L - 12 = -177 \implies L = -165 < 0$, impossible.
  • Case 4: $G - 20 = -3 \implies G = 17$. Then $L - 12 = -59 \implies L < 0$, impossible.

Thus there are exactly $2$ ordered pairs: $(21, 189)$ and $(189, 21)$.

Question 243

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

Đề: AMC 10 2019A · Question 25 · Lớp 8–10

For how many integers $n$ between $1$ and $50$, inclusive, is $\dfrac{(n^2 - 1)!}{(n!)^n}$ an integer?

Chọn đáp án

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

Đáp án: $34$

Let $A_n = \dfrac{(n^2 - 1)!}{(n!)^n}$. For $n = 1$, $A_1 = \dfrac{0!}{1^1} = 1$ is an integer. For $n$ prime, $(n^2 - 1)!$ contains multiples $n, 2n, \dots, (n - 1)n$, giving $n - 1$ factors of $n$, whereas $(n!)^n$ has $n$ factors of $n$. Hence $A_n$ is not an integer for any prime $n$. For $n = 4$, $15!$ contains $11$ factors of $2$, while $(4!)^4$ contains $12$ factors of $2$, so $A_4$ is not an integer. For any composite $n > 4$, $A_n$ is an integer. Between $1$ and $50$, there are $15$ primes, and $n = 4$ is excluded. Thus, the number of integers is $50 - 15 - 1 = 34$.

Question 244

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

Đề: AMC 10 2020A · Question 24 · Lớp 8–10

Let $n$ be the least positive integer greater than $1000$ for which \[ \gcd(63, n + 120) = 21 \quad \text{and} \quad \gcd(n + 63, 120) = 60. \] What is the sum of the digits of $n$?

Chọn đáp án

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

Đáp án: $18$

From $\gcd(n + 63, 120) = 60$, we can write $n + 63 = 60k$ for some odd positive integer $k$ (since $120 = 2 \cdot 60$, $k$ cannot be even). Thus $n = 60k - 63$. Substituting into the first condition gives \[ n + 120 = 60k + 57 = 3(20k + 19). \] Since $\gcd(63, 3(20k + 19)) = 21 = 3 \cdot 7$, we must have $7 \mid (20k + 19)$ and $3 \nmid (20k + 19)$. Reducing modulo $7$ gives $6k + 5 \equiv 0 \pmod 7 \implies k \equiv 5 \pmod 7$. Combining $k \equiv 5 \pmod 7$ with $k$ odd gives $k \equiv 5 \pmod{14}$. Reducing modulo $3$ gives $2k + 1 \not\equiv 0 \pmod 3 \implies k \not\equiv 1 \pmod 3$. Since $n > 1000$, we require $60k - 63 > 1000 \implies k \geqslant 18$. Testing $k \equiv 5 \pmod{14}$ with $k \geqslant 18$: $k = 19$ fails because $19 \equiv 1 \pmod 3$; the next value $k = 33$ satisfies $33 \equiv 0 \not\equiv 1 \pmod 3$. Therefore $n = 60 \cdot 33 - 63 = 1917$, whose digit sum is $1 + 9 + 1 + 7 = 18$.

Question 245

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

Đề: AMC 10 2020B · Question 24 · Lớp 8–10

How many positive integers $n$ satisfy \[ \dfrac{n + 1000}{70} = \lfloor \sqrt{n} \rfloor? \] (Recall that $\lfloor x \rfloor$ is the greatest integer not exceeding $x$.)

Chọn đáp án

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

Đáp án: $6$

Let $k = \lfloor \sqrt{n} \rfloor$, which is a positive integer. The given equation gives $n = 70k - 1000$, and the definition of the floor function gives $k^2 \leqslant n < (k + 1)^2$. Substituting $n = 70k - 1000$ yields two inequalities:

1. $k^2 \leqslant 70k - 1000 \iff k^2 - 70k + 1000 \leqslant 0 \iff (k - 20)(k - 50) \leqslant 0$, so $20 \leqslant k \leqslant 50$. 2. $70k - 1000 < k^2 + 2k + 1 \iff k^2 - 68k + 1001 > 0 \iff (k - 34)^2 > 1156 - 1001 = 155$.

Since $12^2 = 144 < 155 < 169 = 13^2$, the second inequality holds if and only if $|k - 34| \geqslant 13$, meaning $k \leqslant 21$ or $k \geqslant 47$. Intersecting with $20 \leqslant k \leqslant 50$ leaves $k \in \{20, 21, 47, 48, 49, 50\}$, each yielding a unique positive integer $n = 70k - 1000$. Thus there are $6$ solutions.

Question 246

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

Đề: AMC 10 2021B · Question 25 · Lớp 8–10

Let $S$ be the set of lattice points in the coordinate plane, both of whose coordinates are integers between $1$ and $30$, inclusive. Exactly $300$ points in $S$ lie on or below a line with equation $y = mx$. The possible values of $m$ lie in an interval of length $\dfrac{a}{b}$, where $a$ and $b$ are relatively prime positive integers. What is $a + b$?

Chọn đáp án

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

Đáp án: $85$

A point $(x, y) \in \{1, \ldots, 30\}^2$ lies on or below $y = mx$ if and only if $\dfrac{y}{x} \leqslant m$. Check the slope $m = \dfrac{2}{3}$: the number of points with $y \leqslant \dfrac{2}{3}x$ is $\sum_{x=1}^{30} \left\lfloor \dfrac{2x}{3} \right\rfloor$. In each block of three consecutive integers $x = 3k - 2, 3k - 1, 3k$, the floors are $(2k - 2) + (2k - 1) + 2k = 6k - 3$. Summing over $k = 1, \ldots, 10$ gives \[ \sum_{k=1}^{10} (6k - 3) = 6 \cdot 55 - 30 = 300. \] Since points $(3k, 2k)$ ($1 \leqslant k \leqslant 10$) lie on $y = \dfrac{2}{3}x$, any $m < \dfrac{2}{3}$ leaves fewer than $300$ points on or below the line, so the left endpoint of the valid interval is $\dfrac{2}{3}$ (inclusive). The right endpoint (exclusive) is the smallest slope $\dfrac{p}{q} > \dfrac{2}{3}$ among points $(q, p) \in S$, which minimizes $\dfrac{p}{q} - \dfrac{2}{3} = \dfrac{3p - 2q}{3q}$. Since $3p - 2q \geqslant 1$, this minimum occurs when $3p - 2q = 1$ and $q \leqslant 30$ is as large as possible. Reducing $2q \equiv -1 \pmod 3$ gives $q \equiv 1 \pmod 3$, so the largest $q \leqslant 30$ is $q = 28$ (with $p = 19$). Thus the valid interval is $\left[\dfrac{2}{3}, \dfrac{19}{28}\right)$, which has length \[ \dfrac{19}{28} - \dfrac{2}{3} = \dfrac{57 - 56}{84} = \dfrac{1}{84}, \] and $a + b = 1 + 84 = 85$.

Mở rộng thử thách đội mũ xếp hàng dọc cho $25$ người: lần này quản trò dùng tới $3$ màu mũ là Đỏ, Vàng và Xanh (đội ngẫu nhiên lên đầu từng người). Lần lượt từ người thứ $25$ (cuối hàng, nhìn thấy $24$ mũ phía trước) lên đến người thứ $1$ (đầu hàng), mỗi người chỉ được hô to đúng một trong ba từ Đỏ, Vàng hoặc Xanh. Với chiến thuật tối ưu bàn trước, cả đội đảm bảo chắc chắn $100\%$ đoán đúng màu mũ cho tối đa bao nhiêu người?

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

Đáp án: $24$

Lối mòn dễ mắc: Nhiều bạn tưởng tính chẵn – lẻ chỉ dùng được cho $2$ màu mũ, lên $3$ màu thì không thể truyền tin bằng $1$ lời nói.

Đổi câu hỏi (Chìa khóa): Thay phép chia lấy dư cho $2$ (chẵn – lẻ) bằng phép chia lấy dư cho $3$ ($\bmod\, 3$)! Gán giá trị số cho $3$ màu mũ: Đỏ = 0, Vàng = 1, Xanh = 2!

Lời giải gọn đẹp:

  • Người thứ $25$ cộng tổng giá trị mũ của cả $24$ người phía trước rồi chia cho $3$ lấy số dư $r \in \{0, 1, 2\}$, và hô màu ứng với số dư $r$ đó!
  • Người thứ $24$ nhìn thấy tổng của $23$ người phía trước mình; lấy số dư $r$ trừ đi tổng đó theo $\bmod\, 3$ là tìm được duy nhất giá trị mũ của chính mình ($0, 1$ hay $2$)!
  • Mọi người tiếp theo đều biết chính xác màu mũ của những người phía sau (vì họ đã đoán đúng $100\%$) và nhìn thấy toàn bộ những người phía trước, nên giải phương trình bậc nhất theo $\bmod\, 3$ tìm ra ngay màu mũ của mình! Cả $24$ người từ thứ $24$ đến thứ $1$ đều chắc chắn đúng $100\%$!

[Part A · Easy] Compute the bitwise XOR of the two 6-bit binary numbers 110101 and 011011, then convert the resulting 6-bit binary number into decimal.

Chọn đáp án

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

Đáp án: $46$

Answer / Đáp án: 46

Step-by-step (EN): 110101 XOR 011011 $=$ 101110 (bits differ at positions with weights $32, 8, 4, 2$). Decimal value $= 32 + 0 + 8 + 4 + 2 + 0 = 46$.

Giải chi tiết (VI): Thực hiện XOR từng cột (khác nhau = 1, giống nhau = 0): 110101 $\oplus$ 011011 $=$ 101110. Đổi sang hệ thập phân: $32 + 8 + 4 + 2 = 46$.

Computational Thinking / Tư duy Máy tính: Bitwise Manipulation (Phép toán thao tác bit).

[Part A · Easy] A hash table has $7$ buckets numbered $0$ to $6$, using hash function $h(x) = x \bmod 7$ with linear probing: if bucket $b$ is occupied, try $(b+1) \bmod 7, (b+2) \bmod 7, \dots$ until an empty bucket is found. Keys 10, 24, 17, 32 are inserted in that order into an initially empty table. Into which bucket index ($0$–$6$) is 17 placed?

Chọn đáp án

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

Đáp án: $5$

Answer / Đáp án: 5

Step-by-step (EN): 1) $10 \bmod 7 = 3 \to$ bucket 3. 2) $24 \bmod 7 = 3$ (occupied!) $\to$ probes bucket 4 (empty) $\to$ bucket 4. 3) $17 \bmod 7 = 3$ (occupied), bucket 4 (occupied) $\to$ lands in bucket 5!

Giải chi tiết (VI): 1) $10 \bmod 7 = 3 \to$ vào ô 3. 2) $24 \bmod 7 = 3$ (đã đầy) $\to$ dò sang ô 4 (trống) $\to$ vào ô 4. 3) $17 \bmod 7 = 3$ (đầy), dò ô 4 (đầy) $\to$ đặt vào ô 5!

Computational Thinking / Tư duy Máy tính: Hash Tables & Open Addressing / Linear Probing (Bảng băm & Xử lý đụng độ).

In packet #5, to transmit 111000 with EVEN parity (so the total number of 1s including the parity bit is even), what must the parity bit be?

Chọn đáp án

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

Đáp án: $1$

Chuỗi có $3$ bit 1, nên bit chẵn lẻ cần thêm là $1$ để tổng số bit 1 là chẵn.

How many non-congruent rectangles (where a $w \times h$ rectangle is considered the same as $h \times w$, and squares count as rectangles) have integer side lengths and area equal to $60$?

Chọn đáp án

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

Đáp án: $6$

  • Điểm cần lưu ý: Đếm tổng số ước nguyên dương $d(N)$: nếu $N$ không chính phương thì có $d(N)/2$ hình; nếu $N$ chính phương thì có $(d(N)+1)/2$ hình!
  • Cách suy luận: $60 = 2^2 \cdot 3^1 \cdot 5^1$ có $(2+1)(1+1)(1+1) = 12$ ước dương, ghép thành $12 \div 2 = 6$ hình chữ nhật không đồng dạng:

$$ 1\times 60, 2\times 30, 3\times 20, 4\times 15, 5\times 12, 6\times 10 $$

.

How many non-congruent rectangles (where a $w \times h$ rectangle is considered the same as $h \times w$, and squares count as rectangles) have integer side lengths and area equal to $72$?

Chọn đáp án

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

Đáp án: $6$

  • Điểm cần lưu ý: Đếm tổng số ước nguyên dương $d(N)$: nếu $N$ không chính phương thì có $d(N)/2$ hình; nếu $N$ chính phương thì có $(d(N)+1)/2$ hình!
  • Cách suy luận: $72 = 2^3 \cdot 3^2$ có $(3+1)(2+1) = 12$ ước dương $\Rightarrow 12 \div 2 = 6$ hình chữ nhật khác nhau.

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.