I have a question regarding writing a general formula for an iterated sequence of variables.
Say we have $$a_0=1$$ $$a_1=\frac{3}{2}a_0$$ $$a_2=\frac{3}{2}a_1-\frac{1}{2}a_0$$ $$a_3=\frac{3}{2}a_2-\frac{1}{2}a_1$$ So in general we have $a_i=\frac{3}{2}a_{i-1}-\frac{1}{2}a_{i-2}$. The solution this this iterated sequence is $a_i=2-2^{-i}$. What method should one use to come up with this solution? ?
Thanks in advance.
A recurrence relation of the form,
$$c_pa_{n+p}+c_{p-1}a_{n+p-1}+....{c_0}a_{n}+....+c_{-s}a_{n-s}=0$$
Is called a homogenous linear recurrence relation.
In your case we have,
$$2a_{n}-3a_{n-1}+1a_{n-2}=0$$
Something like,
$$a_{n+1}=2a_{n}$$
Is also a homogeneous recurrence as it can be rearranged to look like one. Furthermore, from here we see a good guess to a solution of a homogenous linear recurrence is $a_{n}=r^n$.
Our method to solve linear recurrences is always to guess $a_{n}=r^n$, because as we will see this will lead to a solution where our only job is to find the roots of a polynomial.
In your case we guess $a_n=r^n$ and plug that guess in to get,
$$2r^{n}-3r^{n-1}+r^{n-2}=0$$
At this point we disregard the trivial solution $r=0$, and divide both sides by $r^{n-2}$, the lowest degree.
$$2r^2-3r+1=0$$
Notice then to get a solution we may just take $r$ that solves the above characteristic equation, as the steps are invertible.
$$(2r-1)(r-1)=0$$
$$r=\frac{1}{2},1$$
We see that both $a_n=\left(\frac{1}{2} \right)^n$ and $a_n=1^n=1$ solves that above recurrence.
As it turns out, if $a_n=f(n)$ is a solution then $a_n=cf(n)$ is also a solution. I'll prove it for your specific polynomial and let you prove it for the more general case.
It also turns out, if $a_n=f(n)$ is a particular solution and $a_n=g(n)$ is another particular solution, then $a_{n}=f(n)+g(n)$ is a solution. I leave you with the proof.
Is also solution, and it turns out that this accounts for all possible solutions if the roots of our characteristic equation are distinct.
From initial conditions, one may find the constants $k_1,k_2,...k_s$ one needs to put to guarantee their solution works in the particular case.
Hence we find,
$$a_n=k_1(\frac{1}{2})^n+k_2 1^n$$
To be a general solution to the recurrence,
And from the conditions,
$$a_0=1$$
$$a_1=\frac{3}{2}$$
We may deduce, $k_1=-1$ and $k_2=2$ by plugging in $n=0$ and $n=1$ and solving the resulting system of equations.