Olympiad Maths Prep

Track / Stage 3 / 124 of 260 #124 of 2000

Problem 124

AMC 10/12, early questions
Number theory Difficulty 3.5 Find the answer

How many three-digit numbers satisfy the property that the middle digit is the average of the first and the last digits?
(A) 41(B) 42(C) 43(D) 44(E) 45(\mathrm {A}) \ 41 \qquad (\mathrm {B}) \ 42 \qquad (\mathrm {C})\ 43 \qquad (\mathrm {D}) \ 44 \qquad (\mathrm {E})\ 45

Official solution

Solution 1
Let the digits be A,B,CA, B, C so that B=A+C2B = \frac {A + C}{2}. In order for this to be an integer, AA and CC have to have the same parity. There are 99 possibilities for AA, and 55 for CC. BB depends on the value of both AA and CC and is unique for each (A,C)(A,C). Thus our answer is 951=45    E9 \cdot 5 \cdot 1 = 45 \implies E.

Solution 2
Thus, the three digits form an arithmetic sequence.

If the numbers are all the same, then there are 99 possible three-digit numbers.
If the numbers are different, then we count the number of strictly increasing arithmetic sequences between 00 and 1010 and multiply by 2 for the decreasing ones:

Common difference
Sequences possible
Number of sequences

1
012,,789012, \ldots, 789
8

2
024,,579024, \ldots, 579
6

3
036,,369036, \ldots, 369
4

4
048,,159048, \ldots, 159
2

This gives us 2(8+6+4+2)=402(8+6+4+2) = 40. However, the question asks for three-digit numbers, so we have to ignore the four sequences starting with 00. Thus our answer is 40+94=45(E)40 + 9 - 4 = 45 \Longrightarrow \mathrm{(E)}.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.