Is there an integer-arithmetic algorithm to compute the continued fraction expansion of the square root of a rational number?

40 Views Asked by At

There is a well known algorithm (Bhaskara-Brouncker) to compute the continued fraction expansion of the square root of an integer, using integer arithmetic only, no floating point.

Is such an algorithm known also for square roots of fractions of integers?