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ó 666 bài tập Number Theory · Số học · khối Lớp 12 · Trang 41/45 (Question 601–615)

Điểm: 0/15

Question 601

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 602

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

A light display uses bulbs numbered 1 to 360. Bulbs with numbers divisible by 4 or by 6 light up, except bulbs whose numbers are divisible by both 4 and 6. How many bulbs light up?

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

Đáp án: $90$

Có 90 bội của 4, 60 bội của 6 và 30 bội chung (bội của 12). Mỗi bội chung đã được đếm hai lần và phải loại bỏ cả hai lượt. Còn 90 + 60 − 2 × 30 = 90 bóng.

The positive integers from 1 through 1000 are written in a row. How many times does the digit 7 appear?

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

Đáp án: $300$

Viết từ 000 đến 999. Ở mỗi vị trí hàng đơn vị, chục và trăm, chữ số 7 xuất hiện đúng 100 lần. Bỏ 000 và thêm 1000 không làm đổi số lần xuất hiện. Tổng cộng 300 lần.

[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).

In packet #6, to transmit 111100 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: $0$

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

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

.

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.