第 742 题:(2014 AMC 12a, 15)
A five-digit palindrome is a positive integer with respective digits $abcba$, where $a$ is non-zero. Let $S$ be the sum of all five-digit palindromes. What is the sum of the digits of $S$?
$\textbf{(A)}\ 9\qquad \textbf{(B)}\ 18\qquad \textbf{(C)}\ 27\qquad \textbf{(D)}\ 36\qquad \textbf{(E)}\ 45\qquad$
- Pair the palindrome $\underline{a}\,\underline{b}\,\underline{c}\,\underline{b}\,\underline{a}$ with the five-digit palindrome whose digits are $10-a$, $9-b$, $9-c$, $9-b$, $10-a$. Each pair sums to $110000$.
- There are $9\cdot10\cdot10=900$ palindromes (each paired with a different one, since $a=5$, $b=c=4.5$ is impossible), so $S=450\cdot110000=49500000$.
- The digit sum of $S$ is $4+9+5=18$.
- The answer is (B).
What is the sum of all four-digit palindromes?