Olympiad Maths Prep

Track / Stage 6 / 383 of 400 #1383 of 2000

Problem 1383

National olympiad, first round
Combinatorics Difficulty 6.9 Find the answer

Let n3n \geq 3 be an integer. John and Mary play the following game: First John labels the sides of a regular nn-gon with the numbers 1,2,,n1, 2,\ldots, n in whatever order he wants, using each number exactly once. Then Mary divides this nn-gon into triangles by drawing n3n-3 diagonals which do not intersect each other inside the nn-gon. All these diagonals are labeled with number 11. Into each of the triangles the product of the numbers on its sides is written. Let S be the sum of those n2n - 2 products.

Determine the value of SS if Mary wants the number SS to be as small as possible and John wants SS to be as large as possible and if they both make the best possible choices.

Official solution

1. Labeling the Sides:
John labels the sides of the regular nn-gon with the numbers 1,2,,n1, 2, \ldots, n in some order. Let the labels be a1,a2,,ana_1, a_2, \ldots, a_n in clockwise order.

2. Triangulation:
Mary divides the nn-gon into n2n-2 triangles by drawing n3n-3 non-intersecting diagonals. Each diagonal is labeled with the number 11.

3. Product Calculation:
For each triangle formed, the product of the numbers on its sides is written. Let the triangles be Δ1,Δ2,,Δn2\Delta_1, \Delta_2, \ldots, \Delta_{n-2}, and let the sides of Δi\Delta_i be labeled with ai1,ai2,ai3a_{i1}, a_{i2}, a_{i3}. The product for Δi\Delta_i is ai1ai2ai3a_{i1} \cdot a_{i2} \cdot a_{i3}.

4. Sum Calculation:
Let SS be the sum of the products of the sides of all triangles:
S=i=1n2ai1ai2ai3 S = \sum_{i=1}^{n-2} a_{i1} \cdot a_{i2} \cdot a_{i3}

5. Objective:
John wants to maximize SS, while Mary wants to minimize SS. Both will make the best possible choices.

6. Optimal Strategy for Mary:
Mary will try to minimize the sum SS. To do this, she will aim to minimize the products of the sides of the triangles. Since the diagonals are labeled with 11, the products will be minimized when the sides of the triangles are as small as possible.

7. Optimal Strategy for John:
John will try to maximize SS. He will aim to place the largest numbers on the sides of the triangles as much as possible.

8. Analysis of the Products:
Consider the sum of the products of the sides of the triangles. Each side of the nn-gon will appear in exactly two triangles. Therefore, the sum of the products can be written as:
S=i=1nai(ai1+ai+1) S = \sum_{i=1}^{n} a_i \cdot (a_{i-1} + a_{i+1})
where ai1a_{i-1} and ai+1a_{i+1} are the labels of the sides adjacent to aia_i.

9. Maximizing the Sum:
To maximize SS, John should place the largest numbers in positions where they will be multiplied by the largest possible sums of adjacent numbers.

10. Minimizing the Sum:
Mary will try to minimize the sum by choosing a triangulation that minimizes the products of the sides of the triangles. However, since each side appears in exactly two triangles, her influence is limited.

11. Conclusion:
Given that each side appears in exactly two triangles, the sum SS is determined by the sum of the products of the sides of the triangles. The optimal strategy for John is to place the numbers in such a way that the sum of the products is maximized.

The sum of the products of the sides of the triangles is:
S=i=1nai(ai1+ai+1) S = \sum_{i=1}^{n} a_i \cdot (a_{i-1} + a_{i+1})
Since each number 1,2,,n1, 2, \ldots, n appears exactly twice, the sum SS is maximized when the numbers are placed in such a way that the products are maximized.

The final answer is n(n+1)\boxed{n(n+1)}

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.