Maths WorkshopMaths problems with full solutions
Exercise 1648Number theory › Divisibility and gcdOlympiadAdded 3 Nov 2026

An application of the Euclidean algorithm

#Euclidean algorithm#expansion#continued fraction

Statement

Use the Euclidean algorithm to find the continued fraction expansion of 1071/4621071/462.

Hint

Each quotient in the algorithm gives a coefficient in the continued fraction.

Show solutionHide solution

Solution

Euclidean. 1071=2⋅462+1471071=2\cdot462+147, 462=3⋅147+21462=3\cdot147+21, 147=7⋅21+0147=7\cdot21+0.

Quotients. 2,3,72,3,7.

Continued fraction. 1071/462=2+13+171071/462=2+\frac{1}{3+\frac{1}{7}}.

Conclusion. The continued fraction expansion of 1071/4621071/462 is [2;3,7][2;3,7].