I tested it for first 107 natural numbers, also for first 1000 fibonacciFibonacci numbers - and it seems conjecture is true. but I takes a lot of time (80-90 seconds) to spit out a result.
My question is:
How can this code can be written in an optimal way, for faster results? Or, which techniques should I follow (either within the code or within the math)?
$ python timings.py 0 1000
[]
0.0163550376892
$ python timings.py 1000 2000
[]
0.0392298698425
$ python timings.py 2000 12000
[]
1.66012907028
$ python timings.py 12000 42000
[]
35.4742548466
$ python timings.py 42000 43000
[]
2.01177597046
$ python timings.py 43000 48000
[]
11.1937119961
$ python timings.py 0 1000 [] 0.0163550376892 $ python timings.py 1000 2000 [] 0.0392298698425 $ python timings.py 2000 12000 [] 1.66012907028 $ python timings.py 12000 42000 [] 35.4742548466 $ python timings.py 42000 43000 [] 2.01177597046 $ python timings.py 43000 48000 [] 11.1937119961