text
stringlengths
0
66.2k
E_1 =1 + (1/4)(1 + E_1) + (3/4) E_2
=1 + 1/4 + (1/4) E_1 + (3/4) E_2
Thus,
E_1 - (1/4) E_1 = 5/4 + (3/4) E_2
(3/4) E_1 =5/4 + (3/4) E_2
Multiply both sides by 4/3:
E_1 = 5/3 + E_2
Then, substitute E_1 into E_2 equation:
E_2 =1 + (1/2)(5/3 + E_2) + (1/2) E_3
=1 + 5/6 + (1/2) E_2 + (1/2) E_3
= (11/6) + (1/2) E_2 + (1/2) E_3
Multiply all terms by 6 to eliminate denominators:
6 E_2 =11 + 3 E_2 + 3 E_3
Thus,
3 E_2 -3 E_3 =11
But from E_3 =1 + (3/4) E_2,
E_3 -1 = (3/4) E_2 => E_2 = (4/3)(E_3 -1)
Substitute into 3 E_2 -3 E_3 =11:
3*(4/3)(E_3 -1) -3 E_3 =11
4(E_3 -1) -3 E_3 =11
4 E_3 -4 -3 E_3 =11
E_3 -4 =11 => E_3=15.
So E_3=15. Hmm. So with N=4, starting at 3, the expected time is 15. Hmm.
Looking at the results:
N=2: E_1=3 = 2*1 +1 ?
Wait 2*1 +1=3, yes.
N=3: E_2=7=3*2 +1?
3*2 +1=7, yes.
N=4: E_3=15=4*3 +3? 4*3=12, 12+3=15? Not sure.
Alternatively, 3*5=15. Hmm, but 5 is N+1.
Alternatively, 15= (4*5)/ (something). Hmm.
Alternatively, let's see:
For N=2, E_{N-1}=3= (2^2 -1)
For N=3, E_{2}=7= (3^2 - 2)
For N=4, E_3=15= (4^2 -1) Hmm, 4² is 16-1=15. Wait, so N=2: 2² -1=3, N=3: 3² -2=7, N=4:4² -1=15? Doesn't follow a clear pattern.
Alternatively, perhaps the formula is E_{N-1} = N(N-1). For N=2: 2(1)=2, which doesn't match. Hmm.
Alternatively, looking at N=2:3, N=3:7, N=4:15.
3,7,15. The differences between them are 4,8. Hmm, doubling each time? 3, 3+4=7, 7+8=15, next would be 15+16=31? Maybe for N=5 it would be 31?
Alternatively, this looks like 2^(N) -1. For N=2:3=2^2-1, N=3:7=2^3-1, N=4:15=2^4 -1. Wait, yes! That works.
Wait N=2: 2^2 -1=3, N=3:2^3 -1=7, N=4:2^4 -1=15. So the pattern seems to be E_{N-1}=2^{N} -1.
Wait, so if that's the case, then for N=2019, the expected time would be 2^{2019} -1. But that seems astronomically large, and the problem states there are 2018 frogs in the pool and 1 on the shore, so N=2019. But 2^2019 is way too big. That can't be right. There must be a mistake here.
Wait, let me check N=4 again. If the formula is 2^N -1, then for N=4 it would be 15, which matches. But let me see for N=1? If N=1, starting at 0 frogs in the pool (since N-1=0), but the problem would be to reach 1 frog in the pool. But starting at 0, the first step must go to 1, so expected time is 1. But 2^1 -1=1, wh...
Wait, but let me think again. For N=2, the expected time was 3, which is 2^2 -1. For N=3, 7=2^3 -1, and N=4, 15=2^4 -1. So it seems that the formula is indeed E_{N-1}=2^N -1.
But why does this happen?
Wait, perhaps there's a different way to model this. Let me think of the process as follows: each time a frog moves, it's like a Bernoulli trial where with probability p, the number of frogs in the pool increases by 1, and with probability q, it decreases by 1. The process is a Markov chain with transitions depending o...
However, in the cases we computed, the expected time ended up as 2^N -1. Let me see if there's a reasoning for that.
Suppose that each time you have a frog on the shore, the chance to get it back is 1/N each step. So the expected time to get that one frog back is N. But since sometimes you might lose frogs, it's more complicated.
Alternatively, maybe the process can be seen as a coupon collector problem, but not exactly.
Alternatively, let's think recursively. Suppose that E_k is the expected time to reach N from k. We found for small N that E_{N-1}=2^N -1. Let me see if this holds for N=1:
N=1: starting at 0 frogs in pool (since N-1=0), need to reach 1. The first step must move the frog from shore to pool, so E_0=1. Which is 2^1 -1=1. So that works.