The Fibonacci sequence is defined by the recurrence relation:
Hence, the first 12 terms will be:
The 12th term, is the first term to contain three digits.
What is the index of the first term in the Fibonacci sequence to contain 1000 digits?
You can find the algorithm to solve this challenge inside challenge.cpp.
Click here to see the result!
Result is: 4,782