![]() |
![]() |
![]() |
![]() |
![]() |
|
Here is a look at the rabbits method at work on 3, the same
argument used previously with recursivePowerOfTwo. The value
answered is the number of rabbits at the end of the third month.
Receivers | ^ Answers
3 | | 3
v |
*-------------*
| rabbits |
*-------------*
| ^ | ^
2 | | 1 | *------------*
| | *-------------* |
v | 2 v | 1
*-------------* *-------------*
| rabbits | | rabbits |
*-------------* *-------------*
| ^ | ^
1 | | 0 | *------------*
| | *-------------* |
v | 1 v | 1
*-------------* *-------------*
| rabbits | | rabbits |
*-------------* *-------------*