subject
Mathematics, 30.06.2020 02:01 Tayannamorgan2373

The Fibonacci numbers are the numbers \[ 1,1,2,3,5,8,13,21,34\ldots \] where the first two numbers are 1 and 1, and each number after that is the sum of the two previous numbers. (So $2 = 1+1$, $3 = 2+1$, and so on.) Write an algorithm, in English, that takes a positive integer $n$ as input and then outputs the $n$th Fibonacci number. For example, if we input to the algorithm $n=2,$ your algorithm should output 1. If we input $n=6,$ your algorithm should output 8. Remember that an algorithm should consist of a series of unambiguous steps. Use variable names to identify what values you are referring to. You can assume that the computer can do basic arithmetic.

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 14:10
Which linear equations have an infinite number of solutions? check all that apply.  (x  –  3/7)  =  2/7(3/2x  –  9/14)8(x  +  2)  =  5x  –  1412.3x  –  18  =  3(–6  +  4.1x)(6x  +  10)  =  7(x  –  2)4.2x  –  3.5  =  2.1 (5x  +  8)
Answers: 3
question
Mathematics, 22.06.2019 00:00
What is the effect on the graph of the function f(x) = x2 when f(x) is changed to f(x) − 4?
Answers: 1
question
Mathematics, 22.06.2019 01:30
20 points for the answer. this is for real , don't put random ! a rectangle has a length of 4 centimeters and a width of 7 centimeters. what is the effect on the perimeter when the dimensions are multiplied by 5? the perimeter is increased by a factor of 5. the perimeter is increased by a factor of 20. the perimeter is increased by a factor of 25. the perimeter is increased by a factor of 100.
Answers: 2
question
Mathematics, 22.06.2019 02:30
Find the value of x to the nearest tenth.
Answers: 1
You know the right answer?
The Fibonacci numbers are the numbers \[ 1,1,2,3,5,8,13,21,34\ldots \] where the first two numbers a...
Questions
question
Biology, 30.11.2021 07:10
question
Mathematics, 30.11.2021 07:10
question
Biology, 30.11.2021 07:10
question
Mathematics, 30.11.2021 07:10
question
Computers and Technology, 30.11.2021 07:10
question
Mathematics, 30.11.2021 07:10
question
Mathematics, 30.11.2021 07:20