2011 AMC 10A Problem 22
Each vertex of convex pentagon is to be assigned a color. There are colors to choose from, and the ends of each diagonal must have different colors. How many different colorings are possible?
Show solution without answering
Key insight
The five diagonals join up into one closed loop A, C, E, B, D, back to A. So count colorings where neighbours on this loop differ.
Solution
1. Draw the diagonals. A pentagon has diagonals: , , , , . Written in this order, each one starts where the last one ended, so they form one closed loop (the five-pointed star):
2. Restate the rule. "The ends of each diagonal have different colors" now just means: any two vertices next to each other on this loop must have different colors. The sides of the pentagon don't matter at all.
3. Color around the loop. Go in the order . The tricky part is at the end: must differ from both and . How many choices has depends on whether and have the same color, so we keep track of that.
- : choices.
- : must differ from , so choices.
- : must differ from , so choices. Split into two cases, depending on whether has the same color as .
4. Case 1: is the same color as ( of the choices for ).
- must differ from , which is 's color: choices, and is automatically different from .
- must differ from and from , which are two different colors: choices.
- That gives ways to finish.
5. Case 2: is a different color from ( of the choices for ). Now must differ from , which leaves colors. One of those is 's color.
- If has 's color ( way), then only has to avoid that one color: choices.
- If has another color ( ways), then must avoid two different colors: choices.
- That gives ways to finish, for each of the choices of .
6. Add it up. After and ( ways), the number of ways to finish is . So the total is
The answer is .
Why this works
Look at which pairs must differ, not at the shape of the pentagon. Here those pairs form a single loop of five. Coloring around a loop is easy until the last vertex, which has two neighbours already colored. Its number of choices depends on whether those two neighbours match, so split into cases on exactly that.
Alternative approach
Count first, then remove the bad colorings.
- Color in order, each different from the one before, and ignore the rule between and : ways.
- The bad ones are those where has the same color as . In those, we can think of and as one vertex, and we are just coloring a loop of four, , with neighbours different.
- Count the loop of four the same way: colorings along the path, minus those where matches . Those are colorings of the triangle with all three colors different: . So the loop of four has colorings.
- The answer is .
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
The diagonals are . Reading them in that order, each one starts where the previous one ended, so the five diagonals form a single closed loop
The condition "ends of every diagonal differ" is exactly "consecutive vertices around this loop differ." So we are counting proper colorings of a -cycle with colors.
Ignore the closing link - for a moment and color along the path , each vertex different from the one before: colorings. The bad ones are those with the same color as . Merging into in such a coloring produces a proper coloring of the -cycle , and vice versa.
The same trick counts the -cycle: path colorings , minus those with matching , which correspond to proper colorings of the triangle : . So the -cycle has proper colorings.
Therefore the pentagon has valid colorings.
The answer is .
Review in the AoPS books
- Introduction to Counting & Probability, Chapter 2: Basic Counting Techniques (§2.5)
- Introduction to Counting & Probability, Chapter 1: Counting Is Arithmetic
- Intermediate Counting & Probability, Chapter 4: Constructive Counting and 1-1 Correspondences (§4.4, §4.5, §4.6)
- Introduction to Counting & Probability, Chapter 3: Correcting for Overcounting (§3.2, §3.4)
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.