Theorem. Greatest common divisors as linear combinations [01ER]
For all positive integers m and n,
- \gcd {\mathopen {}\left (m,n\right )\mathclose {}} is an integer linear combination of m and n;
- we may efficiently compute a pair \operatorname {lc}_1{\mathopen {}\left (m,n\right )\mathclose {}},\operatorname {lc}_2{\mathopen {}\left (m,n\right )\mathclose {}} of integer coefficients for it, so that \begin {bmatrix} \operatorname {lc}_1{\mathopen {}\left (m,n\right )\mathclose {}}& \operatorname {lc}_2{\mathopen {}\left (m,n\right )\mathclose {}} \end {bmatrix} \otimes \begin {bmatrix} m \\ n \end {bmatrix} = \gcd {\mathopen {}\left (m,n\right )\mathclose {}}