Maths Olympiad Prep

Library / /958 of 1394

, 2018

Combinatorics Difficulty 5.5 AIME, harder Prove it United States

Problem:

There are 20182018 frogs in a pool and there is 11 frog on the shore. In each time-step thereafter, one random frog moves position. If it was in the pool, it jumps to the shore, and vice versa. Find the expected number of time-steps before all frogs are in the pool for the first time.

Solution

Solution:

Consider the general case of nn frogs. Let EiE_{i} be the expected time for all frogs to enter the pool when ii frogs are on the shore and nin-i frogs are in the pool. We have E0=0E_{0}=0, En=1+En1E_{n}=1+E_{n-1}, and
Ei=inEi1+ninEi+1+1 E_{i} = \frac{i}{n} E_{i-1} + \frac{n-i}{n} E_{i+1} + 1
for 0<i<n0 < i < n. Define fif_{i} so that
Ei=fi(n1)(n2)(i)+Ei1 E_{i} = \frac{f_{i}}{(n-1)(n-2) \cdots (i)} + E_{i-1}
Then by plugging this equation into the first equation, we can show that
fi=n(n1)(i+1)+(ni)fi+1 f_{i} = n(n-1) \cdots (i+1) + (n-i) f_{i+1}
Furthermore, we know that fn=1f_{n} = 1. Therefore
f1=i=1nn!i!(n1)!(ni)!=(n1)!i=1n(ni)=(n1)!(2n1). \begin{aligned} f_{1} & = \sum_{i=1}^{n} \frac{n!}{i!} \frac{(n-1)!}{(n-i)!} \\ & = (n-1)! \sum_{i=1}^{n} \binom{n}{i} \\ & = (n-1)!\left(2^{n}-1\right) . \end{aligned}
Therefore
E1=(n1)!(2n1)(n1)!+E0=2n1 E_{1} = \frac{(n-1)!\left(2^{n}-1\right)}{(n-1)!} + E_{0} = 2^{n}-1
Plugging in n=2018n=2018 yields E1=220181E_{1} = 2^{2018}-1.

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.