There is a queue of $n{}$ girls on one side of a tennis table, and a queue of $n{}$ boys on the other side. Both the girls and the boys are numbered from $1{}$ to $n{}$ in the order they stand. The first game is played by the girl and the boy with the number $1{}$ and then, after each game, the loser goes to the end of their queue, and the winner remains at the table. After a while, it turned out that each girl played exactly one game with each boy. Prove that if $n{}$ is odd, then a girl and a boy with odd numbers played in the last game. Proposed by A. Gribalko
Problem
Source: All-Russian MO 2023 Final stage 10.4
Tags: combinatorics, All Russian Olympiad, graph theory, game, ilostthegame
18.05.2023 11:24
Solved with L567, M.V. Adhitya and Siddharth03
27.05.2023 09:44
starchan wrote:
Consider $n=5, a=2, b=3, i=5$. Since $2\le i\le 5$, $i\to i+b$ it should go to 3. How will this path work when $2$ is deleted? It seems like it only jumps $b-1$ steps? I'd feel like a troll if this argument is actually correct; I bumped into the same idea and was sure it was wrong by checking some small counterexamples.
27.05.2023 13:38
28.05.2023 19:23
Rephrased problem: Let $n$ be an odd integer. Consider a hamilton path on $(\mathbb{Z}/n\mathbb{Z})^2$ where I can only go to $(x+1,y)$ or $(x,y+1)$ from $(x,y)$. A hamilton path started on $(0,0)$. Prove that if it ends on $(a,b)$ where $0\le a,b<n$, then $a,b$ are even.
10.06.2023 13:34
starchan wrote: Solved with L567, M.V. Adhitya and Siddharth03
Nice solution. But...... Can you define salty and sugar further?
10.06.2023 20:19
Sourorange wrote: starchan wrote: Solved with L567, M.V. Adhitya and Siddharth03 /quote] Nice solution. But...... Can you define salty and sugar further? The solution is not correct, as I've pointed out.
24.06.2023 11:02
CANBANKAN wrote: Rephrased problem: Let $n$ be an odd integer. Consider a hamilton path on $(\mathbb{Z}/n\mathbb{Z})^2$ where I can only go to $(x+1,y)$ or $(x,y+1)$ from $(x,y)$. A hamilton path started on $(0,0)$. Prove that if it ends on $(a,b)$ where $0\le a,b<n$, then $a,b$ are even.
Nice solution!
16.07.2023 07:00
CANBANKAN wrote: Sourorange wrote: starchan wrote: Solved with L567, M.V. Adhitya and Siddharth03 /quote] Nice solution. But...... Can you define salty and sugar further? The solution is not correct, as I've pointed out. Yep I think so. Thanks CBK!
21.07.2023 02:51
i find the problems from russian olympiad really intersting . they are banned or not from the imo by the way
29.07.2023 03:52
Almost the same setup as AIME I 2023/14, although more is needed to solve this problem
29.07.2023 06:19
Much more. AIME I 23/14 is the easy part of the problem.
03.04.2024 20:10
Solved with kingu who came up with the idea of representing the games as ordered pairs and simply thinking of switches. Why is our solution much simpler than the previous solutions? We represent each game as an ordered pair $(G,B)$ where $G$ is the number of the girl playing and $B$ the number of the boy. For example, the first game will correspond to the pair $(1,1)$. Claim : If the final game is $(g,b)$ then, $g\equiv b \pmod{2}$. Proof : We observe that after each game, the game changes from $(x,y) \to (x',y')$ such that $x'+y' \equiv x+y+1 \pmod{n}$ throughout all possibilities. This means, at the final position, $(g,b)$ we must have $g+b \equiv 1 \pmod{n}$ (since we start with a sum of 2, and there are $n^2$ games). Now, since $g+b \geq2$ and $g+b\leq2n$, we must have $g+b=n+1$, which is an even number. Thus, it follows that $g\equiv b \pmod{2}$ as claimed. Now, we only need to exclude the case when $g\equiv b \equiv 0 \pmod{2}$. For this, we make the simple observation that, after $n$ loses for each side (girls or boys - separately) then, the player of that side who is playing the current match becomes $1$. Thus, if at the end of all $n^2$ matches if the girls suffered $M \equiv m \pmod{n}$ loses and the boys suffered $K\equiv k \pmod{n}$ loses we immediately notice that $m+k \equiv 0 \pmod{n}$ since there are total $n^2$ matches for someone to lose. Now, assume that it is possible for $g$ to be even. It immediately follows that $m$ is odd (we start from 1 and the final player number must be $m+1 \pmod{n}$). Then, we have that $m\geq 1$ and $m\leq n-2$. So, $m+k \geq 2$ and $m+k \leq 2n-2$. But since we established before that $m+k \equiv 0 \pmod{n}$, we must have $m+k =n$ from which it follows that $k$ is even, since $m$ is odd. But this means, the final player number of the boys $b = k+1$ which is obviously odd. But this is a clear contradiction to our previous claim. Thus, our assumption must have been false and it is indeed impossible for $g$ to be even. The only remaining possibility is for both $g$ and $b$ to be odd which is indeed what we desired to have.
20.10.2024 08:44
For the match between girl $j$ and boy $k$ with $j,k\in\left\{1,2,\cdots,n\right\}$, we will associate it with $(j,k)$ with the positive $x$ direction being right and the positive $y$ direction being up. Then, the sequence of games corresponds to a nonintersecting path on the $n$ by $n$ grid of $(j,k)$ with $j,k\in\left\{1,2,\cdots,n\right\}$ covering all elements with $(j,k)$ going to $(j,k+1)$ or $(j+1,k)$ for $j,k\in\left\{1,2,\cdots,n\right\}$ wrapping around from $n+1$ to $1$ if $j+1=n+1$ or $k+1=n+1$ starting on $(1,1)$. We want to show that the path ends on $(j,k)$ for $j$ and $k$ odd positive integers at most $n$. Consider deleting the connections between two consecutive games if they wrap around. Then, we end up with some number of nonintersecting paths which go only right and up which cover the grid. For each path, let its lower left endpoint be its start and let its upper right endpoint be its end. Furthermore, consider the graph on the endpoints of all paths so that two endpoints are connected if and only if they correspond to consecutive games such that the original path wraps around or they are endpoints of the same new path. This must be a single path. Also, we will say that a path is after another one if it corresponds to games played later. Claim $1$. We have that the start of any path is on the left or bottom edge of the grid including all relevant corners and the end of any path which is not the last path is on the right or top edge of the grid including the upper right corner and no other corners. Proof. The start of the first path is the lower left corner. Then, the start of any subsequent path must be the result after wrapping around, so the start of any path is on the left or bottom edge of the grid including all relevant corners. From the end of any path which is not the last path, we must be able to wrap around. This cannot include the upper left or bottom right corners since wrapping around would result in going to the lower left corner, which corresponds to the first game, a contradiction, so the end of any path which is not the last path is on the right or top edge of the grid including the upper right corner and no other corners. Claim $2$. There are exactly $n$ paths. Proof. Consider the diagonal $A$ of points of the grid from the top left to the bottom right corners and consider the diagonal $B$ of points of the grid directly above the points of diagonal $A$, so that there are $n$ points in $A$ and $n-1$ points in $B$. Note that each path intersects $A$ at at most $1$ point. Since the paths must cover $A$ there must be at least $n$ paths. However, each path other than the last one must intersect $B$ at at least $1$ point, so the number of paths other than the last one must be at most $n-1$. This implies that there must be exactly $n$ paths. Now, note that for equality to hold for claim $2$, each path must intersect $A$ at exactly $1$ point and the last path must not intersect $B$. This implies that the last path ends on a point in $A$. Now, consider the set of all starts of paths. Number these counterclockwise starting from the top left corner from $1$ to $n$. For each start of a path that is not the lower left corner, number the end of a path which corresponds to the previous game played before wrapping around with the same number. Let the lower left corner be numbered with $a$ and let the start of the last path be numbered with $b$. Now, we see that since the paths cover the grid and do not intersect, we must connect the $k$th start of a path other than the one numbered with $b$ going counterclockwise from the top left with the $k$th numbered end of a path going clockwise from the top left. In particular, let $f$ be the permutation of $1,2,\cdots,n$ so that $f(x)=y$ if the path with start numbered $x$ has an end numbered $y$ for $x=1,2,\cdots,n$ with $x\ne{}b$ and $f(b)=a$. Then, we must have that $f$ is the result of performing the permutation $\sigma$ sending $1,2,3,\cdots,n$ to $a+1,a+2,\cdots,n,1,2,\cdots,a$ and then the permutation swapping $b$ and $n$ and fixing all other positive integers at most $n$. Now, note that $f$ must be a cycle of length $n$ since traversing the sequence of games must traverse $a,f(a),\cdots,f^{n-1}(a)$ as the starts of paths in that order. This implies that $f$ is even. Since $\sigma$ is even since it has $a(n-a)\equiv0\pmod{2}$ inversions, the permutation swapping $b$ and $n$ must be even. This implies that $b$ is odd. Now, consider the intersections of the paths with starts numbered $1,2,\cdots,n$ with $A$. Since the paths do not intersect, these intersections must be in order starting from the top left corner and ending with the bottom right corner. This implies that the intersection of the path with a start numbered $b$, which is the last path, must intersect $A$ at $(b,n+1-b)$, so the girl and boy with numbers $b$ and $n+1-b$, respectively, must play in the last game. Since $b$ and $n+1-b$ are both odd, we are done.