Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A)In the Fibonacci sequence, Fibonacci assumed that each rabbit took one month to mature. Now assume that rabbits take four month to mature. The sequence

A)In the Fibonacci sequence, Fibonacci assumed that each rabbit took one month to mature. Now assume that rabbits take four month to mature. The sequence is defined by

g 0 = 1, g 1 = 1, g 2 = 1, g 3 = 1 , g 4 = 1 and for n > 4 gn = gn-1 + gn-5 so g 5 = 2

Write MATLAB code for calculating a Fibonacci-like number with these new conditions. How many pairs of rabbits are there after 12 months (so g12)?

B)

What if rabbits took 2 months to mature, yielding a sequence h. We can derive an estimate

In fact, we propose that maybe

This works for the first few small values of n, and also seems to work fine for large values of n. Determine and c and fill rounded versions of them in here, rounding to 4 decimal places after the decimal point and with a leading zero only if the value is less than 1 (for example, 1.2345 and 0.0012 like would be produced with MATLAB "format short"). Do not use scientific notation unless "format short" would do so. is --------- and c is ------------ .

Hint: Please refer to page 26 of the Moler book.

Can someone implement a function for A in matlab and give resulting Y and C for B) please with explanation. Thank you

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions