A formula and an algorithm for continued fraction inversion

A formula and an iterative algorithm are given for converting a continued fraction into a rational function.