ICS4U ACES: Rabbits In A Field

(Text for the premise taken from the internet)

Consider the growth of an idealized (biologically unrealistic) rabbit population, assuming that:

Task.

  1. At month 1 there is one pair of rabbits. Work out how many pairs there will be after two months, after three months, after four months, and after one year.
  2. Formulate a piecewise recursive expression for the number of mating pair, after the n'th month. Hint.
  3. Create the project, Rabbit, and implement the recursive method public long pairs(int n) using your piecewise definition.
  4. What sequence is this?