ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1133. Fibonacci Sequence

How to Start ?
Posted by Varun Sharma 20 Apr 2009 12:18
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 ?
Posted by Alex Tolstov (Vologda STU) 20 Apr 2009 17:17
It's typical problem on theme "binary search".
Re: How to Start ?
Posted by Shahriar Nirjon 7 May 2009 05:00
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.