subject
Mathematics, 02.10.2020 15:01 tanabugg

Can some one help me with this? I don't understand: 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.

Above, we have given two input-output examples. Be sure to test your algorithm to see if it can successfully reproduce these examples and any others you care to test.
Thanks!

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 14:30
Isee the amount was $90.00 then reduced to $75.00 , what is the percent ?
Answers: 1
question
Mathematics, 21.06.2019 21:40
What is the inverse of the function f(x) = 2x + 1?
Answers: 3
question
Mathematics, 21.06.2019 23:00
Type the correct answer in each box. use numerals instead of words. the average number of subscribers to an online magazine each year from 2010 to 2015 is given in the table below. the average number of subscribers to the online magazine in 2010 was the percent increase in the average number of subscribers in 2011 to the average number of subscribers in 2012 was %. the maximum average number of subscribers to the online magazine in the years shown was
Answers: 2
question
Mathematics, 21.06.2019 23:50
Use a transformation to solve the equation. w/4 = 8 can you also leave a detailed explanation on how this equation = 32
Answers: 1
You know the right answer?
Can some one help me with this? I don't understand: The Fibonacci numbers are the numbers
\[<...
Questions
question
Social Studies, 21.07.2019 16:20
Questions on the website: 13722363