[Math] Sum and Product of continued fraction expansion

continued-fractionssequences-and-series

Give the continued fraction expansion of two real numbers $a,b \in \mathbb R$, is there an "easy" way to get the continued fraction expansion of $a+b$ or $a\cdot b$?

If $a,b$ are rational it is easy as you can easily conver the back to the 'rational' form, add or multiply and then conver them back to continued fraction form. But is there a way that requres no conversation?

Other than that I found no clues whether there is an "easy" way to do it for irrational numbers.

Best Answer

Gosper found efficient ways to do arithmetic with continued fractions (without converting them to ordinary fractions or decimals). Here is a page with links to Gosper's work, but also with an exposition of Gosper's methods.

See also this older m.se question, Faster arithmetic with finite continued fractions

Related Question