The Fibonacci sequence is the classic series where each number is the sum of the two before it. This generator produces the first N terms exactly, using arbitrary-precision integers so even very large terms are correct to the last digit.
How it works
Starting from the two seed values 0 and 1, each new term adds the previous two:
F(0) = 0
F(1) = 1
F(n) = F(n-1) + F(n-2)
That gives 0, 1, 1, 2, 3, 5, 8, 13, 21, …. The tool iterates this rule with
BigInt, which has no upper size limit, so terms far beyond the float64 safe range
remain exact rather than rounding off.
Example and tips
Asking for 10 terms returns 0, 1, 1, 2, 3, 5, 8, 13, 21, 34. The ratio between
consecutive terms steadily approaches the golden ratio φ ≈ 1.618 — by the 20th
term it already matches to four decimal places. Because the numbers grow
exponentially, generating thousands of terms yields some very long values, which
is exactly why exact BigInt arithmetic matters here.