Maths Olympiad Prep

Library / /95 of 97

Combinatorics Difficulty 9.0 IMO level Prove it China

Let A1A2A101A_1A_2\cdots A_{101} be a regular 101-gon, and color every vertex red or blue. Let NN be the number of obtuse triangles satisfying the following: The three vertices of the triangle must be vertices of the 101-gon, both the vertices with acute angles have the same color, and the vertex with obtuse angle have different color.

(1) Find the largest possible value of NN.

(2) Find the number of ways to color the vertices such that maximum NN is achieved. (Two colorings are different if for some AiA_i the colors are different on the two coloring schemes)

Solution

Define xi=0x_i = 0 or 11 depending on whether AiA_i is red or blue. For obtuse triangle AiaAiAi+bA_{i-a}A_iA_{i+b} (vertex AiA_i is the vertex of the obtuse angle, i.e. a+b50a + b \le 50), these three vertices satisfy the conditions of the problem if and only if
(xixia)(xixi+b)=1,1 (x_i - x_{i-a})(x_i - x_{i+b}) = 1, \qquad \textcircled{1}
otherwise equals 00, here the subscript is modulo 101101. Thus
N=i=1101(a,b)(xixia)(xixi+b), N = \sum_{i=1}^{101} \sum_{(a,b)} (x_i - x_{i-a})(x_i - x_{i+b}),
here (a,b)\sum_{(a,b)} stands for the summation of all positive integer pairs (a,b)(a, b) satisfying a+b50a + b \le 50, there are 49+48++1=122549 + 48 + \cdots + 1 = 1225 such positive integer pairs. Expand 1\textcircled{1}, we have
N=i=1101(a,b)(xixia)(xixi+b)=i=1101(a,b)(xi2xixiaxixi+b+xiaxi+b)=1225i=1101xi2+i=1101k=150(k12(50k))xixi+k \begin{align*} N &= \sum_{i=1}^{101} \sum_{(a,b)} (x_i - x_{i-a})(x_i - x_{i+b}) \\ &= \sum_{i=1}^{101} \sum_{(a,b)} (x_i^2 - x_i x_{i-a} - x_i x_{i+b} + x_{i-a} x_{i+b}) \\ &= 1225 \sum_{i=1}^{101} x_i^2 + \sum_{i=1}^{101} \sum_{k=1}^{50} (k-1-2(50-k)) x_i x_{i+k} \end{align*}

=1225n+i=1101k=150(3k101)xixi+k,2 = 1225n + \sum_{i=1}^{101} \sum_{k=1}^{50} (3k-101)x_i x_{i+k}, \qquad \textcircled{2}
here nn is the number of the blue vertices. For any two vertices Ai,AjA_i, A_j,
1ij1011 \le i \le j \le 101, let
d(Ai,Aj)=d(Aj,Ai)=min{ji,101j+i}. d(A_i, A_j) = d(A_j, A_i) = \min\{j - i, 101 - j + i\}.
Let B{A1,A2,,A101}B \subseteq \{A_1, A_2, \dots, A_{101}\} be the set of all blue vertices, then 2\textcircled{2} can be written as
N=1225n101Cn2+3{P,Q}Bd(P,Q),3 N = 1225n - 101C_n^2 + 3 \sum_{\{P,Q\} \subseteq B} d(P, Q), \qquad \textcircled{3}
where {P,Q}\{P, Q\} runs through all the two-element subsets of BB. Without loss of generality, we assume nn is even. Otherwise, color all the vertices the opposite, the value of NN does not change. Write n=2tn = 2t, 0t500 \le t \le 50, from one point, renumber all the blue vertices as P1,P2,,P2tP_1, P_2, \dots, P_{2t} clockwise. Then
{P,Q}Bd(P,Q)=i=1td(Pi,Pi+t)+12i=1tj=1t1(d(Pi,Pi+j)+d(Pi+j,Pi+t)+d(Pi+t,Pij)+d(Pij,Pi))50t+1012t(t1),4 \sum_{\{P,Q\} \subseteq B} d(P, Q) = \sum_{i=1}^t d(P_i, P_{i+t}) + \frac{1}{2} \sum_{i=1}^t \sum_{j=1}^{t-1} (d(P_i, P_{i+j}) + d(P_{i+j}, P_{i+t}) + d(P_{i+t}, P_{i-j}) + d(P_{i-j}, P_i)) \le 50t + \frac{101}{2} t(t-1), \qquad \textcircled{4}
here the subscript of PiP_i is modulo 2t2t, and we use the inequality d(Pi,Pi+t)50d(P_i, P_{i+t}) \le 50 and
d(Pi,Pi+j)+d(Pi+j,Pi+t)+d(Pi+t,Pij)+d(Pij,Pi)101.5 d(P_i, P_{i+j}) + d(P_{i+j}, P_{i+t}) + d(P_{i+t}, P_{i-j}) + d(P_{i-j}, P_i) \le 101. \qquad \textcircled{5}
Combine 3\textcircled{3} and 4\textcircled{4}, we have
N1225n101Cn2+3(50t+1012t(t1))=1012t2+50992t.6 N \le 1225n - 101C_n^2 + 3 \left( 50t + \frac{101}{2} t(t-1) \right) = -\frac{101}{2} t^2 + \frac{5099}{2} t. \qquad \textcircled{6}
The right hand side of 6\textcircled{6} attains its maximum value when t=25t = 25, thus N32175N \le 32175.

The number of ways to choose 5050 blue vertices such that NN achieves maximum is equal to the number of ways to choose 2525 diagonals from the longest 101101 diagonals such that any two diagonals do not have common vertices.

Edging AiA_i and Ai+50A_{i+50}, i=1,2,,101i = 1, 2, \dots, 101, we get a graph GG. Notice that 5050 and 101101 are relatively prime, so 1+50n1 + 50n (0n1000 \le n \le 100) form a complete residue system modulo 101101, i.e. GG is a circle with 101101 edges. Therefore, the number of ways (written as SS) to color 5050 vertices blue and NN achieves maximum, is equal to the number of ways to choose 2525 edges of GG, such that any two of them do not have common vertices. Now, fix one edge ee of GG. Since the number of ways to choose edges having ee is C7524C_{75}^{24}, not having ee is C7625C_{76}^{25}, so S=C7524+C7625S = C_{75}^{24} + C_{76}^{25}. Similarly, the number of ways to have 5050 red vertices is also SS, thus the number of ways to color the vertices such that the largest value of NN is achieved is 2S2S.

In a word, the largest possible value of NN is 3217532175, the number of ways to color is 2S=2(C7524+C7625)2S = 2(C_{75}^{24} + C_{76}^{25}).

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.