Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2025/ii/paper-4/2i/solution

Starting with , the continued-fraction algorithm sets
unless is already an integer. This gives
Every finite continued fraction is rational, since it is built from integers by finitely many additions and reciprocals. Conversely, if is rational in lowest terms, then
When , the next complete quotient is . Thus each step is an application of the Euclidean algorithm and replaces the denominator by a smaller nonnegative remainder. The process must terminate. This proves the termination criterion for a simple continued fraction.
For ,
and
Finally,
so the complete quotients repeat. Hence the continued fraction of the square root of three is

New to topics? Read the docs here!