text
stringlengths
0
66.2k
Express E_{n+1} as E_n + D_{n+1}
Thus,
E_n =1 + (n/N) E_{n-1} + ((N -n)/N)(E_n + D_{n+1})
Bring the term with E_n to the left:
E_n - ((N -n)/N) E_n =1 + (n/N) E_{n-1} + ((N -n)/N) D_{n+1}
Left side:
E_n [1 - (N -n)/N] = E_n [n/N]
Thus,
(n/N) E_n =1 + (n/N) E_{n-1} + ((N -n)/N) D_{n+1}
Multiply both sides by N/n:
E_n = (N/n) + E_{n-1} + ((N -n)/n) D_{n+1}
But E_n = E_{n-1} + D_n, so substitute:
E_{n-1} + D_n = (N/n) + E_{n-1} + ((N -n)/n) D_{n+1}
Cancel E_{n-1}:
D_n = (N/n) + ((N -n)/n) D_{n+1}
Rearranged:
D_{n+1} = [ (n D_n - N ) / (N -n) ]
Hmm, this is a recursive relation for D_{n+1} in terms of D_n.
This seems a bit complicated, but maybe we can telescope it.
Let me rearrange the equation:
D_{n+1} = [n D_n - N]/(N -n)
Let me write this as:
D_{n+1} = [n D_n - N]/(N -n) = [ - (N -n D_n + ... ) ] Hmm, perhaps rearrange numerator:
n D_n - N = - (N - n D_n )
Wait, not sure. Alternatively,
Let me write it as:
D_{n+1} = (n D_n - N)/(N -n) = [n D_n - N]/[ -(n - N) ] = [N - n D_n ]/(n - N)
Hmm, not sure.
Alternatively, let me consider writing this recurrence as:
D_{n+1} (N - n) + N = n D_n
So,
n D_n - (N -n) D_{n+1} = N
This is similar to the original equation but in terms of D_n.
Hmm, perhaps we can telescope this.
Let me consider the terms for n from 1 to N-1.
Let me denote the equation as:
n D_n - (N -n) D_{n+1} = N
Let me rearrange:
n D_n = (N -n) D_{n+1} + N
Let me try to write this for different n and see if there's a telescoping sum.
For n =1:
1 * D_1 = (N -1) D_2 + N
For n=2:
2 D_2 = (N -2) D_3 + N
For n=3:
3 D_3 = (N -3) D_4 + N
...
For n = N-1:
(N-1) D_{N-1} = (N - (N-1)) D_N + N = 1 * D_N + N
Hmm, so each equation relates D_n and D_{n+1}.