text
stringlengths
0
66.2k
Similarly for N=3:
E(1)=7, E(2)=5 (from earlier?), wait let's recall N=3:
Wait for N=3, earlier we had E(1)=7, E(2)=2 + E(1)=9? Wait no, earlier when N=3:
Wait let me recheck N=3:
Wait in N=3 case, when we computed E(1)=7, E(2)=2 + E(1)=9? Wait, no:
Wait in the N=3 case:
We had E(3)=1 + E(2)
Then E(2)= 1 + (2/3)E(1) + (1/3)E(3)
Substituting E(3)=1 + E(2):
E(2)=1 + (2/3)E(1) + (1/3)(1 + E(2))
E(2)=1 + (2/3)E(1) +1/3 + (1/3)E(2)
E(2) - (1/3)E(2)= 4/3 + (2/3)E(1)
(2/3)E(2)=4/3 + (2/3)E(1)
Multiply by 3/2:
E(2)=2 + E(1)
Since E(1)=7, E(2)=9.
Then E(3)=1 + E(2)=10.
So D(0)=E(1)=7, D(1)=E(2)-E(1)=2, D(2)=E(3)-E(2)=1.
Now applying the recursion for N=3:
For n=1,
D(1)= [1 * D(0) - 3]/(3-1) = (7 -3)/2=4/2=2. Correct.
For n=2,
D(2)= [2 * D(1) -3]/(3-2)= (4 -3)/1=1. Correct.
Similarly, for N=4, let's see:
We had E(1)=15, E(2)=11/3 + E(1)= 11/3 +15= 56/3 ≈18.666..., wait no, earlier for N=4, let's recheck:
Wait in N=4 case, we had:
E(1)=15,
E(2)=11/3 + E(1)= 11/3 +15= (11 +45)/3=56/3 ≈18.666...
E(3)=5/3 + E(2)=5/3 +56/3=61/3≈20.333...
E(4)=1 + E(3)=1 +61/3=64/3≈21.333...
Thus D(0)=E(1)=15,
D(1)=E(2)-E(1)=56/3 -15=56/3 -45/3=11/3≈3.666...
D(2)=E(3)-E(2)=61/3 -56/3=5/3≈1.666...
D(3)=E(4)-E(3)=64/3 -61/3=1.
Now applying the recursion for N=4:
For n=1:
D(1)= [1*D(0) -4]/(4-1)= (15-4)/3=11/3≈3.666... Correct.
For n=2:
D(2)= [2*D(1) -4]/(4-2)= (2*(11/3) -4)/2= (22/3 -12/3)/2=10/3 /2=5/3≈1.666... Correct.
For n=3:
D(3)= [3*D(2) -4]/(4-3)= (3*(5/3) -4)/1= (5 -4)=1. Correct.
So the recursion works. Now, perhaps we can find a pattern in D(n).
Looking at N=2:
D(0)=3, D(1)=1
N=3:
D(0)=7, D(1)=2, D(2)=1
N=4:
D(0)=15, D(1)=11/3, D(2)=5/3, D(3)=1
Hmm, not obvious. Let's see if we can find a general expression for D(n). Let me consider the recursion:
D(n) = [n D(n-1) - N ] / (N -n )