AMC 10 Step by Step

2009 AMC 10B Problem 11

P11-15~2 minPrint

How many 77 -digit palindromes (numbers that read the same backward as forward) can be formed using the digits 22 , 22 , 33 , 33 , 55 , 55 , 55 ?

Log in to save your progress.
Show solution without answering

Key insight

The middle digit has no partner, so it must be the 5 that appears an odd number of times. The first three digits are 2, 3, 5 in any order.

Solution

A palindrome is decided by its first half and its middle, so count those.

  1. A 77-digit palindrome looks like a b c d c b aa\,b\,c\,d\,c\,b\,a. Digits 11 and 77 match, 22 and 66 match, 33 and 55 match. Only the middle digit dd has no partner.
  2. So every digit except the middle one is used in matching pairs. That means each digit is used an even number of times, except the middle digit.
  3. We have two 22's, two 33's, and three 55's. Only 55 appears an odd number of times, so the middle digit must be 55.
  4. That leaves 2,2,3,3,5,52, 2, 3, 3, 5, 5 to split into three matching pairs: one pair of 22's, one pair of 33's, one pair of 55's. So the first three digits a,b,ca, b, c are 22, 33 and 55 in some order.
  5. The number of orders of three different digits is 3×2×1=63 \times 2 \times 1 = 6. For example 235 5 532235\,5\,532 and 523 5 325523\,5\,325.
  6. Each order gives exactly one palindrome.

The answer is (A) 6\boxed{\textbf{(A)}\ 6}.

Why this works

Once you know the first half and the middle digit of a palindrome, the rest is forced. So count the first halves, not the whole numbers. The digit that appears an odd number of times has to sit in the middle, since every other position has a partner.

Concise solution

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

A 77-digit palindrome has the form abcdcbaabcdcba: the last three digits mirror the first three, and the fourth digit dd stands alone.

Every digit other than dd is used an even number of times, so dd must be the digit with odd multiplicity. Among 2,2,3,3,5,5,52, 2, 3, 3, 5, 5, 5 that is 55, so d=5d = 5. Removing one 55 leaves 2,2,3,3,5,52, 2, 3, 3, 5, 5, which must split as a first half abcabc and its mirror, so {a,b,c}={2,3,5}\{a, b, c\} = \{2, 3, 5\} with each used once.

The first three digits are therefore a permutation of 2,3,52, 3, 5: there are 3!=63! = 6 of them, and each produces exactly one palindrome.

The answer is (A) 6\boxed{\textbf{(A)}\ 6}.

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.