Exercise · Volume 1 · 1.2.8-1
Exercise 1.2.8-1
not stated yet in Lean solution written
| Rating | 10 |
|---|---|
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.2.8 of Volume 1. Companion chapter: Fibonacci numbers |
The task
Find how many pairs of rabbits exist after twelve months when one pair starts and each pair bears a new pair every month from the age of one month.
The exact wording is in your copy of the book.
Hints
Open one hint at a time. Try the exercise again after each.
Hint 1
Let be the number of pairs after months. Compare with and .
Hint 2
All pairs of month stay alive. A new pair is born for each pair that is at least one month old at that time. Which pairs are these?
Solution
Show the solution
Let be the number of pairs after months, so and (the first pair and its first offspring).
Go from month to month . No pair dies, so all pairs stay. A pair bears a new pair in month if it is at least one month old at month . These are the pairs that were alive after months, and there are of them. The pairs born in month are too young. Hence
This is the rule of the Fibonacci numbers. With and , induction gives . The values for are
After one year there are pairs. The count includes the original pair.
Check
Simulate the story with two counters, the mature pairs and the newborn pairs: each month the mature pairs stay and bear as many newborn pairs as there are mature pairs, and the old newborn pairs become mature. A run in python3 gives the totals for months to , which agrees with . As a test of the rule, .
Remarks
The answer depends on the reading of the story. If the original pair is not counted, the answer is . The usual reading counts every pair, and the answer is . The number of pairs born in months is (Exercise 1.2.8-20). See the C1 chapter on Section 1.2.8 for the history of the problem.
This solution is checked, and a person has not reviewed it yet. The source.
In Lean
not stated yet The exercise is not stated in Lean yet.
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.