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$?
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$)
Trong cách biểu diễn số nguyên có dấu Bù 2 ($8$-bit), bit ngoài cùng bên trái mang trọng số âm $-128$, còn $7$ bit tiếp theo mang trọng số $+64, +32, +16, +8, +4, +2, +1$. Thanh ghi 11101011 biểu diễn số âm $x$; hãy điền giá trị tuyệt đối $|x|$? (Chỉ điền số nguyên dương)
[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$?
Trong mật mã khóa công khai (Diffie–Hellman / RSA), lũy thừa đồng dư được tính nhanh bằng Bình phương và Nhân (Binary Exponentiation). Tìm số dư của $3^{13}$ khi chia cho $17$? (Chỉ điền số)