Each of the sides and the diagonals of a regular pentagon are randomly and independently colored red or blue with equal probability. What is the probability that there will be a triangle whose vertices are among the vertices of the pentagon such that all of its sides have the same color?
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
With no one-color triangle, every vertex has exactly 2 red and 2 blue edges, so the red edges form a 5-cycle; only 12 of 1024 colorings.
Solution
There are colorings of the ten segments. Count the colorings with no single-color triangle.
Fix a vertex ; four segments leave it. If three of them, say to , were red, then to avoid red triangles , , the segments would all be blue, forming a blue triangle. So no vertex has three edges of one color: every vertex has exactly red and blue edges.
The red edges then form a graph on vertices in which every vertex has degree . Such a graph is a union of cycles covering all vertices; since a cycle needs at least vertices, cannot be split, so the red graph is a single -cycle. Its complement (the blue edges) is then also a -cycle, and a -cycle contains no triangle, so every such coloring works.
The number of -cycles on labeled vertices is (arrange the vertices around a cycle, up to rotation and reflection).
Therefore the probability of at least one monochromatic triangle is
The answer is .
Why this works
This is the Ramsey-theory fact that can be 2-colored without monochromatic triangles, but only barely: the local pigeonhole condition at each vertex is so restrictive that it determines the global structure (two complementary pentagons). Whenever "at least one" is nearly certain, count the rare complement.
Alternative approach
Answer-choice reasoning: the probability is for some integer that is small but positive (the two-pentagon coloring shows ). Only (D), with , and (C), with , have the right shape; a quick count of the pentagon colorings () selects (D).
The trap
Trying to count colorings that contain a monochromatic triangle directly with inclusion-exclusion over the 10 triangles, which is long and error-prone.
Common mistakes
- Trying to count colorings that contain a monochromatic triangle directly with inclusion-exclusion over the 10 triangles, which is long and error-prone.
- Counting the -cycles as or by not dividing out rotations and reflections, or forgetting that the blue edges must also be checked for triangles.
Techniques
Count the complement and subtract from the total · Pigeonhole principle