Maths Olympiad Prep

Library / /26 of 39

, 2012

Combinatorics Difficulty 6.2 National olympiad Prove it Belarus

NN boys (N3N \ge 3), no two of them having the same height, are arranged along a circle. A boy in the given arrangement is said to be tall if he is taller than both of his neighbors.
Find all possible numbers of tall boys in the arrangement.

Solution

Answer: any integer number from 11 to [N/2][N/2].

Consider arbitrary arrangement of the boys along the circle. We put the signs "+" or "-" before any boy in accordance with the following rule: we move clockwise along the circle and put the sign "+" before the boy if he is taller than the previous boy and we put the sign "-" if he is shorter than the previous one. It is evident that the boy is tall if and only if the sign "+" stands before him and the sign "-" stands after him. (Note that since the tallest boy among all NN boys is tall, there exist the signs "+" as well as the signs "-" in any arrangement.) Therefore, the number of tall boys in the arrangement is equal to the number of alternations of "+" and "-". It is evident that the number of these alternations is less than or equal to [N/2][N/2].

Now we show that for any bb, 1b[N/2]1 \le b \le [N/2], there exists an arrangement with exactly bb tall boys.

We number all boys in accordance with their heights: the shortest boy has the number 11, and the tallest boy has the number NN. We partition all boys into three groups A,BA, B, and CC: group AA contains the shortest boys, i.e. the boys with the numbers 1,2,,b1, 2, \dots, b; group BB contains the tallest boys, i.e. the boys with the numbers Nb+1,Nb+2,,NN-b+1, N-b+2, \dots, N (since b[N/2]b \le [N/2], i.e. 2bN2b \le N, there exists such partition); finally, group CC consists of all remaining boys (if NN is even and b=N/2b = N/2, then CC is empty).

We also number the places on the circle with numbers from 11 to NN. We place the boys from AA on the places with the numbers 2k12k-1, k=1,,bk=1, \dots, b; the boys from BB are placed on the places with the numbers 2k2k, k=1,,bk=1, \dots, b; the boys from CC are placed on the remaining places (with the numbers 2b+1,,N2b+1, \dots, N) so that the boy with the number NbN-b is placed on the place with the number 2b+1,2b+1, \dots, the boy with the number b+1b+1 is placed on the place with the number NN (see the fig.). It is easy to see that there exist exactly bb tall boys in this arrangement.

Figure 1

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.