Exercise 1652Number theory › Divisibility and gcdL1Added 3 Nov 2026
GCD via the Euclidean matrix
#gcd#Euclidean algorithm#matrix
Statement
Show that the Euclidean algorithm applied to can be written as a sequence of matrix multiplications with matrices in , and deduce that the gcd is preserved.
Hint
Each step is left multiplication by , which has determinant .
Show solutionHide solution
Solution
Step. If , the transformation is .
Determinant. , so this matrix is in with inverse .
GCD preservation. The map preserves because the two components generate the same ideal in .
Conclusion. The Euclidean algorithm is a sequence of elementary transformations in , and the gcd is preserved.