Difference between revisions of "2005 AMC 10A Problems/Problem 14"
(→Solution) |
(→Solution) |
||
Line 25: | Line 25: | ||
If the middle digit is <math>8</math>, possible numbers range from <math>789</math> to <math>987</math>. So there are <math>3</math> numbers in this case. | If the middle digit is <math>8</math>, possible numbers range from <math>789</math> to <math>987</math>. So there are <math>3</math> numbers in this case. | ||
− | If the middle digit is <math>9</math>, possible | + | If the middle digit is <math>9</math>, the only possible number is <math>999</math>. So there is <math>1</math> number in this case. |
So the total number of three-digit numbers that satisfy the property is <math>2+4+6+8+9+7+5+3+1=45\Rightarrow E</math> | So the total number of three-digit numbers that satisfy the property is <math>2+4+6+8+9+7+5+3+1=45\Rightarrow E</math> | ||
+ | |||
== Solution 2 (much faster and slicker)== | == 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: | 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: |
Revision as of 12:08, 28 December 2012
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 , the only possible number is
. So there is
number 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