Professional Documents
Culture Documents
1,
Fn1 + Fn2 ,
Note that the first two terms in the sequence are defined explicitly; thereafter, each term
is the sum of the previous two terms. This is an example of a recursive definition. In order
to evaluate F100 using this definition, we would first have to evaluate the previous hundred
terms in the sequence. We will soon find a closed form expression for Fn which does not
require evaluation of all the previous terms in the sequence in order to find a given term.
Both recursion and induction may be described as chain reactions; the difference is
that mathematical induction is used to prove an infinite sequence of statements, whereas
recursion is used to define an infinite sequence of quantities. The connection is a close one;
and in order to prove facts about recursively defined sequences, it is natural to try to use
induction. The following is an example of a fact about Fibonacci numbers, which we prove
by induction.
Theorem. For every n 1, we have Fn2 = Fn+1 Fn1 + (1)n .
Proof. The result holds for n = 1 since F12 = 11 = 1 = 21 1 = F2 F0 + (1)1 . Now
assume that the result holds for n = k, i.e. Fk2 = Fk+1 Fk1 + (1)k where k is some
positive integer. Then
2
Fk+1
= (Fk + Fk1 )Fk+1
= Fk+2 Fk + (1)k+1
so that the result holds for n = k + 1 whenever it holds for n = k. By induction, the
identity holds for all n 1 as required.
We now derive a closed formula for Fn , i.e. an explicit formula not requiring recursion.
The entire sequence is embodied in the series
f(x) =
n=0
The idea is to find a simple way of evaluating f(x), from which we can identify all coefficients in the series for f(x). In order to make use of the recursion formula for Fn , we
write
X
f(x) = 1 + x +
Fn+2xn+2
n=0
=1+x+
(Fn+1 + Fn )xn+2
Fn+1xn+2 +
n=0
=1+x+
n=0
=1+x+x
Fn xn+2
n=0
n+1
Fn+1 x
+x
n=0
Fn xn
n=0
= 1 + x + x f(x) 1 + x f(x)
which can be solved for f(x):
f(x) =
1
.
1 x x2
1
1 (x + x2 )
1 5
1+ 5
1.618033988, =
0.618033988 .
=
2
2
We may describe and as the reciprocal roots of the quadratic, rather than the roots
themselves; the reason why they are easier to use will soon become apparent. We try to
find constants A and B such that
1
1
A
B
=
=
+
.
2
1xx
(1 x)(1 x)
1 x 1 x
You may have seen this technique used in Calculus II; if not, keep in mind the basic idea,
which is as follows. The right hand side of the latter expression can be combined using a
common denominator to obtain a rational function whose denominator is (1 x)(1 x).
Instead what we want is the reverse process: to split up the rational function into two
terms, each having a single linear factor in the denominator. Multiplying both sides by
(1 x)(1 x) in order to clear denominators, we obtain the identity
1 = (1 x)A + (1 x)B.
This is a polynomial identity! so equality must hold if x is replaced by any constant. In
particular we evaluate at x = 1 since this causes the B term to vanish, thereby allowing
us to solve for A:
1= 1
A=
A=
A, so A = .
5
Similarly, evaluating at x =
5
1= 1
B=
B=
B,
so B = .
5
.
1 x x2
1 x 1 x
5 1 x 1 x
This is just what we need to expand f(x) as a power series: we expand both terms as
geometric series to obtain
i
1 h
f(x) = (1 + x + 2 x2 + 3 x3 + ) (1 + x + 2 x2 + 3 x3 + )
5
1 X n+1
=
(
n+1)xn .
5 n=0
Reading off the coefficient of xn gives
Fn =
n+1 n+1
This point is even more important when studying power series. In order to study an
arbitrary sequence a0 , a1 , a2 , a3 , . . ., it is often useful to study instead the associated power
series
X
g(x) =
an xn = a0 + a1 x + a2 x2 + a3 x3 + ,
n=0
popularly known as the generating function of the original sequence. In many cases this
does not represent a function at all; so in general, the name generating function is quite
a misnomer. For example the factorial sequence gives rise to a power series
X
p(x) =
n!xn = 1 + x + 2x2 + 6x3 + 24x4 + 120x5 + .
n=0
The values p(a) are undefined for any nonzero real number a, although the series itself is
a perfectly useful and interesting object. An important part of Calculus II is devoted to
the study of when a given power series converges, and so represents an actual function;
but none of this is relevant to our discussion! In the case of the series for f(x) defined
above, it turns out that the series does converge on a suitable open interval centered at 0;
but we dont care about this. Some sources may refer to power series in our setting as
formal power series to emphasize the role of power series as purely formal objects without
using them to represent functions. However, the term formal is redundant, and used for
emphasis only: a power series is, without any added considerations, a purely formal object.
Some additional examples of infinite sequences and their generating functions appear
below:
The sequence 1, 1, 1, 1, 1, . . . has generating function
X
1
.
xn = 1 + x + x2 + x3 + x4 + =
1x
n=0
The sequence 1, 2, 4, 8, 16, 32, . . . generated recursively by a0 = 1; an+1 = 2an for all
n 0 has generating function
X
1
2n xn = 1 + 2x + 4x2 + 8x3 + 16x4 + =
.
1 2x
n=0
The sequence 1, 2, 3, 4, 5, . . . has generating function
X
(n + 1)xn = 1 + 2x + 3x2 + 4x3 + 5x4 + =
n=0
1
.
(1 x)2
1
.
1 x2
1
The sequence 1, 3, 6, 10, 15, 21, 28, . . . defined by an = n+2
= 2 n + 1 n + 2 for all
2
n 0 has generating function
X
n+2 n
1
x = 1 + 3x + 6x2 + 10x3 + 15x4 + =
.
2
(1 x)3
n=0
1 + x2 + x4 + x6 + x8 + =
Next, we expand
Finally, we demonstrate how the formula for the nth Fibonacci number is used to find the 100th
Fibonacci number:
> alpha:=(1+sqrt(5))/2; beta:=(1-sqrt(5))/2;
(4)
> Fib:=n->simplify((alpha^(n+1)-beta^(n+1))/sqrt(5));
(5)
> Fib(100);
573147844013817084101
(6)