Algorithm to add continued fractions

205 Views Asked by At

Lets say I have two continued fractions: $$a=[a_0; \overline{a_1, a_2,a_3...}]$$ $$b=[b_0; \overline{b_1, b_2,b_3...}]$$ How do I add them together?