Maths Olympiad Prep

Library / /466 of 740

, 2019

Combinatorics Difficulty 5.1 AIME, harder Find the answer United States

Problem:

You are trying to cross a 400 foot wide river. You can jump at most 4 feet, but you have many stones you can throw into the river. You will stop throwing stones and cross the river once you have placed enough stones to be able to do so. You can throw straight, but you can't judge distance very well, so each stone ends up being placed uniformly at random along the width of the river. Estimate the expected number NN of stones you must throw before you can get across the river.

An estimate of EE will earn 20min(NE,EN)3\left\lfloor 20 \min \left(\frac{N}{E}, \frac{E}{N}\right)^{3}\right\rfloor points.

Proposed by: Carl Schildkraut and Milan Haiman

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

100100+10099++1001100ln100 \frac{100}{100}+\frac{100}{99}+\cdots+\frac{100}{1} \approx 100 \ln 100
stone throws (it takes 100100k\frac{100}{100-k} moves on average to get a stone into a new section if kk sections already have a stone). So the answer is at least 100ln100450100 \ln 100 \approx 450.

On the other hand, if we divide the river into 200 2-foot sections, then once we have a stone in each section we are guaranteed to be able to cross. By a similar argument, we obtain that the answer is at most 200ln2001050200 \ln 200 \approx 1050.

Estimates near these bounds earn about 5 to 7 points. An estimate in between can earn close to 20 points.

To compute the answer (almost) exactly, we use the following argument.

Scale the problem so the river is of size 1, and the jumps are of size 0.01. Suppose that after nn throws, the stones thrown are located at positions 0<x1<x2<<xn<10 < x_{1} < x_{2} < \cdots < x_{n} < 1. Let x0=0x_{0} = 0, xn+1=1x_{n+1} = 1, r=0.01r = 0.01. Define P(n)P(n) to be the probability that you still cannot cross the river after nn throws. In other words, there exists ii such that xi+1xi>rx_{i+1} - x_{i} > r. Then our answer is n=0P(n)\sum_{n=0}^{\infty} P(n).

By PIE we can write
P(n)=i=1(1)i1(n+1i)max(1ir,0)n P(n) = \sum_{i=1}^{\infty} (-1)^{i-1} \binom{n+1}{i} \max (1 - i r, 0)^{n}
based on which intervals xi+1xix_{i+1} - x_{i} have length greater than rr. Now we switch the order of summation:
n=0P(n)=n=0i=1(1)i1(n+1i)max(1ir,0)n=i=1(1)i1n=0(n+1i)max(1ir,0)n \sum_{n=0}^{\infty} P(n) = \sum_{n=0}^{\infty} \sum_{i=1}^{\infty} (-1)^{i-1} \binom{n+1}{i} \max (1 - i r, 0)^{n} = \sum_{i=1}^{\infty} (-1)^{i-1} \sum_{n=0}^{\infty} \binom{n+1}{i} \max (1 - i r, 0)^{n}
Let x=max(1ir,0)x = \max (1 - i r, 0). Then
n=0(n+1i)xn=xi1j=0(i+ji)xj=xi1(1x)i+1 \sum_{n=0}^{\infty} \binom{n+1}{i} x^{n} = x^{i-1} \sum_{j=0}^{\infty} \binom{i+j}{i} x^{j} = \frac{x^{i-1}}{(1-x)^{i+1}}
Thus, our answer is
i=11/r(1)i1(1ir)i1(ir)i+1712.811 \sum_{i=1}^{\lfloor 1 / r \rfloor} (-1)^{i-1} \frac{(1 - i r)^{i-1}}{(i r)^{i+1}} \approx 712.811
where the last approximation uses the C++ code below.

```
#include <bits/stdc++.h>
using namespace std;
typedef long double ld;
int main() {
ld sum = 0, r = 0.01;
for (int i = 1; ; ++i) {
ld x = 1-r*i; if (x <= 0) break;
ld ex = pow(x/(1-x),i-1)/(1-x)/(1-x);
if (i&1) sum += ex;
else sum -= ex;
}
cout << fixed << setprecision(8) << sum;
}
```

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.