Rosalind Community Support

Home » Community Forum » Questions » recurrence relation example
Search
Search this community...
Share a Feedback

Community Forum

"Champions" Idea | Implemented
Sign in with Facebook Idea | Accepted
Rate upcoming features Question | Pending

Knowledge Base

Signin into
Rosalind Community.

Signin with

Your email address
UserRules Password
Login

recurrence relation example

Follow
Vote
0
Unfollow
I'm working through the questions, and I think I found a mistake. In the recurrence relation the example is 5 months with 3 pairs of offspring per rabbit pair. The output is 19. That seems way to low. I might not be doing it right but my number of of spring is over 100. My simple math approach is even 5 pairs * 3 months = 15 rabbits from the first pair alone. Am I way off base?
from Ed Kabara · 3 years & 300 days ago · · 1 comment
It may be confusing that they start with month 1, not month 0. We start with 1 pair in month 1, and also 1 pair in month 2 by definition (you could say there are 0 pairs in month 0). Each month we add 3*(number of rabbits two months ago)+(number of rabbits one month ago). So month 3 is 1*3+1=4, month 4 is 1*3+4=7, month 5 is 4*3+7 =19.
from anonymous · 3 years & 293 days ago · Flag as inappropriate
Good Comment
Write a comment... Comment

Similar Feedback

Mortal Fibonacci Rabbit question
4 years & 145 days ago · Answered
Problem
4 years & 190 days ago · Pending
FIB
4 years & 162 days ago · Pending
improving background information on problem REVC
4 years & 140 days ago · Pending
Question regarding 2SUM problem statement and sampl...
2 years & 244 days ago · Pending

Followers 

Rosalind · Community Support for Rosalind · Powered by UserRules · Terms