The Mathematical Garden

 | Welcome  | Games  | Mathematical methods  | About us |
Games
Black and White
HEX
Magic
Mark Six
Recursion, Games and Strategy
The Towers of Hanoi
Sample game - tower of Hanoi
The Fibonacci Numbers
Finding the Maximum Element
A matches game
Sample game - matches
A knapsack problem
A gambler choice
SIM

Example: The Fibonacci Numbers

One of the earlier examples of a recursively defined sequence arises in the writings of Fibonacci, who was the greatest European mathematican of the Middle Ages. In 1202, Fibonacci posed the following problem.

A single pair of rabbits (male or female) is born at the beginning of a year. Assume the following conditions:

  1. Rabbit pairs are not fertile during their first month of life but thereafter give birth to one new male/female pair at the end of every month;

  2. No deaths occur during the year.

How many rabbits will there be at the end of the year ?

Solution:

Let Fn be the number of rabbit pairs alive at the end of month n. It is easy to check that F0 = 1, the initial number of rabbit pairs. We note that the number of rabbit pairs at the end of month k is equal to the sum of the number of rabbit pairs at the end of month k-1 and the number of rabbit pairs born at the end of month k. We remark that the number of rabbit pairs born at the end of month k is equal to the number of rabbit pairs at the end of month k-2. Therefore, the recurrence relation is given by
Fk = Fk-1 + Fk-2,     k ³ 2.
To answer Fibonacci's question, it is equal to F12 = 233.

Department of Mathematics, HKU, 2010