Hongmu Notes

Fibonacci sequence generator

The Fibonacci sequence generator is used to quickly obtain a copyable sequence: fill in the number of items and calculate the points, and the result area will be a complete list separated by spaces.
100% Browser local processing 0 Data upload

🌀 Fibonacci Sequence Calculation

💡 Instructions for use

  • The Nth term is calculated exactly with a large integer: 21 digits for the 100th term, 209 digits for the 1000th term without loss of precision or scientific notation.
  • The two starting writing methods only affect the numbering: starting from F(1)=1, the first item is 1, starting from F(0)=0, the 0th item is 0, and the rest of the numerical sequence is the same.
  • The sum of the first N items satisfies the rule: F(1)+…+F(N) is equal to F(N+2) minus 1. The comparison value will be given in the result area for easy verification.
  • The ratio of adjacent items will gradually approach the golden ratio, and the result area displays the current ratio and difference. The larger N, the closer it is.

The Fibonacci sequence generator is used to quickly obtain a copyable sequence: fill in the number of items and calculate the points, and the result area will be a complete list separated by spaces.

How to choose between two ways of writing numbers?

Writing methodBeginningcommon occasions
start from 11, 1, 2, 3, 5 …Primary and secondary school textbooks and most exercises
Start from 00, 1, 1, 2, 3 …Programming implementation and algorithm questions

How to generate results

The list is space-delimited plain text and can be copied in its entirety into tables, assignments, or test cases; it can also be downloaded as a text file. When it needs to be handed over to the program for use, the array can be obtained by directly dividing it by spaces, eliminating the need for manual entry. The number of items in the list is controlled by the upper limit of the drop-down box. When the number of items is larger, the sum and ratio will still be given, but the list will be truncated.

When generating a sequence, the first two items are fixed to one and one, and each subsequent item is the sum of the previous two items. This definition determines the entire sequence. Changing the starting value will result in another set of sequences, and the properties will also change accordingly.

When the number of items is large, the value grows quickly, and after a dozen items it has exceeded 10,000. If it is only used to observe patterns, it is recommended to look at the first dozen items first; when accurate large numbers are required, you should confirm that the results do not exceed the calculation accuracy.

If the starting value is changed, the properties of the sequence will also change. When teaching, it should be explained that the standard definition is used.

Generating short lists of around 50 items is most convenient for pasting into assignments and documents.

📖 Glossary

Fibonacci Sequence
A sequence starting from 1, 1, where each term is equal to the sum of the previous two terms: 1, 1, 2, 3, 5, 8, 13..., also called the rabbit sequence.
rabbit sequence
The nickname for the Fibonacci sequence comes from the classic description of the sequence that was introduced using the rabbit breeding problem.
golden section sequence
Another name for the Fibonacci sequence, named after the ratio of adjacent items gradually approaches the golden ratio.
golden ratio
is a constant approximately 1.618033988749895, which the Fibonacci ratio of adjacent terms approaches as the number of terms increases.
recursion formula
F(n) = F(n-1) + F(n-2). Given the first two terms, all subsequent terms can be derived.
general formula
A closed-form expression (ratio formula) expressed in the golden ratio can directly calculate the nth term without having to recurse item by item.
Sum of first N terms
The result of adding F(1) to F(N) is equal to F(N+2) minus 1, and this tool will give a comparison value.
large integer
An integer outside the range of ordinary floating point precision. The Fibonacci sequence grows extremely fast and must be represented accurately by large integers.
Lucas Sequence
The sequence of numbers that has the same origin as Fibonacci starts from 2 and 1 and also satisfies the law of the sum of the first two terms.
Fibonacci spiral
Curves obtained by splicing squares and drawing quarter arcs with Fibonacci numbers as side lengths often appear in plant and shell forms.

🔗 All keywords and tutorials

Keywords page of the tool12a

Return to tool home page

❓ FAQ

Can the generated list be copied??
Yes. The result box supports one-click copying and can also be downloaded as a plain text file.
Why is the list truncated??
In order to prevent the results from being too long and affecting reading, the list is displayed according to the upper limit set by the drop-down box, and the total number and other indicators are still fully calculated.