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ó 2381 bài tập Number Theory · Số học · tất cả các khối lớp · Trang 155/159 (Question 2311–2325)

Điểm: 0/15

Question 2311

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

Đề: AMC 12 2014 · Question 23 · Lớp 10–12

The fraction \[ \dfrac{1}{99^2} = 0.\overline{b_{n-1} b_{n-2} \dots b_2 b_1 b_0}, \] where $n$ is the length of the period of the repeating decimal expansion. What is the sum $b_0 + b_1 + \dots + b_{n-1}$?

Chọn đáp án

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

Đáp án: $883$

Notice that $99^2 = 9801$. Multiplying by $10^n$ and subtracting: \[ \dfrac{10^n - 1}{9801} = \overline{b_{n-1} b_{n-2} \dots b_1 b_0}. \] Notice the identity: \[ \dfrac{1}{99^2} = \left(\dfrac{1}{99}\right)^2 = (0.010101\dots)^2 = \sum_{k=1}^\infty \dfrac{k}{100^{k+1}} = 0.00 01 02 03 \dots 96 97 99 00\dots \] Notice that the two-digit blocks are $00, 01, 02, \dots, 97, 99$ (the block $98$ is skipped because $98 + 1 = 99$, carrying over from $100$). The period contains $99$ blocks of $2$ digits each, so the period length is: \[ n = 99 \times 2 = 198. \] The two-digit blocks in the period are all numbers from $00$ to $99$ except $98$: The sum of all numbers from $0$ to $99$ is: \[ \sum_{k=0}^{99} k = \dfrac{99 \times 100}{2} = 4950. \] Excluding $98$: The sum of the values of the blocks is $4950 - 98 = 4852$. Now we sum the individual digits: The digits appearing in all two-digit numbers from $00$ to $99$ are: Each digit $0, 1, \dots, 9$ appears $10$ times as a tens digit and $10$ times as a units digit: \[ \text{Total digit sum} = 20 \times (0 + 1 + \dots + 9) = 20 \times 45 = 900. \] Since the block $98$ is missing, we subtract the digits of $98$: \[ 900 - (9 + 8) = 900 - 17 = 883. \] Thus, the sum of the digits in the period is $883$.

Question 2312

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

Đề: AMC 12 2014 · Question 48 · Lớp 10–12

The number $2017$ is prime. Let $S = \sum_{k=0}^{62} \binom{2014}{k}$. What is the remainder when $S$ is divided by $2017$?

Chọn đáp án

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

Đáp án: $1024$

Let $p = 2017$. For $0 \leqslant k \leqslant 62$, modulo $p$: \[ \binom{2014}{k} = \dfrac{2014 \cdot 2013 \cdots (2015-k)}{k!} \equiv \dfrac{(-3)(-4)\cdots(-(k+2))}{k!} \pmod{2017}. \] This product has $k$ terms: \[ \binom{2014}{k} \equiv (-1)^k \dfrac{(k+2)!}{2 \cdot k!} = (-1)^k \dfrac{(k+1)(k+2)}{2} = (-1)^k \binom{k+2}{2} \pmod{2017}. \] We sum this expression for $k = 0$ to $62$: \[ S \equiv \sum_{k=0}^{62} (-1)^k \binom{k+2}{2} \pmod{2017}. \] Using the identity $\sum_{k=0}^n (-1)^k \binom{k+2}{2}$: For $n = 62$ (an even integer): \[ \sum_{k=0}^{2m} (-1)^k \binom{k+2}{2} = (m+1)^2. \] With $2m = 62 \implies m = 31$: \[ S \equiv (31 + 1)^2 = 32^2 = 1024 \pmod{2017}. \] Thus, the remainder is $1024$.

Question 2313

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

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

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 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$

