The first two terms of a sequence are
a1 = 2 and
a2 = 7
After that ever term is half of the sum of previous two terms. Thus
a3 = (a2 + a1)/2
a4 = (a3 + a2)/2
and so on. How can I find the non-recursive formula for nth term?
The first two terms of a sequence are
a1 = 2 and
a2 = 7
After that ever term is half of the sum of previous two terms. Thus
a3 = (a2 + a1)/2
a4 = (a3 + a2)/2
and so on. How can I find the non-recursive formula for nth term?
I give you a hint, observe that we can write $(a_n,a_{n-1}) = A(a_{n-1},a_{n-2})$ with A a 2x2 matrix.
Now $(a_n,a_{n-1}) = A^{n-1} \times (a_1,a_0)$. So we change the problem of finding a recursive formula to elevate a matrix n-1 times. To do the last, you can study the eignvalues of $A$.
Assuming $a_n=a^n$ implies $$ a^{n+1} = \frac {a^n +a^{n-1}}{2}$$ We solve the equation $$ a^2 = \frac {a +1}{2}$$ or $$2a^2-a-1 =0$$
After solving for $a$ and finding two values $x_1$ and $x_2$ the general form of solution is$$ a_n = Ax_1^n + Bx_2 ^n$$ where $A$ and $B$ are found from the initial conditions.
$$a_{n+1}=\frac{1}{2}(a_n+a_{n-1})$$ could be rewritten as $$a_{n+1}-a_n=-\frac{1}{2}(a_n-a_{n-1}),$$
which shows that $\{a_n-a_{n-1}\}$ is a geometric sequence. Thus, $$a_n-a_{n-1}=(a_2-a_1)\cdot \left(-\frac{1}{2}\right)^{n-2}=5 \cdot \left(-\frac{1}{2}\right)^{n-2},$$where $n=2,3,\cdots.$
It follows that
$$\sum_{k=2}^n \left(a_k-a_{k-1}\right)=\sum_{k=2}^n \left[5 \cdot \left(-\frac{1}{2}\right)^{k-2}\right],$$
namely, $$a_n-a_1=5\sum_{k=2}^n\left(-\frac{1}{2}\right)^{k-2}. $$ As a result, $$a_n=5\sum_{k=2}^n\left(-\frac{1}{2}\right)^{k-2}+a_1=\frac{20}{3}\left(-\frac{1}{2}\right)^n+\frac{16}{3},$$ which also holds for $n=1.$
The characteristic equation is $$2u^2=u+1$$whose roots are $1,-\dfrac{1}{2}$therefore $$a_n=A+B\left(-\dfrac{1}{2}\right)^n$$from $a_1=2$ and $a_2=7$ we obtain$$a_n=-\dfrac{4}{3}+\dfrac{20}{3}\left(-\dfrac{1}{2}\right)^n$$