Fibonacci Numbers

Users who are viewing this thread

lemon

Member
Messages
7,916
Reaction score
0
Tokenz
0.01z
The goal: Build a long list of Fibonacci numbers.

What is a Fibonacci number? A Fibonacci number is the addition of the previous and the previous-previous numbers.

For example, the first Fibonacci number is 0; the second is 1. (There are varying definitions for what starts as the first number, 1 or 0, but to make it simple, we start at "nothing", or 0.)

Fibonacci said:
Fib(0) = 0
Fib(1) = 1
Fib(n) = Fib(n - 1) + Fib(n -2)

Therefore, the third Fibonacci number is 1 (0 + 1). Thus begins the Game [which you now have lost, by the way].
 
  • 13
    Replies
  • 278
    Views
  • 0
    Participant count
    Participants list
79,530Threads
2,190,351Messages
5,003Members
Back
Top