r4 - 16 Feb 2009 - 15:55:11 - AndrewLeeYou are here: TWiki >  Main Web > LectureNotes > FibonacciRecurrences

The Golden Ratio, Fibonacci Numbers, and Other Recurrences

Fibonacci numbers have links to many different kinds of mathematics. They can be defined recursively as follows: F0 = 0, F1 = 1, and for n > 1, Fn = Fn – 1 + Fn – 2. However, for convenience, we will sometimes define F0 = 1, F1 = 1, so that the math comes out more readable. It's a good idea to note which definition you're using, although F0 = 0, F1 = 1 is the typical one.

We can also interpret Fibonacci numbers in combinatorial terms; in effect, by counting certain tilings. It turns out that a Fibonacci number corresponds to the number of different ways in which we can tile an nx1 board width with squares and dominoes (2x1). For example, the number 4 can be expressed in terms of 1s and 2s in five ways: 1 + 1 + 1 + 1, 1 + 1 + 2, 1 + 2 + 1, 2 + 1 + 1, and 2 + 2. This can be visualized as different square and domino tilings of a board 4 units long.

The following table shows the number of different square and domino tilings possible for the first few positive integers, with F0 = 1, F1 = 1.

Integer Possible Tilings No. Tilings
0 (no tiling) 1 = F0
1 1 1 = F1
2 11, 2 2 = F2
3 111, 12, 21 3 = F3
4 1111, 112, 121, 211, 22 5 = F4
5 11111, 1112, 1121, 1211, 122, 2111, 212, 221 8 = F5
6 111111, 111112, 11121, 11211, 1122, 12111, 1212, 1221, 21111, 2112, 2121, 2211, 222 13 = F6

Notice that the number of tilings for a given integer, n, is the Fibonacci number Fn.

This link between Fibonacci numbers and tilings provides ingenious combinatorial proofs of a wide variety of relationships involving Fibonacci numbers. For example, suppose we sum the Fibonacci numbers from F0 = 0 to Fn. The first sum is 0 + 1 = 1. Then, 1 + 1 = 2, 2 + 2 = 4, 4 + 3 = 7, 7 + 5 = 12, 12 + 8 = 20, 20 + 13 = 33, and so on. Each successive sum is one less than a Fibonacci number.

We can use square and domino tilings to prove combinatorially that the sum of the first n Fibonacci numbers equals Fn+1 – 1.

Such visualization and counting can play an important role in gaining insights into many aspects of mathematics.

Sequences and Tilings

We will start by looking at sequences that sum to n. Let Fn be the number of different sequences of 1’s and 2’s that sum to n. (F0 = 1, F1 = 1)

Example

F4 = 5

  1. = 2 + 2 = 2 + 1 + 1 = 1 + 2 + 1 = 1 + 1 + 2 = 1 + 1 + 1 + 1

F0 = 1 0 = the empty sum F1 = 1 1 = 1 F2 = 2 2 = 1 + 1 2 Fn+1 = Fn + Fn-1, where Fn is the number of sequences beginning with a 1 and fn-1 is the number of sequences beginning with a 2.

We have the Fibonacci numbers again, where Fn + 1 = Fn + Fn-1,with F0 = 1 and f1 = 1.

We can also express the same representation visually as tiling.

We let Fn be the number of different ways to tile a 1 x n strip with squares and dominoes. There is:

1 way to tile a strip of length 0; 1 way to tile a strip of length 1;

2 ways to tile a strip of length 2;

and so on.

If Fn is the number of ways to tile a strip of length n, we have Fn-1 tilings that start with a square - just take the tilings of length n-1 and add a square to the beginning - and fn -2 tilings that start with a domino - just take the tilings of length n-2 and add a domino to the beginning. Altogether, we have Fn = fn-1 + fn-2.

Fibonacci Identities

The Fibonacci numbers have many unusual properties. The many properties that can be stated as equations are called Fibonacci identities. We can use the visual representation we described above to prove a couple of Fibonacci identities.

Examples

F2n = F1 + F3 + F5 + … + F2n - 1

Fm+n = Fm Fn + Fm-1 Fn-1

(Fn)2 = Fn-1 Fn+1 + (-1)n

Identity: Fm+n = Fm Fn + Fm-1 Fn-1

Proof:

Fm+n is the number of ways to tile m + n. m n

Number of tilings where no tile straddles the "fault line" = Fm Fn. (Tile the first m places, then the remaining n) m n

Number of tilings where a domino straddles the "fault line" = Fm-1 Fn-1. (Tile the first m-1 places, put a domino down, and then tile the remaining n-1).

* someone please fix the subscripts beyond this point *

