#### A PHP Error was encountered

Severity: Warning

Message: count(): Parameter must be an array or an object that implements Countable

Filename: controllers/calculator.php

Line Number: 37

Fibonacci Sequence Calculator - Online Calculator - Tutorpace

# Fibonacci Sequence Calculator

## Online Tutoring Is The Easiest, Most Cost-Effective Way For Students To Get The Help They Need Whenever They Need It.

#### SIGN UP FOR A FREE TRIAL

Fibonacci sequence is a list of numbers which are written in a particular format following a special rule. In Fibonacci

sequence, each number is the sum of its preceding two numbers. Fibonacci sequence calculator is the fun tool which can

easily give the Fibonacci sequence of numbers.

Example 1: Find the Fibonacci sequence for the first five numbers.

Let the nth term be represented as ‘xn

Here in order to find the Fibonacci sequence, the numbers are termed from ‘0’

Hence x0= 0.

The first number, x1 =1

The second number,x2 = Sum of the preceding two numbers x2= 0 + 1 = 1

General rule: xn = xn-1 + xn-2

x3= x2 + x1= 1+ 1= 2

x4= x3 + x2= 2+ 1= 3

x5= x4 + x3= 3+ 2= 5

Hence the Fibonacci sequence for first five numbers 0,1,1,2,3,5

Example 2: In a Fibonacci sequence of numbers, calculate the 7th and the 8th terms.

From the above example, we have seen that the Fibonacci sequence is 0, 1, 1, 2, 3, 5.

To find the 7th and 8th terms, we need to first find the 6th term of the sequence.

General rule: xn = xn-1 + xn-2

x6= x5 + x4= 5+ 3= 8

x7= x6 + x5= 8+ 5= 13

x8= x7 + x6= 13+ 8= 21

Hence the 7th and 8th terms of the Fibonacci sequence are 13 and 21.