AMC 10 Step by Step

2011 AMC 10A Problem 22

P21-25~6 minPrint

Each vertex of convex pentagon ABCDEABCDE is to be assigned a color. There are 66 colors to choose from, and the ends of each diagonal must have different colors. How many different colorings are possible?

Log in to save your progress.
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 55 diagonals: ACAC, CECE, EBEB, BDBD, DADA. Written in this order, each one starts where the last one ended, so they form one closed loop (the five-pointed star):
A→C→E→B→D→A.A \to C \to E \to B \to D \to A.
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 A,C,E,B,DA, C, E, B, D. The tricky part is at the end: DD must differ from both BB and AA. How many choices DD has depends on whether BB and AA have the same color, so we keep track of that.
- AA: 66 choices.
- CC: must differ from AA, so 55 choices.
- EE: must differ from CC, so 55 choices. Split into two cases, depending on whether EE has the same color as AA.
4. Case 1: EE is the same color as AA (11 of the 55 choices for EE).
- BB must differ from EE, which is AA's color: 55 choices, and BB is automatically different from AA.
- DD must differ from BB and from AA, which are two different colors: 44 choices.
- That gives 5×4=205 \times 4 = 20 ways to finish.
5. Case 2: EE is a different color from AA (44 of the 55 choices for EE). Now BB must differ from EE, which leaves 55 colors. One of those is AA's color.
- If BB has AA's color (11 way), then DD only has to avoid that one color: 55 choices.
- If BB has another color (44 ways), then DD must avoid two different colors: 44 choices.
- That gives 1×5+4×4=211 \times 5 + 4 \times 4 = 21 ways to finish, for each of the 44 choices of EE.
6. Add it up. After AA and CC (6×5=306 \times 5 = 30 ways), the number of ways to finish is 1×20+4×21=1041 \times 20 + 4 \times 21 = 104. So the total is
30×104=3120.30 \times 104 = 3120.

The answer is (C) 3120\boxed{\textbf{(C)}\ 3120}.

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.

  1. Color A,C,E,B,DA, C, E, B, D in order, each different from the one before, and ignore the rule between DD and AA: 6×5×5×5×5=37506 \times 5 \times 5 \times 5 \times 5 = 3750 ways.
  2. The bad ones are those where DD has the same color as AA. In those, we can think of DD and AA as one vertex, and we are just coloring a loop of four, A,C,E,BA, C, E, B, with neighbours different.
  3. Count the loop of four the same way: 6×5×5×5=7506 \times 5 \times 5 \times 5 = 750 colorings along the path, minus those where BB matches AA. Those are colorings of the triangle A,C,EA, C, E with all three colors different: 6×5×4=1206 \times 5 \times 4 = 120. So the loop of four has 750−120=630750 - 120 = 630 colorings.
  4. The answer is 3750−630=31203750 - 630 = 3120.
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 AC,CE,EB,BD,DAAC, CE, EB, BD, DA. Reading them in that order, each one starts where the previous one ended, so the five diagonals form a single closed loop
A→C→E→B→D→A.A \to C \to E \to B \to D \to A.
The condition "ends of every diagonal differ" is exactly "consecutive vertices around this loop differ." So we are counting proper colorings of a 55-cycle with 66 colors.

Ignore the closing link DD-AA for a moment and color along the path A,C,E,B,DA, C, E, B, D, each vertex different from the one before: 6⋅5⋅5⋅5⋅5=37506 \cdot 5 \cdot 5 \cdot 5 \cdot 5 = 3750 colorings. The bad ones are those with DD the same color as AA. Merging DD into AA in such a coloring produces a proper coloring of the 44-cycle A→C→E→B→AA \to C \to E \to B \to A, and vice versa.

The same trick counts the 44-cycle: path colorings 6⋅53=7506 \cdot 5^3 = 750, minus those with BB matching AA, which correspond to proper colorings of the triangle A,C,EA, C, E: 6⋅5⋅4=1206 \cdot 5 \cdot 4 = 120. So the 44-cycle has 750−120=630750 - 120 = 630 proper colorings.

Therefore the pentagon has 3750−630=31203750 - 630 = 3120 valid colorings.

The answer is (C) 3120\boxed{\textbf{(C)}\ 3120}.

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.