How many three-digit numbers satisfy the property that the middle digit is the average of the first and the last digits?
- A)
- B)
- C)
- D)
- E)
Answer
E
Key insight
The middle digit is determined by the outer two, which only need the same parity: 9 first digits times 5 matching last digits.
Solution
Call the digits , , with . The condition has two consequences: must be even, and once and are chosen, is fixed. Since and are digits, is automatically between and , so it is always a legal digit.
So we just count pairs with even, i.e. with and of the same parity.
- odd ( choices: ), odd ( choices): pairs.
- even ( choices: ), even ( choices: ): pairs.
Total .
The answer is .
Why this works
An "average" condition between digits is really a divisibility condition: two integers have an integer average exactly when they share parity. Recognizing that the middle digit is determined (not chosen) turns a three-digit search into a two-digit parity count. Whichever parity has, exactly of the possible last digits match it, giving the slick .
Alternative approach
Casework on the middle digit : the pairs with number for , again summing to .
The trap
Forgetting that 0 is an allowed (even) last digit, or allowing 0 as a first digit, which shifts the count by 4 or 5.
Common mistakes
- Forgetting that 0 is an allowed (even) last digit, or allowing 0 as a first digit, which shifts the count by 4 or 5.
- Worrying that might exceed or need checking; the average of two digits is always a digit.
Techniques
Use an invariant, parity, or coloring argument