Download tasks/pb-advanced-021/tests/reference.json from HuggingFaceSwarms/IMO-ProofBench: direct link, hf CLI and curl.
- Browser
- Download file 7.51 kB
-
https://huggingface.co/datasets/HuggingFaceSwarms/IMO-ProofBench/resolve/main/tasks/pb-advanced-021/tests/reference.json
- Command line
-
hf download hf://datasets/HuggingFaceSwarms/IMO-ProofBench/tasks/pb-advanced-021/tests/reference.json
-
curl -L -o reference.json https://huggingface.co/datasets/HuggingFaceSwarms/IMO-ProofBench/resolve/main/tasks/pb-advanced-021/tests/reference.json
7.51 kB
| { | |
| "problem": "Infinitely many boys and girls stand in a line alternatingly. For\n a given positive integer $N$, they choose positive integers according\n to the following rules:\n\n (1) The first $N$ people in the line choose any positive integers\n they want.\n\n (2) For each $m>N$, the $m$-th person chooses the number that is\n one more than the number of appearances of the number chosen by the\n $(m-1)$-th person appears among the numbers chosen by the first $m-2$\n people.\n\n Let $b_{i}$ be the number chosen by the $i$-th boy, and $g_{i}$\n be the number chosen by the $i$-th girl. Prove that at least one\n of the following holds:\n\n (i) There exists a sufficiently large integer $M$ such that $\\{b_{n}\\}_{n\\ge M}$\n is a periodic sequence.\n\n (ii) There exists a sufficiently large integer $M$ such that $\\{g_{n}\\}_{n\\ge M}$\n is a periodic sequence.", | |
| "solution": "Let $N$ be the given positive integer. Let $s_{m}$ be the number\n chosen by the $m$-th person in the line. For $m\\ge N+1$, $s_{m}$\n is one more than the number of appearances of $s_{m-1}$ in the sequence\n $s_{1},s_{2},\\dots,s_{m-2}$. Let $b_{i}=s_{2i-1}$ be the number\n chosen by the $i$-th boy, and $g_{i}=s_{2i}$ be the number chosen\n by the $i$-th girl. We want to show that at least one of the sequences\n $\\{b_{n}\\}_{n\\ge M}$ or $\\{g_{n}\\}_{n\\ge M}$ is periodic for some\n sufficiently large integer $M$.\n\n\n Let $M>\\max\\left(s_{1},\\ldots,s_{2N}\\right)$. We first prove that\n some integer appears infinitely many times. If not, then the sequence\n contains arbitrarily large integers. The first time each integer larger\n than $M$ appears, it is followed by a 1 . So 1 appears infinitely\n many times, which is a contradiction.\n\n\n Now we prove that every integer $x\\geq M$ appears at most $M-1$\n times. If not, consider the first time that any $x\\geq M$ appears\n for the $M^{\\text{th }}$ time. Up to this point, each appearance\n of $x$ is preceded by an integer which has appeared $x\\geq M$ times.\n So there must have been at least $M$ numbers that have already appeared\n at least $M$ times before $x$ does, which is a contradiction.\n\n\n Thus there are only finitely many numbers that appear infinitely many\n times. Let the largest of these be $k$. Since $k$ appears infinitely\n many times there must be infinitely many integers greater than $M$\n which appear at least $k$ times in the sequence, so each integer\n $1,2,\\ldots,k-1$ also appears infinitely many times. Since $k+1$\n doesn't appear infinitely often there must only be finitely many numbers\n which appear more than $k$ times. Let the largest such number be\n $l\\geq k$. From here on we call an integer $x$ big if $x>l$, medium\n if $l\\geq x>k$ and small if $x\\leq k$. To summarise, each small\n number appears infinitely many times in the sequence, while each big\n number appears at most $k$ times in the sequence.\n\n\n Choose a large enough $N^{\\prime}>2N$ such that $s_{N^{\\prime}}$\n is small, and in $s_{1},\\ldots,s_{N^{\\prime}}$ :\n \\begin{enumerate}\n \\item every medium number has already made all of its appearances;\n \\item every small number has made more than $\\max(k,N)$ appearances.\n \\end{enumerate}\n Since every small number has appeared more than $k$ times, past this\n point each small number must be followed by a big number. Also, by\n definition each big number appears at most $k$ times, so it must\n be followed by a small number. Hence the sequence alternates between\n big and small numbers after $s_{N^{\\prime}}$.\n\n\n \\textbf{Lemma 1. }Let $g$ be a big number that appears after $s_{N^{\\prime}}$.\n If $g$ is followed by the small number $h$, then $h$ equals the\n amount of small numbers which have appeared at least $g$ times before\n that point.\n\n\n \\emph{Proof. }By the definition of $N^{\\prime}$, the small number\n immediately preceding $g$ has appeared more than $\\max(k,2N)$ times,\n so $g>\\max(k,2N)$. And since $g>2N$, the $g^{\\text{th }}$ appearance\n of every small number must occur after $s_{2N}$ and hence is followed\n by $g$. Since there are $k$ small numbers and $g$ appears at most\n $k$ times, $g$ must appear exactly $k$ times, always following\n a small number after $s_{2N}$. Hence on the $h^{\\text{th }}$ appearance\n of $g$, exactly $h$ small numbers have appeared at least $g$ times\n before that point.\n\n\n Denote by $s_{[i,j]}$ the subsequence $s_{i},s_{i+1},\\ldots,s_{j}$.\n\n\n \\textbf{Lemma 2. }Suppose that $i$ and $j$ satisfy the following\n conditions:\n\n (a) $j>i>N^{\\prime}+2$,\n\n (b) $s_{i}$ is small and $s_{i}=s_{j}$,\n\n (c) no small value appears more than once in $s_{[i,j-1]}$.\n\n Then $s_{i-2}$ is equal to some small number in $s_{[i,j-1]}$.\n\n\n \\emph{Proof. }Let $\\mathcal{I}$ be the set of small numbers that\n appear at least $s_{i-1}$ times in $s_{[1,i-1]}$. By Lemma 1, $s_{i}=|\\mathcal{I}|$.\n Similarly, let $\\mathcal{J}$ be the set of small numbers that appear\n at least $s_{j-1}$ times in $s_{[1,j-1]}$. Then by Lemma $1,s_{j}=|\\mathcal{J}|$\n and hence by (b), $|\\mathcal{I}|=|\\mathcal{J}|$. Also by definition,\n $s_{i-2}\\in\\mathcal{I}$ and $s_{j-2}\\in\\mathcal{J}$.\n\n\n Suppose the small number $s_{j-2}$ is not in $\\mathcal{I}$. This\n means $s_{j-2}$ has appeared less than $s_{i-1}$ times in $s_{[1,i-1]}$.\n By (c), $s_{j-2}$ has appeared at most $s_{i-1}$ times in $s_{[1,j-1]}$,\n hence $s_{j-1}\\leq s_{i-1}$. Combining with $s_{[1,i-1]}\\subset s_{[1,j-1]}$,\n this implies $\\mathcal{I}\\subseteq\\mathcal{J}$. But since $s_{j-2}\\in\\mathcal{J}\\backslash\\mathcal{I}$,\n this contradicts $|\\mathcal{I}|=|\\mathcal{J}|$. So $s_{j-2}\\in\\mathcal{I}$,\n which means it has appeared at least $s_{i-1}$ times in $s_{[1,i-1]}$\n and one more time in $s_{[i,j-1]}$. Therefore $s_{j-1}>s_{i-1}$.\n\n\n By (c), any small number appearing at least $s_{j-1}$ times in $s_{[1,j-1]}$\n has also appeared $s_{j-1}-1\\geq$ $s_{i-1}$ times in $s_{[1,i-1]}$.\n So $\\mathcal{J}\\subseteq\\mathcal{I}$ and hence $\\mathcal{I}=\\mathcal{J}$.\n Therefore, $s_{i-2}\\in\\mathcal{J}$, so it must appear at least $s_{j-1}-s_{i-1}=1$\n more time in $s_{[i,j-1]}$.\n\n\n For each small number $s_{n}$ with $n>N^{\\prime}+2$, let $p_{n}$\n be the smallest number such that $s_{n+p_{n}}=s_{i}$ is also small\n for some $i$ with $n\\leq i<n+p_{n}$. In other words, $s_{n+p_{n}}=s_{i}$\n is the first small number to occur twice after $s_{n-1}$. If $i>n$,\n Lemma 2 (with $j=n+p_{n}$ ) implies that $s_{i-2}$ appears again\n before $s_{n+p_{n}}$, contradicting the minimality of $p_{n}$. So\n $i=n$. Lemma 2 also implies that $p_{n}\\geq p_{n-2}$. So $p_{n},p_{n+2},p_{n+4},\\ldots$\n is a nondecreasing sequence bounded above by $2k$ (as there are only\n $k$ small numbers). Therefore, $p_{n},p_{n+2},p_{n+4},\\ldots$ is\n eventually constant and the subsequence of small numbers is eventually\n periodic with period at most $k$.", | |
| "grading_guidelines": "(Partial)\n 1. Proved that there are only finitely many integers that appear infinitely many times in $\\{b_{n}\\}\\cup\\{g_{n}\\}$.\n 2. Came up with multiple observations that may lead to the proof, but failed to rigorously combine them.\n(Almost)\n 1. Solution is almost complete, but made minor mistakes which are not negligible.", | |
| "problem_id": "PB-Advanced-021", | |
| "level": "advanced", | |
| "category": "Combinatorics", | |
| "source": "(Modified) IMO 2024 P3", | |
| "max_score": 7, | |
| "difficulty": "IMO-hard", | |
| "short_answer": " " | |
| } | |