The Fibonacci sequence is defined by the recurrence relation:
Hence the first 12 terms will be:
The 12th term, F12, is the first term to contain three digits.
What is the index of the first term in the Fibonacci sequence to contain 1000 digits?
Real time: 4.450 s
User time: 4.314 s
Sys. time: 0.140 s
CPU share: 100.08 %
Exit code: 0