Download tasks/pb-advanced-001/solution/solve.sh from HuggingFaceSwarms/IMO-ProofBench: direct link, hf CLI and curl.
- Browser
- Download file 4.02 kB
-
https://huggingface.co/datasets/HuggingFaceSwarms/IMO-ProofBench/resolve/main/tasks/pb-advanced-001/solution/solve.sh
- Command line
-
hf download hf://datasets/HuggingFaceSwarms/IMO-ProofBench/tasks/pb-advanced-001/solution/solve.sh
-
curl -L -o solve.sh https://huggingface.co/datasets/HuggingFaceSwarms/IMO-ProofBench/resolve/main/tasks/pb-advanced-001/solution/solve.sh
4.02 kB
| set -eu | |
| PROOF=${PROOF:-/app/proof.md} | |
| mkdir -p "$(dirname -- "$PROOF")" | |
| cat > "$PROOF" <<'IMO_PROOF_c5a67279aaf3a012ed4c4637fbb1a168892e723639ab733188bad1492b6ee946' | |
| Let's look at the following lemma using the intermediate value property. | |
| <Lemma 1> If a sequence of non-negative integers $\left(x_{n}\right)_{n=1}^{\infty}$ satisfies $x_{n+1}-x_{n} \in\{0,1\}$ and for any $M>0$, there exists a positive integer $n$ such that $\frac{n}{x_{n}}>M$, then there are infinitely many $n$ such that $\frac{n}{x_{n}}$ is a positive integer. | |
| <Proof of Lemma 1> First, let $k_{0}$ be the smallest $k$ such that $x_{k} \geq 1$. Now, we will prove that for any integer $m \geq k_{0}$, there exists an $n$ such that $\frac{n}{x_{n}}=m$. | |
| (1) There exists a positive integer $n$ such that $\frac{n}{x_{n}}>m$, and let $n_{0}$ be the smallest such $n$. Since $\frac{k_{0}}{x_{k_{0}}} \leq k_{0}$, we have $n_{0} \geq k_{0}+1$. | |
| (2) By the minimality of $n_{0}$ and $n_{0} \geq k_{0}+1$, we have $\frac{n_{0}-1}{x_{n_{0}-1}} \leq m$. If $\frac{n_{0}-1}{x_{n_{0}-1}}<m$, then | |
| \[ | |
| n_{0}<m x_{n_{0}-1}+1 \quad \Rightarrow \quad n_{0} \leq m x_{n_{0}-1}. | |
| \] | |
| However, from $\frac{n_{0}}{x_{n_{0}}}>m$, we have $m x_{n_{0}}<n_{0}$, so combining the two results gives | |
| \[ | |
| m x_{n_{0}-1} \geq n_{0}>m x_{n_{0}}, | |
| \] | |
| which leads to $x_{n_{0}-1}>x_{n_{0}}$. This contradicts the condition of the problem that $x_{n+1}-x_{n} \in\{0,1\}$. Therefore, we must have $\frac{n_{0}-1}{x_{n_{0}-1}}=m$, and the proof is complete. | |
| Therefore, for any integer $m \geq k_{0}$, there exists an $n$ such that $\frac{n}{x_{n}}=m$, and it is obvious that these values of $n$ are different for different $m$, so the proof is complete. \qed | |
| The following lemma is a Bernoulli-type inequality. | |
| <Lemma 2> For any integer $k \geq 2$, we have $2^{k} \geq \frac{k^{2}}{2}$. | |
| <Proof of Lemma 2> Since $k \geq 2$, by the binomial theorem, we have | |
| \[ | |
| 2^{k} \geq 1+k+\binom{k}{2}=1+\frac{k}{2}+\frac{k^{2}}{2}>\frac{k^{2}-k}{2}, | |
| \] | |
| so the proof is complete. $\qed$ | |
| Now, let's prove the main problem. | |
| <Step 1> Finding an upper bound for $A_{n}$ | |
| <Step 1.1> For a positive integer $a$ and $k \geq 2$, let a number of the form $a^{k}$ be called a $k$-th power. Then, for any $k$-th power $a^{k}$ to be less than or equal to $n$, we must have | |
| \[ | |
| a^{k} \leq n \quad \Rightarrow \quad a \leq n^{\frac{1}{k}}, | |
| \] | |
| so the number of $k$-th powers less than or equal to $n$ is less than or equal to $n^{\frac{1}{k}}$. | |
| <Step 1.2> If any $k$-th power other than 1 is less than or equal to $n$, then we must have $2^{k} \leq n$, so $k \leq \log _{2} n$. | |
| <Step 1.3> By (1) and (2) above, $A_{n}$ satisfies the following: | |
| \[ | |
| A_{n} \leq \sum_{k=2}^{\left[\log _{2} n\right]} n^{\frac{1}{k}} \leq\left(\left[\log _{2} n\right]-1\right) n^{\frac{1}{2}}<\log _{2} n \cdot n^{\frac{1}{2}}. | |
| \] | |
| <Step 2> Solving the problem using the lemma | |
| Now, let the sequence $\left(x_{n}\right)_{n=1}^{\infty}$ be defined as $x_{n}=0$ if $n \leq 2024$ and $x_{n}=A_{n-2024}$ for $n \geq 2025$. | |
| <Step 2.1> Since $A_{1}=1$ and $A_{n+1}-A_{n}$ is 1 if $n+1$ is a perfect power and 0 otherwise, $x_{n}$ satisfies $x_{n+1}-x_{n} \in\{0,1\}$ for any $n \geq 1$. | |
| <Step 2.2> By <Step 1>, we have $A_{2^{2 k}} \leq 2 k \cdot 2^{k}$, so by <Lemma 2>, we have | |
| \[ | |
| \frac{2^{2 k}}{A_{2^{2 k}}} \geq \frac{2^{k}}{2 k} \geq \frac{k}{4}. | |
| \] | |
| Since $A_{n}$ is an increasing sequence, we have $A_{n} \geq x_{n}$, so $\frac{n}{x_{n}} \geq \frac{n}{A_{n}}$. Combining these results gives | |
| \[ | |
| \frac{2^{2 k}}{x_{2^{2 k}}} \geq \frac{2^{2 k}}{A_{2^{2 k}}} \geq \frac{k}{4}, | |
| \] | |
| so for any $M>0$, there exists an $n$ such that $\frac{n}{x_{n}}>M$. | |
| <Step 2.3> By (1), (2), and <Lemma 1> above, there are infinitely many $n$ such that $x_{n} \mid n$. Therefore, there are also infinitely many $n$ such that | |
| \[ | |
| \frac{n+2024}{A_{n}}=\frac{n+2024}{x_{n+2024}} | |
| \] | |
| is a positive integer. | |
| IMO_PROOF_c5a67279aaf3a012ed4c4637fbb1a168892e723639ab733188bad1492b6ee946 | |