Euclidean Algorithm/Examples/119 and 272/Integer Combination

From ProofWiki
Jump to navigation Jump to search

Examples of Use of Euclidean Algorithm

$6$ can be expressed as an integer combination of $119$ and $272$:

$17 = 7 \times 119 - 3 \times 272$


Proof

From Euclidean Algorithm: $119$ and $272$ we have:

\(\text {(1)}: \quad\) \(\ds 272\) \(=\) \(\ds 2 \times 119 + 34\)
\(\text {(2)}: \quad\) \(\ds 119\) \(=\) \(\ds 3 \times 34 + 17\)
\(\text {(3)}: \quad\) \(\ds 34\) \(=\) \(\ds 2 \times 17\)

and so:

$\gcd \set {119, 272} = 17$


Then we have:

\(\ds 17\) \(=\) \(\ds 119 - 3 \times 34\) from $(2)$
\(\ds \) \(=\) \(\ds 119 - 3 \times \paren {272 - 2 \times 119}\) from $(1)$
\(\ds \) \(=\) \(\ds 7 \times 119 - 3 \times 272\) simplifying

$\blacksquare$


Sources