Fibonacci Number Generator
Use a zero-based window with F(0) = 0, or one-based terms with F₁ = F₂ = 1. Calculate exact integers with BigInt, find a number’s indices, and copy or download the result.
A QUICK WALKTHROUGH
How to use this tool
- Choose a zero-based window, one-based term and prefix, or membership search.
- For windows, enter start 0–5,000 and count 1–200; for prefixes, enter n 1–1,000; for search, enter up to 2,090 digits.
- Calculate, then copy the result or download a TXT file.
Two explicit conventions
Zero-based windows use F(0) = 0, F(1) = 1. One-based terms and search use F₁ = F₂ = 1. The number 1 has both indices 1 and 2; 0 belongs only to the zero-based convention.
Bounded exact calculation
Windows retain start 0–5,000, count 1–200 and start + count ≤10,000. One-based n is 1–1,000 and includes the entire prefix through n. All output is limited to 250,000 characters. BigInt keeps integer terms exact; only the displayed ratio is approximate, truncated to 12 decimal places.
Bounded reverse search
Enter digits only, at most 2,090 characters. Search is limited to F(10,000). An input beyond F(10,000) receives an unknown-beyond-limit result. Values, copied text and TXT files stay in your browser.
GOOD TO KNOW
Common questions
Does the prefix include zero?
No. The one-based prefix starts with 1, 1. Choose the zero-based window with start 0 to include zero.
Why does 1 have two indices?
Both F₁ and F₂ equal 1. Search returns both indices.
Are large ratios calculated with floating point?
No. BigInt division computes a fixed-point ratio truncated to 12 decimal places without converting the terms to Number.
Can every input be classified?
Search stops at F(10,000) and accepts at most 2,090 digits. Values above that term are reported as beyond the limit, not as nonmembers.