subject
Mathematics, 24.02.2020 21:29 rileyeddins1010

The Fibonacci series: 0, 1, 1, 2, 3, 5, 8, 13, 21, has as its first 2 values, 0 and 1; each successive value if then calculated as the sum of the previous two values. The first element in the series is the 0'th element, thus the value 8 is element 6 of the series. The n'th element of the series, written as fib(n), is thus defined as:
n if n = 0 or n = 1
fib(n-1) + fib(n-2)

Write the int -valued function fib, that takes a single int parameter (say n), and recursively calculates and then returns the n'th element of the Fibonacci series.

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 14:40
1. what is the phythaforean theorem? 2.what do we use it for? 1.what is the distance formula ? 2.what do we use it for?
Answers: 2
question
Mathematics, 21.06.2019 15:00
What are the possible rational zeros of [tex]f(x) = x^4+2x^3-3x^2-4x+18[/tex]
Answers: 2
question
Mathematics, 21.06.2019 21:30
Ten members of balin's soccer team ran warm ups for practice. each member ran the same distance. their combined distance was 5/6 of a mile. to find the distance that each member ran, balin wrote the expression below.
Answers: 3
question
Mathematics, 21.06.2019 23:00
Find the equation of the ellipse with the following properties. the ellipse with foci at (0, 6) and (0, -6); y-intercepts (0, 8) and (0, -8).edit: the answer is x^2 over 28 + y^2 over 64 = 1
Answers: 2
You know the right answer?
The Fibonacci series: 0, 1, 1, 2, 3, 5, 8, 13, 21, has as its first 2 values, 0 and 1; each successi...
Questions
Questions on the website: 13722363