2009 AMC 10B Problem 11
How many -digit palindromes (numbers that read the same backward as forward) can be formed using the digits , , , , , , ?
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.
- A -digit palindrome looks like . Digits and match, and match, and match. Only the middle digit has no partner.
- 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.
- We have two 's, two 's, and three 's. Only appears an odd number of times, so the middle digit must be .
- That leaves to split into three matching pairs: one pair of 's, one pair of 's, one pair of 's. So the first three digits are , and in some order.
- The number of orders of three different digits is . For example and .
- Each order gives exactly one palindrome.
The answer is .
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 -digit palindrome has the form : the last three digits mirror the first three, and the fourth digit stands alone.
Every digit other than is used an even number of times, so must be the digit with odd multiplicity. Among that is , so . Removing one leaves , which must split as a first half and its mirror, so with each used once.
The first three digits are therefore a permutation of : there are of them, and each produces exactly one palindrome.
The answer is .
Review in the AoPS books
- Introduction to Counting & Probability, Chapter 1: Counting Is Arithmetic
- Introduction to Number Theory, Chapter 8: Base Numbers
- Intermediate Counting & Probability, Chapter 4: Constructive Counting and 1-1 Correspondences (§4.4, §4.5, §4.6)
- Introduction to Counting & Probability, Chapter 2: Basic Counting Techniques
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.