AMC 10 Step by Step

2007 AMC 10B Problem 8

P1-10~3 minPrint

On the trip home from the meeting where this AMC10 was constructed, the Contest Chair noted that his airport parking receipt had digits of the form bbcac,bbcac, where 0≤a<b<c≤9,0 \le a < b < c \le 9, and bb was the average of aa and c.c. How many different five-digit numbers satisfy all these properties?

Log in to save your progress.
Show solution without answering

Key insight

Once a and c are picked, b is their average, so it is fixed. It is a whole number exactly when a and c are both even or both odd.

Solution

The receipt looks like b b c a cb\,b\,c\,a\,c. Once we choose aa and cc, the middle digit bb is their average, so there is nothing left to choose. We only need to count the good choices of aa and cc.

1. Try a few examples. a=1,c=5a = 1, c = 5 gives b=3b = 3, a digit. a=1,c=4a = 1, c = 4 gives b=2.5b = 2.5, not a digit.
2. The average of two whole numbers is whole exactly when their sum is even, which happens when both are even or both are odd.
3. When bb is whole, it automatically lies between aa and cc, so a<b<ca < b < c holds. Also bb is at least 11, so the receipt really starts with a nonzero digit.
4. Count pairs with aa smaller than cc:
- Both even, from 0,2,4,6,80, 2, 4, 6, 8: choosing 22 of these 55 digits gives 5×42=10\frac{5 \times 4}{2} = 10 pairs.
- Both odd, from 1,3,5,7,91, 3, 5, 7, 9: again 1010 pairs.
5. Total: 10+10=2010 + 10 = 20.

The answer is (D) 20\boxed{\textbf{(D)}\ 20}.

Why this works

When one digit is decided by the others, count only the free choices. "The average is a whole number" is really an even/odd condition, and the digits split evenly into five even and five odd ones, so each group gives the same simple count.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

The number is fixed once aa and cc are chosen, because b=a+c2b = \frac{a + c}{2}. For bb to be a digit it must be an integer, which happens exactly when aa and cc have the same parity. When it is an integer, a<ca < c automatically places bb strictly between them, and b≥1b \ge 1 so the number really has five digits.

So we count pairs a<ca < c of the same parity among the digits 00 through 99:

  • both even, from {0,2,4,6,8}\{0, 2, 4, 6, 8\}: (52)=10\binom{5}{2} = 10 pairs;
  • both odd, from {1,3,5,7,9}\{1, 3, 5, 7, 9\}: (52)=10\binom{5}{2} = 10 pairs.

Total 10+10=2010 + 10 = 20 receipts.

The answer is (D) 20\boxed{\textbf{(D)}\ 20}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.