2005 AMC 10A Problems/Problem 14
Problem
How many three-digit numbers satisfy the property that the middle digit is the average of the first and the last digits?
Solution
If the middle digit is the average of the first and last digits, twice the middle digit must be equal to the sum of the first and last digits.
Doing some casework:
If the middle digit is , possible numbers range from to . So there are numbers in this case.
If the middle digit is , possible numbers range from to . So there are numbers in this case.
If the middle digit is , possible numbers range from to . So there are numbers in this case.
If the middle digit is , possible numbers range from to . So there are numbers in this case.
If the middle digit is , possible numbers range from to . So there are numbers in this case.
If the middle digit is , possible numbers range from to . So there are numbers in this case.
If the middle digit is , possible numbers range from to . So there are numbers in this case.
If the middle digit is , possible numbers range from to . So there are numbers in this case.
If the middle digit is , possible numbers range from to . So there are numbers in this case.
So the total number of three-digit numbers that satisfy the property is
Solution 2 (much faster and slicker)
Alternatively, we could note that the middle digit is uniquely defined by the first and third digits, since it is half of their sum. This also means that the sum of the first and third digits must be even. Since even numbers are formed either by adding two odd numbers or two even numbers, we can split our problem into 2 cases:
If both the first digit and the last digit are odd, then we have 1, 3, 5, 7, or 9 as choices for each of these digits, and there are numbers in this case.
If both the first and last digits are even, then we have 2, 4, 6, 8 as our choices for the first digit and 0, 2, 4, 6, 8 for the third digit. There are numbers here.
The total number, then, is