Suppose a newly-born pair of rabbits, one male, one female, are put in a field. Rabbits are able to mate at the age of one month so that at the end of its second month a female can produce another pair of rabbits. Suppose that our rabbits never die and that the female always produces one new pair (one male, one female) every month from the second month on.
How many pairs will there be in x months?
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers14
Suggested Problems
-
Given two arrays, find the maximum overlap
1717 Solvers
-
Project Euler: Problem 5, Smallest multiple
1649 Solvers
-
Combinations without using nchoosek
137 Solvers
-
Sum the numbers on the main diagonal
612 Solvers
-
Is this triangle right-angled?
6389 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Problem needs more test cases.
you did not specify whether the pairs mate again immediately after a female gives birth, or if the pairs ever mate again.