Suppose a recurrence relation
an=4an−1−4an−2
where a1=14 and a2=40
can be represented in explicit formula, either as:
Formula 1:
an=pxn+qnxn
or
Formula 2:
an=pxn+qyn
where
x
and
y
are roots of the characteristic equation.
Determine
p
and
q
.
characteristic equation:
"(r-2)^2=0"
"r=2" is the only characteristic root. Therefore we know that the solution to the recurrence relation has the form
Given "a_1=14 ,a_2=40"
"a_2=a(2^2)+b(2)(2^2)=40"
"a+b=7""\\\\\n\n a+2b=10"
Therefore the solution to the recurrence relation is
Comments
Leave a comment