Problem

Source: Baltic Way 1992 #11

Tags: function, continued fraction, algebra proposed, algebra



Let $ Q^+$ denote the set of positive rational numbers. Show that there exists one and only one function $f: Q^+\to Q^+$ satisfying the following conditions: (i) If $ 0<q<1/2$ then $ f(q)=1+f(q/(1-2q))$, (ii) If $ 1<q\le2$ then $ f(q)=1+f(q-1)$, (iii) $ f(q)\cdot f(1/q)=1$ for all $ q\in Q^+$.