text stringlengths 0 66.2k |
|---|
\( a k² + b k + c = 1 + \frac{k}{N} [a(k-1)^2 + b(k -1) + c] + \frac{N -k}{N}[a(k+1)^2 + b(k+1) + c] \) |
This will take time, but let me compute step by step. |
First, compute the terms inside the brackets: |
First term inside first fraction: \( a(k² - 2k +1) + b(k -1) + c = a k² - 2a k + a + b k - b + c \) |
Second term inside second fraction: \( a(k² + 2k +1) + b(k +1) + c = a k² + 2a k + a + b k + b + c \) |
Now, multiplying by their coefficients: |
First part: \( \frac{k}{N} [a k² -2a k + a + b k - b + c] \) |
Second part: \( \frac{N -k}{N}[a k² + 2a k + a + b k + b + c] \) |
Adding these two parts and adding 1, set equal to LHS. |
This seems very tedious. Maybe there's a better approach. |
Alternatively, let me consider the problem in terms of the probability of moving towards the target. |
Wait, another idea: the expected time can be calculated as the sum over all possible paths multiplied by their probabilities and the time taken. But that might be too complex. |
Alternatively, maybe consider that each time the frog on the shore jumps in, we make progress, but sometimes we lose progress. This seems similar to a biased random walk with absorbing barrier at 2019. |
Alternatively, maybe use the concept of "states" and set up equations for E_k in terms of E_{k+1} and E_{k-1}. |
Wait, let me think recursively. Let me denote E_k as the expected time from state k. |
We have E_{2019}=0. |
For k < 2019, |
E_k = 1 + (k/N) E_{k-1} + ((N -k)/N) E_{k+1} |
Let me rearrange this equation to express E_{k+1} in terms of E_k and E_{k-1}: |
Multiply both sides by N: |
N E_k = N + k E_{k-1} + (N -k) E_{k+1} |
Rearranged: |
(N -k) E_{k+1} = N E_k - N - k E_{k-1} |
Thus, |
E_{k+1} = [N E_k - N -k E_{k-1}]/(N -k) |
Hmm. This recursive formula might allow us to express E_{k} in terms of previous terms. Maybe we can find a pattern here. |
Alternatively, let me try to compute E_{2018} first, since that's what we need. Let's see if we can compute E_{2018} in terms of E_{2017} and E_{2019}: |
From the equation, |
E_{2018} = 1 + (2018/2019) E_{2017} + (1/2019) E_{2019} |
But E_{2019}=0, so: |
E_{2018} = 1 + (2018/2019) E_{2017} |
Similarly, E_{2017} = 1 + (2017/2019) E_{2016} + (2/2019) E_{2018} |
Hmm, this seems like a system where each equation depends on the next and previous terms, making it difficult to compute directly. However, perhaps we can find a pattern by assuming that the solution has a particular form. |
Alternatively, let me consider small cases and see if I can find a pattern. |
Let me try with a smaller number of frogs, say N = 2 (so 1 frog in the pool and 1 on the shore initially). Wait, but in the problem, starting at N-1 frogs in the pool. So if N=2, starting at 1 frog in the pool, 1 on the shore. The expected time to reach 2 frogs in the pool. |
Let me compute E_1 for N=2. |
Equations: |
E_0 is irrelevant since we start at 1. |
E_1 = 1 + (1/2) E_0 + (1/2) E_2 |
But E_2 =0, |
Thus, |
E_1 =1 + (1/2) E_0 + 0 |
But E_0 would be the expected time from 0 frogs in the pool. But since we can't go below 0, but in our problem, starting at 1, so maybe E_0 is undefined? Wait, actually in the problem, when you have 0 frogs in the pool, all frogs are on the shore, but since there are N frogs total, so 0 in pool means N on shore. Then f... |
Wait, actually in the N=2 case, starting at 1 (pool) and 1 (shore). The process stops when we reach 2 in the pool. So let's set up equations for E_1 and E_0. |
E_1 =1 + (1/2) E_0 + (1/2)*0 (since moving to 2 ends the process) |
E_0 =1 + (0/2) E_{-1} + (2/2) E_1. But E_{-1} is invalid, so actually when at 0, all frogs are on shore, so the next move must be to the pool, so E_0 =1 + E_1. |
Therefore, substituting E_0 =1 + E_1 into E_1's equation: |
E_1 =1 + (1/2)(1 + E_1) + 0 |
Multiply out: |
E_1 =1 + 1/2 + (1/2) E_1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.