How to get the value of Nth in Fibonacci Sequence?
Share
How to get the value of Nth in Fibonacci Sequence?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
First, calculate the first 20 numbers in the Fibonacci sequence. Remember that the formula to find the nth term of the sequence (denoted by F[n]) is F[n-1] + F[n-2].
source:
http://www.geom.uiuc.edu/~demo5337/s97b/fibonacci.html#:~:text=First%2C%20calculate%20the%20first%2020,F%5Bn-2%5D.