Could you please give me the nth term of a
Fibonacci series.
P.S. For those who don't know this series it is,
0,1,1,2,3,5,8,13....
Every term is the sum of the two preceeding terms.
love arun
The nth term of the fibonacci series is given by
(((1+51/2 )/2)n )/51/2 -
(((1-51/2 )/2)n )/51/2 .
For a discussion of how to arrive at this and similar results see
Difference
Equations
Do you know how to prove this Arun?
Olof
Well Olof,
I read the section on difference equations. I don't know how to
solve a second order linear differential equation
However, I just followed the steps given. That is, I found the
roots p and q and put them in
yn = Apn + Bqn
I then found the values of A and B by substituting the first two
terms of the sequence into the formula and voila!
However, I don't know why this method works!
Could you tell me?
love arun
Ah OK. You have
an+2 = an+1 + an
or
an+2 - an+1 - an = 0
for the Fibonacci sequence. Therefore consider
x2 = x + 1
x2 - x - 1 = 0
Let the roots of this equation be p and q, then
p2 - p - 1 = 0
q2 - q - 1 = 0
Subsituting an = Apn + Bqn into
our difference equation:
LHS = Apn+2 + Bqn+2 - (Apn+1 +
Bqn+1 ) - (Apn + Bqn ) =
Apn (p2 - p - 1) + Bqn
(q2 - q - 1) = Apn *0 + Bqn *0 =
0 = RHS.
Hope that's clear!
Regards,
Olof
Thanks Olof.
However, I actually wanted to know why do we bring a quadratic
equation into the frame? What is the reason behind this
move?
love arun
The quadratic is just a tool we use. If we assume that the
solution to the difference equation is of the form yn
= Apn + Bqn , and we know of the recurrance
relation yn+2 + ayn+1 + byn = 0,
then, upon substitution we end up with
LHS = Apn+2 + Bqn+2 + a(Apn+1 +
Bqn+1 ) + b(Apn + Bqn )
Rearranging this:
LHS = Apn (p2 + ap + b) + Bqn
(q2 + aq + b) (*)
For our original assumption to be correct, i.e. that the solution
is of the form yn = Apn + Bqn ,
then (*) must equal 0. Now, the only way to ensure this is to
find values of p and q such that (p2 + ap + b) and
(q2 + aq + b) both = 0. We therefore introduce the
quadratic
x2 + ax + b = 0
as a tool, as means to find such a p and such a q (as p and q
will be the roots of this quadratic). That's really the only
reason.
Regards,
Olof
It is also possible to solve equations
like this using matrices. This is a lot more laborious as one
then has to do nasty things to the matrix; specifically, you have
to find its eigenvalues and eigenvectors. However, it does give a
somewhat clearer reason why quadratics come up: for a
second-order difference equation like this one the matrix
involved is 2x2, so its eigenvalues are the solutions of a
quadratic polynomial.
This approach requires some rather heavy-duty tools but I think
it makes it more obvious why all solutions should be obtainable
by adding multiples of two powers.