Punkyc7
- 415
- 0
Find the OGF for the recurrence
a_{n}= 6 * a_{n-1}+ a_{n-2} a_{0}=2, a_{1}=1
So here is what I did
I said let A = \sum_{2>=n}a_{n}x^{n}then I got
A = 6x (A+x) + x^{2}(A +x+2)
which gets me
A= \frac{6x^2+x^{3} +2x}{1-6x - x^2}
ButI should get \frac{2-x}{1-6x - x^2}Can anyone tell me what I am doing wrong ?
a_{n}= 6 * a_{n-1}+ a_{n-2} a_{0}=2, a_{1}=1
So here is what I did
I said let A = \sum_{2>=n}a_{n}x^{n}then I got
A = 6x (A+x) + x^{2}(A +x+2)
which gets me
A= \frac{6x^2+x^{3} +2x}{1-6x - x^2}
ButI should get \frac{2-x}{1-6x - x^2}Can anyone tell me what I am doing wrong ?