Tag Archives: fibonacci

Fibonacci solution in Python

I have always thought of the Fibonacci sequence as a suitable challenge when learning a new programming language. According to Wikipedia “the Fibonacci numbers, commonly denoted Fn  form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 and 1“. I posted my JavaScript solutions to solve the Fibonacci value for… Read More »

JavaScript Fibonacci solution.

In mathematical terms, the Fibonacci sequence is a series of numbers in which each number is the sum of the two previous numbers. The sequence Fn is defined by: Fn = Fn-1 + Fn-2, with seed values F1 = 1, F2 = 1  or  F0 = 0, F1 = 1. So, for example, assuming seed values of 0 and 1, the sequence… Read More »