We express the numbers in terms of repunits: \[ A_n = a \dfrac{10^n - 1}{9}, B_n = b \dfrac{10^n - 1}{9}, C_n = c \dfrac{10^{2n} - 1}{9}. \] The given equation $C_n - B_n = A_n^2$ becomes: \[ c \dfrac{10^{2n} - 1}{9} - b \dfrac{10^n - 1}{9} = a^2 \left(\dfrac{10^n - 1}{9}\right)^2. \] Dividing both sides by $\dfrac{10^n - 1}{9} \ne 0$: \[ c(10^n + 1) - b = \dfrac{a^2(10^n - 1)}{9} \implies 9c \cdot 10^n + 9(c - b) = a^2 \cdot 10^n - a^2. \] Rearranging terms: \[ (a^2 - 9c) 10^n = 9(c - b) + a^2. \] For this equation to hold for at least two different values of $n$, both sides must be identically zero: \[ a^2 - 9c = 0 \text{ and } 9(c - b) + a^2 = 0. \] From $a^2 = 9c$, since $a$ is a non-zero digit $1 \leqslant a \leqslant 9$: $9c$ must be a perfect square, so $c$ must be a perfect square digit ($c \in \{1, 4, 9\}$): If $c = 1$: $a^2 = 9 \implies a = 3$. Then $9(1 - b) + 9 = 0 \implies 9(2 - b) = 0 \implies b = 2$. Here $a + b + c = 3 + 2 + 1 = 6$. If $c = 4$: $a^2 = 36 \implies a = 6$. Then $9(4 - b) + 36 = 0 \implies 4 - b = -4 \implies b = 8$. Here $a + b + c = 6 + 8 + 4 = 18$. If $c = 9$: $a^2 = 81 \implies a = 9$. Then $9(9 - b) + 81 = 0 \implies 9 - b = -9 \implies b = 18$, which is not a single digit! The maximum possible value of $a + b + c$ is $18$.

[Part A · Easy] In $8$-bit Two's Complement representation of signed integers, the leftmost bit has negative weight $-128$, and the remaining $7$ bits have positive weights $+64, +32, +16, +8, +4, +2, +1$. What absolute value $|x|$ does the negative 8-bit register 11101011 represent? (Enter the positive magnitude $|x|$, e.g. enter 5 if $x = -5$)

Hình minh họa câu 1
Chọn đáp án

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

Đáp án: $21$

Answer / Đáp án: 21

Step-by-step (EN): Method 1 (weights): $x = -128 + 64 + 32 + 0 + 8 + 0 + 2 + 1 = -128 + 107 = -21 \implies |x| = 21$. Method 2 (invert bits + 1): ~11101011 + 1 = 00010100 + 1 = 00010101 $= 16 + 4 + 1 = 21$.

Giải chi tiết (VI): Cách 1 (cộng trọng số): $x = -128 + (64 + 32 + 8 + 2 + 1) = -128 + 107 = -21 \implies |x| = 21$. Cách 2 (đảo bit cộng $1$): đảo 11101011 được 00010100, cộng $1$ được 00010101 $= 16 + 4 + 1 = 21$.

Computational Thinking / Tư duy Máy tính: Two's Complement Signed Arithmetic (Biểu diễn số nguyên có dấu Bù 2 trong kiến trúc máy tính).

[Part A · Easy] In Diffie–Hellman / RSA public-key cryptography, we compute modular powers using Binary Exponentiation (Square-and-Multiply). What is the remainder when $3^{13}$ is divided by $17$?

Chọn đáp án

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

Đáp án: $12$

Answer / Đáp án: 12

Step-by-step (EN): Write $13 = (1101)_2 = 8 + 4 + 1$ and compute squares modulo $17$:

  • $3^1 \equiv 3 \pmod{17}$
  • $3^2 \equiv 9 \pmod{17}$
  • $3^4 \equiv 9^2 = 81 \equiv 13 \equiv -4 \pmod{17}$
  • $3^8 \equiv (-4)^2 = 16 \equiv -1 \pmod{17}$.

Multiply: $3^{13} = 3^8 \cdot 3^4 \cdot 3^1 \equiv (-1) \cdot (-4) \cdot 3 = 12 \pmod{17}$.

