Let Fn be the n-th Fibonacci number and let Gn=Fnmod1013. That is, Gn is the last 13 digits of Fn.
Given n, write a program that finds the smallest i with Gi=n.
The Fibonacci numbers start like this.
- F0=0
- F1=1
- F2=1
- F3=2
- F4=3
- F5=5
- F6=8
- F7=13
- F8=21