I am not able to solve the above recurrence relation which involves $n$. The initial conditions $a_0 = 1, a_1 = 2, a_2 = 3$, for $n \geq 0$. Please try to give closed form in terms of arbitrary $a_i \geq 1 $ for $i \geq 0$
-
Seems to be a duplicate of https://math.stackexchange.com/questions/3077056/solve-the-recurrence-relation-a-n-a-n-12n3a-n-3 – mathcounterexamples.net Jan 17 '19 at 16:27
2 Answers
Here is what you can do:
First write $a_{n+1}=3a_{n-2}+a_n+2n+2$ (I inserted $n=n+1$ to the equation) and subtract the original equation to obtain $a_{n+1}-a_n=3a_{n-2}-3a_{n-3}+a_n-a_{n-1}+2$ which is the same as $$a_{n+1}=2a_n-a_{n-1}+3a_{n-2}-3a_{n-3}+2$$
Now do the same trick again: $a_{n+2}=2a_{n+1}-a_n+3a_{n-1}-3a_{n-2}+2$ and subtract the above equation to obtain: $$a_{n+2}=3a_{n+1}-3a_n+4a_{n-1}-6a_{n-2}+3a_{n-3}$$ Now this is a homogenous recurrence relation. Since we increased the degree by $2$, we also need to compute $a_4$ and $a_5$ and then solve the equation via classical techniques.
Edit : To solve the relation completely, you first insert $x^n$ for $a_n$ to obtain the degree $5$ polynomial $x^5-3x^4+3x^3-4x^2+6x-3=0$. Then compute all the roots of this polynomial, say $x_1,\dots,x_5$. If they are all distinct, general solution of the relation is of the form $$c_1\cdot x_1^n+\dots+c_5\cdot x_5^n$$ for $c_i\in\mathbb{C}$ and you can compute $c_i$ by using the initial conditions. If there is a double root, say $x_1$, (in this case $1$ is a double root and there are $3$ distinct roots) then a general solution is of the form $$c_1\cdot x_1^n+c_2\cdot n x_1^n+c_3\cdot x_2^n+\dots+c_5\cdot x_4^n$$ and again, you can compute $c_i$ using the initial conditions.
- 4,804
-
Since this eqn will become of degree 5, then how can we solve it? Can you give hint or link. – Brij Raj Kishore Jan 17 '19 at 16:36
-
-
@BrijRajKishore Agree with you. It is even more difficult now! – mathcounterexamples.net Jan 17 '19 at 16:47
-
@mathcounterexamples.net well, the classical way to solve these kind of non homogeneous equations require some techniques (like separating a solution into two parts, one solution for the homogenous part and one solution for the non homogeneous part etc.). For me, I like to reduce the case to the homogenous case and then solve it using the basic ideas. It of course increases the degree, but I don't really think it makes it harder. But probably one needs a computer to compute the roots and the coefficients. – Levent Jan 17 '19 at 16:50
-
Well you have an easier way to reduce it to an homogeneous equation. Namely changing $a_n = b_n + pn+q$ with $p,q$ well chosen. Then you stay with a degree 3 equation. – mathcounterexamples.net Jan 17 '19 at 17:03
-
@mathcounterexamples.net maybe you would like to explain that as a second answer? – Levent Jan 17 '19 at 17:04
Another solution
Take $a_n= b_n -\frac{2n}{3} -\frac{20}{9}$ and plug $a_n$ in the initial difference equation.
You find that $b_n = 3 b_{n - 3} + b_{n-1}$ which is a linear difference equation of order $3$.
So now to find the solution you still have to find the root of $p(x) = x^3-x^2-3$ if we want to use the "classical method".
- 70,018