Identity: (Fn)2 = Fn-1 Fn+1 + (-1)n

Proof: n

Fn tilings of a strip of length n.

We have (Fn)2 tilings of two strips of length n.

Draw a vertical "fault line" at the rightmost position (< n) possible without cutting any dominoes. Swap the tails at the fault line to map to a tiling of 2 ns to a tiling of an n+1 and an n-1.

We find that (Fn)2 = Fn-1 Fn+1 + (-1)n.

Here are some other amazing properties of Fibonacci numbers:

*The product of any four consecutive Fibonacci numbers is the area of a Pythagorean triangle. *The sequence of final digits in Fibonacci numbers repeats in cycles of 60. The last two digits repeat in 300, the last three in 1500, the last four in 15,000, etc. *They are useful for converting miles to kilometers.

Polynomial Division

Suppose that we want to divide 1 by 1-x: .

Using “long division,” we get the answer 1 + x + x2 + x3 + x4 + x5 + . . .

Recall that the geometric series is defined to be

Example:

Divide x by 1- x-x2.

= 0x0+ 1x1 + 1x2 + 2x3 + 3x4 + 5x5 + 8x6 + . . . = F01 + F1x1 + F2x2 +F3x3 + F4x4 + F5x5 + F6x6 + . . .

We have the Fibonacci numbers again.

Going the other way (noting that F0 = 0, F1 = 1):

(1 – x– x2) ´ (F01 + F1x1 + F2x2 + … + Fn – 2 xn – 2 + Fn – 1 xn - 1 + Fn xn + . . . = (F01 + F1 x1 + F2 x2 + … + Fn – 2 xn – 2 + Fn – 1 xn – 1 + Fn xn + . . . – F0 x1 – F1 x2 – … – Fn – 3 xn – 2 – Fn – 2 xn – 1 – Fn – 1 xn – . . . – – F0 x2 – . . . – Fn – 4 xn – 2 – Fn – 3 xn – 1 – Fn – 2 xn – … = F01 + (F1 – F0) x1 = x Thus, F01 + F1 x1 + F2 x2 + … + Fn – 1 xn – 1 + Fn xn + . . . = x/(1 – x – x2).

Formal Power Series

Recall that a formal power series, or an infinite polynomial, is defined as:

PV =

How could someone have figured that out?

POLYA: When you want to find a solution to two simultaneous constraints, first characterize the solution space to one of them, and then find a solution to the second that is within the space of the first.

Here’s a technique to derive the formula for the Fibonacci numbers.

Fn is defined by two conditions: Base condition: F0 = 0, F1 = 1 Inductive condition: Fn = Fn – 1 + Fn – 2

Forget the base condition and concentrate on satisfying the inductive condition.

Consider solutions of the form: Fn = cn for some complex constant c. c must satisfy: cn – cn – 1 – cn – 2 = 0 iff cn – 2 (c2 – c1 – 1) = 0 iff c = 0 or c2 – c1 – 1 = 0 iff c = 0, c = f, or c = –(1/f) c = 0, c = f, or c = – (1/f)

So for all these values of c, the inductive condition is satisfied: cn – cn – 1 – cn – 2 = 0. Do any of them happen to satisfy the base condition as well? c0 = 0 and c1 = 1?

Insight: If two functions g(n) and h(n) satisfy the inductive condition then so does a g(n) + b h(n) for all complex a and b. g(n) – g(n – 1) – g(n – 2) = 0 ag(n) – ag(n – 1) – ag(n – 2) = 0 h(n) – h(n – 1) – h(n – 2) = 0 bh(n) – bh(n – 1) – bh(n – 2) = 0 (a g(n) + b h(n)) + (a g(n – 1) + b h(n – 1)) + (a g(n – 2) + b h(n – 2)) = 0 " a, b a fn + b (–1/f)n satisfies the inductive condition.

Set a and b to fit the base conditions. n = 0 : a + b = 0 n = 1 : a f1 + b (–1/f)1 = 1

We have two equalities in two unknowns (a and b). Now solve for a and b. This gives: a = 1/Ö5 and b = –1/Ö5. We have just proved Euler’s result.

Closed Form for Fibonacci Numbers

The Golden Ratio is defined to be the positive root of the equation

Then the nth fibonacci number is given by Fn =

References

Coxeter, H. S. M. ``The Golden Section, Phyllotaxis, and Wythoff's Game.'' Scripta Mathematica 19, 135-143, 1953.

"Recounting Fibonacci and Lucas Identities" by Arthur T. Benjamin and Jennifer J. Quinn, College Mathematics Journal, Vol. 30, No. 5, 1999, pp. 359-366.

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback