Fibonacci Sequence Generator
to
How the Fibonacci Calculator Works:
With this tool:
- Single Fibonacci Number Calculation: You can compute the Fibonacci number for a given
n. - Fibonacci Sequence Calculation: You can generate a sequence of Fibonacci numbers between two values,
n1andn2. - The calculator supports numbers in the range of -200 to 200 for
n.
Fibonacci Formula:
For positive values of n, the Fibonacci sequence is defined recursively by the following relation:
where the initial values are:
For negative values of n, the Fibonacci sequence is defined as:
This ensures that the Fibonacci sequence maintains its recursive structure but alternates in sign for negative values of n.
Examples
-
Single Fibonacci Number Calculation:
- Input:
- Formula:
- Calculation:
- Result:
- Input:
-
Fibonacci Sequence Calculation:
- Input: ,
- Formula for each Fibonacci number:
- Result:
- Sequence:
- Input: ,
-
Negative Fibonacci Number Calculation:
- Input:
- Formula:
- Result:
- Input:
Key Features:
- Custom Result Format: You can format the Fibonacci sequence as a table, list, or separated by commas, spaces, or new lines.
- Thousands Separator: For large Fibonacci numbers, separators (such as commas or periods) can be applied to enhance readability.
Quick Tips:
- Range for
n: Input values must be between -200 and 200. - Sign of Negative Fibonacci Numbers: Negative Fibonacci numbers alternate in sign, following the formula for .
Advertisements