text
stringlengths
0
66.2k
-N n²
+n(n-1)^2 =n(n² -2n +1) =n^3 -2n² +n
Total inside the brackets:
[Nn² +2Nn +N -n^3 -2n² -n] -N n² + [n^3 -2n² +n]
= Nn² +2Nn +N -n^3 -2n² -n -N n² +n^3 -2n² +n
Simplify term by term:
Nn² -Nn² =0
-n^3 +n^3=0
2Nn remains
N remains
-2n² -2n²= -4n²
-n +n=0
Thus total: 2Nn +N -4n²
Therefore, left side is D(2Nn +N -4n²)= -N
Thus:
D(2Nn +N -4n²) = -N ⇒ D = -N/(2Nn +N -4n² )
Again, depends on n, so no good.
Hmm. Maybe the particular solution is of the form E_p(n) = A n + B.
Let me try E_p(n) = A n + B.
Substitute into the equation:
(N -n) E_p(n+1) - N E_p(n) +n E_p(n-1) = -N
Compute each term:
E_p(n+1) = A(n+1) + B
E_p(n) = An + B
E_p(n-1) = A(n-1) + B
Thus:
(N -n)[A(n+1) + B] -N[An + B] +n[A(n-1) + B] = -N
Expand:
(N -n)(A n +A + B) -N A n -N B +n(A n -A + B) = -N
Expand each term:
First term:
(N -n)(A n +A + B) = N(A n +A + B) -n(A n +A + B)
= A N n + A N + B N -A n² -A n -B n
Second term:
- N A n -N B
Third term:
n(A n -A + B) = A n² -A n + B n
Combine all terms:
First term + Second term + Third term:
[A N n + A N + B N -A n² -A n -B n] + [ -N A n -N B ] + [A n² -A n + B n] = -N
Simplify term by term:
A N n - N A n =0
A N remains
B N -N B =0
- A n² + A n² =0
- A n -A n = -2A n
- B n + B n =0
Thus total:
A N -2A n = -N
This must hold for all n, which requires: