Let be an integer. John and Mary play the following game: First John labels the sides of a regular -gon with the numbers in whatever order he wants, using each number exactly once. Then Mary divides this -gon into triangles by drawing diagonals which do not intersect each other inside the -gon. All these diagonals are labeled with number 1. Into each of the triangles the product of the numbers on its sides is written. Let be the sum of those products.
Determine the value of if Mary wants the number to be as small as possible and John wants to be as large as possible and if they both make the best possible choices.
Problem 2166
Official solution
Solution:
For the answer is . Suppose . It is obvious that in each triangulation there are at least two triangles that share two sides with the polygon. We will prove that it is always best for Mary to choose a triangulation for which there is no more than two triangles of this kind.
We call a triangle in a triangulation bad if all of its sides are diagonals of the polygon. First we prove that Mary can choose an optimal triangulation that contains no bad triangles. Assume on the contrary that every optimal triangulation contains a bad triangle. For an optimal triangulation let be the length of the smallest side of all bad triangles in . Among all optimal triangulations with minimal number of bad triangles let be such that is minimal.
Consider a bad triangle in such that . Let be the other triangle of that contains as one of its sides. Since lies on the arc of the circumcircle of that does not contain and is acute, we have and .
Let be the triangulation obtained from by replacing with . If the sides and have labels and respectively, then
Because is optimal triangulation, we conclude that is also optimal. Since has the minimal number of bad triangles at least one of the segments and should be a diagonal, but then is less than what is a contradiction.
Now that we know that Mary can choose an optimal triangulation that contains no bad triangles, we easily conclude that in such a triangulation there are exactly two triangles that share two sides with the polygon. If we denote by (respectively ) the number of triangles that have exactly one (respectively two) of their sides being the sides of the polygon, then and , so .
Mary's strategy is to choose these two triangles so that the side of the polygon labeled with is contained in one of these triangles and the side labeled with is contained in the other.
By this strategy Mary makes sure that
On the other hand, John can force Mary to achieve exactly this bound by labeling the sides of the polygon in the following order
Thus, the answer to our problem is , for each .