第 461 题:(2005 AMC 10a, 14; 2005 AMC 12a, 11)
How many three-digit numbers satisfy the property that the middle digit is the average of the first and the last digits?
$\textbf{(A)}\ 41\qquad \textbf{(B)}\ 42\qquad \textbf{(C)}\ 43\qquad \textbf{(D)}\ 44\qquad \textbf{(E)}\ 45$
- Write the number as $\underline{a}\,\underline{b}\,\underline{c}$ with $2b=a+c$. This works exactly when $a$ and $c$ have the same parity.
- $a$ odd ($5$ choices) and $c$ odd ($5$ choices): $25$ numbers.
- $a$ even and nonzero ($4$ choices) and $c$ even ($5$ choices): $20$ numbers.
- Total: $45$.
- The answer is (E).
How many four-digit numbers have the property that the sum of the two middle digits equals the sum of the first and last digits?