Question: Deliverable For each of the problems shown below, clearly define what the output , input and processing tasks should be to meet the requirements you

Deliverable

For each of the problems shown below, clearly define what the output, input and processing tasks should be to meet the requirements you have been given.

Upload your homework file as a .pdf file to Canvas before the due date specified on Canvas. Late homework will not be accepted.

PROBLEMS

(10 pts) A program determines the position n of a particular number in the Fibonacci sequence. Fibonacci numbers Fn are defined by the recursive relation[1] below. It is assumed that the Fn provided is a valid Fibonacci number.

where the initial seeds are F0 = 0 and F1 = 1. The following table shows the position n of the first six numbers Fn in the Fibonacci sequence (including the seeds 0 and 1);

Position (n)

0

1

2

3

4

5

Fibonacci number (Fn)

0

1

1

2

3

5

The formula to calculate the position n of a Fibonacci number Fn in the Fibonacci sequence is:

Deliverable For each of the problems shown below, clearly define what the

is the golden ratio.

output, input and processing tasks should be to meet the requirements you

Equation (1) will be evaluated twice (i.e., once with +4, and once with -4) and only integer solutions can be used to represent the position n of a Fibonacci number Fn. (Hint: The logarithm change-of-base formula can help simplify complicated logarithm functions.)

[1] https://en.wikipedia.org/wiki/Fibonacci_number

A program determines the position n of a particular number in the Fibonacci sequence. Fibonacci numbers Fn are defined by the recursive relation[1] below. It is assumed that the Fn provided is a valid Fibonacci number. where the initial seeds are F_0 = 0 and F_1 = 1. The following table shows the position n of the first six numbers F_n in the Fibonacci sequence (including the seeds 0 and 1): The formula to calculate the position n of a Fibonacci number F_n in the Fibonacci sequence is: n = log_phi (F_n Squareroot 5 + Squareroot 5 F_n ^2 plusminus 4/2) is the golden ratio. phi = 1 + Squareroot 5/2 almostequalto 1.6180339887 .. Equation (1) will be evaluated twice (i.e., once with +4, and once with -4) and only integer solutions can be used to represent the position n of a Fibonacci number F_n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!