Hi,
I’m not sure, about your question.
- Do you want, the value of “f” from the two lists of integers a_i and b_i?
=> it is relatively easy. - or do you want the decomposition of “f” into the two lists of integers?
=> You need an algorithm for that (see wikipedia)
By the way, for continued fraction, normally, the a_i are equal to one.