Skip to main content
OlympiadHQ

Browse · MathNet

Print

58th Ukrainian National Mathematical Olympiad

Ukraine counting and probability

Problem

Two players – Andriy and Olesya play the following game. On a table there is a rounded cake, which is cut by one of them into , different in weight sectors (pieces). Weight of every piece is known by each player. After that they choose pieces according the following rules. At first Olesya chooses 1 piece, then Andriy chooses 2 pieces, but so, that pieces, that are left on table after her turn, form a sector. Then they choose in turns 2 pieces each so, that after every step pieces, that are left on the table, form a sector. By his last turn one of players takes the last piece. Each of players aims, that total weight of part of the cake, he or she took, is bigger, than opponent's one. For which Olesya can cut the cake so, that if by her first step she takes the smallest piece? (Bogdan Rublyov)
Solution
Let's consider, which values can take.

If , let's consider the following distribution of weights. Pieces , and have weight 1, and other ones – 0. Then after Olesya's first step Andriy can not take non-zero pieces. Until Andriy takes by his turn piece or , Olesya just makes her step so, that sector of taken pieces is symmetrical to sector with number 0. If Andriy takes by his turn one of pieces or , then it does not matter which other piece he takes, Olesya can take two pieces weighting 1 and win.

If Andriy by his first step takes pieces of zero weight 1 and , Olesya chooses two big pieces with numbers 2 and 3. After this Andriy by his step can take at maximum two more big pieces, and Olesya by her turn – two more big pieces and win.

So, we assume, that Andriy by his first step chooses pieces 1 and 2 and we have the total weight . After that Olesya takes pieces 3 and 4 and we have the total weight . Andriy by any his step can not take piece , because Olesya takes two more big pieces and wins. So Andriy has --- to go in direction 4; 5; 6; ..., Olesya takes two neighboring in this direction. No body is beneficial to take a piece with number , because then opponent can take two big pieces at once. So, they take zero pieces until they come to big pieces number , and . According to the order of steps, Andriy takes big pieces with numbers and . Olesya by her last turn takes piece number , and by last but one – two pieces with numbers and , the last of which is big. In total we have, that Olesya's pieces' weight will be: , and Andriy's: . So, Olesya wins.

If , so by his first step Andriy will choose two the biggest pieces and win. If , we have in total pieces. Let's show, that Andriy always wins. Here number, which denotes the number of piece, also means its weight in comparisons. Let denote the smallest in weight piece, that has corresponding number, – the biggest, and – middle. We can assume that . Let Andriy take by his first step and does not win. This means, that Olesya could take set or and win. Let's consider all these cases. Case has contradiction. Really, as , and Andriy chooses , and Olesya has , so Olesya loses. If Olesya gets win after step , this means, that inequality is true: Then Andriy by his first step takes not , but . Then he can take by his next step pair of pieces, including 3 (Olesya will not reach it). Then Andriy will have at least set: . As Andriy wins. If Olesya gets win after step , this means, that inequality is true: If Andriy by his first step plays , Olesya can not take and , because Andriy will take winning combination . Thus, Olesya can win with combination , thus inequality must be true: If Andriy by his first step will play , so Olesya can not play and , because then Andriy takes winning combination . Thus, Olesya must win with combination , and thus inequality must be true: If to add two last ratios, we have contradiction: as , , , , . Thus, Andriy has winning strategy, knowing ratio of weights of pieces.
Final answer
Exactly for odd n greater than one; for even n, Olesya cannot guarantee a win.

Techniques

Games / greedy algorithmsInvariants / monovariantsColoring schemes, extremal arguments