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?
- A)
- B)
- C)
- D)
- E)
Answer
C
Key insight
The five diagonals form one closed loop A-C-E-B-D-A, so count proper colorings of a 5-cycle: 6*5^4 minus the proper colorings of a 4-cycle.
Solution
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 .
Why this works
Draw the constraint graph, not the picture: vertices joined by a diagonal are exactly the "must differ" pairs, and for a pentagon those pairs form the pentagram, a single cycle. Cycles are counted by the recursion "path count minus the smaller cycle," which here gives . The general result for an -cycle with colors is worth remembering.
Alternative approach
Casework along the loop. Color (), then (), then (). If (one of those ways), has choices and must avoid and : . If ( ways), then : either (then has ) or is one of others (then has ), giving . Total .
The trap
Coloring the vertices in order with 6, 5, 5, 5, 5 choices (3750) and never closing the loop, or applying the restriction to sides instead of diagonals.
Common mistakes
- Coloring the vertices in order with 6, 5, 5, 5, 5 choices (3750) and never closing the loop, or applying the restriction to sides instead of diagonals.
- Believing the answer must be or similar because "all five ends must differ"; only diagonal endpoints must differ, and adjacent vertices may share a color.
Techniques
Map the objects to something easier to count · Split into exhaustive cases and handle each