From sgordon@charcoal.eg.bucknell.edu Thu Sep 18 16:14 EDT 1997
Date: Thu, 18 Sep 1997 16:14:03 -0400
From: sgordon@charcoal.eg.bucknell.edu (Steve-O)

% Stephen Gordon
% September 18, 1997
% A program to determine a Rabbit population
% The system follows the fibinatche sequence
% Each number in the sequence is the sum of the two
% Previous numbers or in equation form
% r(n) = r(n-1) + r(n-2)

% Read the input-the number of months
m = input ('number of months ');  

r = [];		% set r as an empty vector
r(1) = 1;	% first initial condition
r(2) = 2;	% second initial condition


% for loop to calculate the number of rabbits
for n=3:m
   r(n) = r(n-1) + r(n-2);
end

% print out the results
out = (r(m))