Giải chi tiết (VI): Phân tích nhị phân $13 = 8 + 4 + 1$ và bình phương liên tiếp theo $\bmod\ 17$:

  • $3^1 \equiv 3$
  • $3^2 \equiv 9$
  • $3^4 \equiv 81 \equiv -4 \pmod{17}$
  • $3^8 \equiv (-4)^2 = 16 \equiv -1 \pmod{17}$.

Suy ra $3^{13} = 3^8 \cdot 3^4 \cdot 3^1 \equiv (-1)(-4)(3) = 12 \pmod{17}$.

Computational Thinking / Tư duy Máy tính: Fast Modular Exponentiation in Cryptography (Lũy thừa nhanh theo modulo).

What is the largest integer $n$ such that $3^n$ divides $30!$ (where $30! = 1 \times 2 \times \cdots \times 30$)?

Chọn đáp án

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

Đáp án: $14$

  • Điểm cần lưu ý: Áp dụng công thức Legendre: cộng thêm các bội của $3^2, 3^3, \dots$ chứ không chỉ lấy $\lfloor 30/3 \rfloor$!
  • Cách suy luận: $\lfloor 30/3 \rfloor + \lfloor 30/9 \rfloor + \lfloor 30/27 \rfloor = 10 + 3 + 1 = 14$.

The sum of the digits of a $9$-digit positive integer is $8$. What is the product of all its digits?

Chọn đáp án

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

Đáp án: $0$

  • Điểm cần lưu ý: Vì số có $9$ chữ số mà tổng chữ số chỉ bằng $8 < 9$, theo nguyên lý chuồng bồ câu bắt buộc phải có ít nhất $1$ chữ số bằng $0$!
  • Cách suy luận: Tích các chữ số có chứa thừa số $0$ nên luôn bằng $0$.

What is the largest integer $n$ such that $2^n$ divides $20!$ (where $20! = 1 \times 2 \times \cdots \times 20$)?

Chọn đáp án

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

Đáp án: $18$

  • Điểm cần lưu ý: Áp dụng công thức Legendre: cộng thêm các bội của $2^2, 2^3, \dots$ chứ không chỉ lấy $\lfloor 20/2 \rfloor$!
  • Cách suy luận:

$$ \lfloor 20/2 \rfloor + \lfloor 20/4 \rfloor + \lfloor 20/8 \rfloor + \lfloor 20/16 \rfloor = 10 + 5 + 2 + 1 = 18 $$

.

The sum of the digits of a $10$-digit positive integer is $9$. What is the product of all its digits?

Chọn đáp án

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

Đáp án: $0$

  • Điểm cần lưu ý: Vì số có $10$ chữ số mà tổng chữ số chỉ bằng $9 < 10$, theo nguyên lý chuồng bồ câu bắt buộc phải có ít nhất $1$ chữ số bằng $0$!
  • Cách suy luận: Tích các chữ số có chứa thừa số $0$ nên luôn bằng $0$.

What is the largest integer $n$ such that $5^n$ divides $55!$ (where $55! = 1 \times 2 \times \cdots \times 55$)?

Chọn đáp án

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

Đáp án: $13$

  • Điểm cần lưu ý: Áp dụng công thức Legendre: cộng thêm các bội của $5^2, 5^3, \dots$ chứ không chỉ lấy $\lfloor 55/5 \rfloor$!
  • Cách suy luận: $\lfloor 55/5 \rfloor + \lfloor 55/25 \rfloor = 11 + 2 = 13$.

The sum of the digits of a $12$-digit positive integer is $10$. What is the product of all its digits?

Chọn đáp án

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

Đáp án: $0$

  • Điểm cần lưu ý: Vì số có $12$ chữ số mà tổng chữ số chỉ bằng $10 < 12$, theo nguyên lý chuồng bồ câu bắt buộc phải có ít nhất $1$ chữ số bằng $0$!
  • Cách suy luận: Tích các chữ số có chứa thừa số $0$ nên luôn bằng $0$.

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.