Let $n \geq 5$ be a positive integer. There are $n$ stars with values $1$ to $n$, respectively. Anya and Becky play a game. Before the game starts, Anya places the $n$ stars in a row in whatever order she wishes. Then, starting from Becky, each player takes the left-most or right-most star in the row. After all the stars have been taken, the player with the highest total value of stars wins; if their total values are the same, then the game ends in a draw. Find all $n$ such that Becky has a winning strategy. Proposed by Ho-Chien Chen
Problem
Source: 2024 Taiwan TST Round 1 Independent Study 1-C
Tags: Taiwan, combinatorics
06.03.2024 11:13
06.03.2024 11:46
We will prove that Becky has winning strategy only for $n$ such that $n \equiv 2 \pmod 4$. If $n = 2k + 1$ is odd for some $k \geq 2$, then Anya in her turn always takes a star from the same end of the line where Becky took her star. With this way Anya will always take all stars at even locations and Becky has to take only stars at odd locations. So if Anya puts the smallest $k + 1$ numbers $1, 2, \dots, k + 1$ on starts at odd locations, then total number that Becky will get will be $$1 + 2 + \cdots + k+1 = \frac{(k+1)(k+2)}{2} < \frac{(2k+1)(2k+2)}{4}$$which means Becky will get less than half of the sum and lose the game. If $n = 4k + 2$ for some $k \geq 1$, then Becky has a winning strategy. In this case Becky calculates the sum of the numbers on stars at even locations and the sum of the numbers on stars at odd locations. Note that these two sums cannot be equal because the sum of all numbers $$1 + 2 + \cdots + 4k+2 = (2k+1)(4k+3)$$is odd. So Becky will take all stars at the even locations if even sum is greater and all stars at odd locations otherwise. So Becky is guatanteed to win the game. If $n=4k+4$ for some $k \geq 1$, then Anya divides all numbers into two groups of $$k+2, k+3, \dots, 3k+2, 3k + 3$$and $$4k+4, 4k+3, \dots, 3k+4, k+1, k, \dots, 1$$Note that the sum of the first group is equal to the sum of the second group. Then Anya writes the first group on starts at odd locations and the second group on stars at even locations in given order. So the final order numbers on stars becomes $$k+2, 4k+4, k+3, 4k+3, \dots, 3k+2, 2, 3k + 3, 1$$ During the game Anya always takes a star from the same side of the line as Becky took in her turn. If Becky took more or equal number of stars from the left side than the right one, then Anya took all numbers $4k+4, 4k+3, \dots, 3k+4$. This means Anya's sum will be at least the sum of the numbers in the second group which is the half of the total sum. On the other hand, if Becky took more or equal number of stars from right side than the left one, then Anya took all numbers $3k+3, 3k+2, \dots, 2k+3$ and Becky took all numbers $1, 2, \dots, k+1$. This means Anya's sum will be at least the sum of the numbers in the first group, which is again equal to the half of the total sum. So with this way Anya is guaranteed to get at least half of the total sum which means Becky cannot win the game.
30.08.2024 21:42
\(Claim:\) Becky can win \(iff\) $n=4k+2$ for some $k$ \(proof:\) Denote the numbers written on the stars as $a_1,a_2,....,a_n$ If $n=4k+2$ Consider $2$ sets $A={a_1,a_3,...,a_{n-1}}$ and $B={a_2,a_4,...,a_n}$ Now $a_1+a_2+...+a_n=\frac{n(n+1)}{2}$ which is a \(odd\). So one of the sum of $A$ or $B$ is greater than the other \(WLOG\) suppose sum of $A$ is bigger. Then Becky will pick $a_1$ Now Anya must pick $a_2$ or $a_n$.Both of them are part of $B$. Suppose she takes $a_n$ Now Becky will pick $a_{n-1}$ and thus secure her win. Now \(iff\) $n \ne 4k+2$ for some $k$ \(Case\)$1$: $n=4k$ Anya will place the stars like this $4,2,1,3,8,6,5,7,...,4k,4k-2,4k-3,4k-1$ It is trivial Anya can force a draw. \(Case\)$2$: Now by the same logic $A$ and $B$ one must be bigger($A={a_1,a_3,...,a_n}$,$B={a_2,a_4,...,a_{n-1}}$) Now Anya has strategey to just pick $B$ It is trivial Anya can place stars such $B$ is bigger than $A$. $\square$