How to Start ?

Hi,

How to go about solving this problem ? I am able to solve the given example by hand by putting unknowns x, y and z and then solving then using linear equations. But how to do this through program ?

Thanks

Re: How to Start ?

It's typical problem on theme "binary search".

Re: How to Start ?

This can be solved analytically. F_j can be written as a linear function of F_i and F_(i+1). Surprisingly, the coefficients also follow fibonacci seq. Solve this to get F_(i+1) and you are done.