Question 301
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$?
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. \]