CombinatoricsDifficulty 5.3AIME, harderProve itUnited States
Let n≥3 be an integer and let Kn be the complete graph on n vertices. Each edge of Kn is colored either red, green, or blue. Let A denote the number of triangles in Kn with all edges of the same color, and let B denote the number of triangles in Kn with all edges of different colors. Prove that B≤2A+3n(n−1).
Solution
* each monochromatic triangle has a charge of +6, * each bichromatic triangle has a charge of 0, and * each trichromatic triangle has a charge of -3. Since each vee contributes to exactly one triangle, we obtain that the total charge is 6A−3B.