<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Felix&#039; Math Place &#187; Extended Euclidean Algorithm</title>
	<atom:link href="http://math.fontein.de/tag/extended-euclidean-algorithm/feed/" rel="self" type="application/rss+xml" />
	<link>http://math.fontein.de</link>
	<description>Focussed on, but not limited to Computational Number Theory</description>
	<lastBuildDate>Sat, 30 Jul 2011 12:35:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Euclidean Domains, and the Extended Euclidean Algorithm.</title>
		<link>http://math.fontein.de/2009/11/18/euclidean-domains-and-the-extended-euclidean-algorithm/</link>
		<comments>http://math.fontein.de/2009/11/18/euclidean-domains-and-the-extended-euclidean-algorithm/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 02:34:06 +0000</pubDate>
		<dc:creator>Felix Fontein</dc:creator>
				<category><![CDATA[Algebra]]></category>
		<category><![CDATA[Euclidean domain]]></category>
		<category><![CDATA[Extended Euclidean Algorithm]]></category>
		<category><![CDATA[greatest common divisor]]></category>

		<guid isPermaLink="false">http://math.fontein.de/?p=264</guid>
		<description><![CDATA[We will discuss Euclidean domains together with a constructive proof of the fact that every two elements have a greatest common divisor, which is essentially the Euclidean algorithm.
We will state several (more or less) useful properties of the Extended Euclidean Algorithm, in particular for the case of integers and univariate polynomials over a field.]]></description>
			<content:encoded><![CDATA[<p>In this post, I want to sum up some handy results concerning the Extended Euclidean Algorithm. For that, let <img src='http://math.fontein.de/wp-content/latex/7a0/7a0de476d9c963a52a553a83c962ff97-T-000000-0.png' alt='(R, d)' title='(R, d)' class='latex-inline' /> be an Euclidean domain:</p>
<blockquote class='theorem'><div class='theoremtitle'>Definition.</div> <div class='theoremmain'>
An <i>Euclidean domain</i> is an integral domain <img src='http://math.fontein.de/wp-content/latex/e1e/e1e1d3d40573127e9ee0480caf1283d6-T-000000-0.png' alt='R' title='R' class='latex-inline' /> together with a function <img src='http://math.fontein.de/wp-content/latex/6ca/6cadc6651641467c75de42e222ca5545-T-000000-0.png' alt='d : R \setminus \{ 0 \} \to \N_{&gt;0}' title='d : R \setminus \{ 0 \} \to \N_{&gt;0}' class='latex-inline' /> satisfying, if <img src='http://math.fontein.de/wp-content/latex/015/0152a9734e6017780074137c9d33d3c7-T-000000-0.png' alt='d(0) := 0' title='d(0) := 0' class='latex-inline' />, that for every <img src='http://math.fontein.de/wp-content/latex/28f/28f82e90d8f3baa75877403c6a0debe3-T-000000-0.png' alt='a, b\in R' title='a, b\in R' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/cb9/cb906af48ef352d619ddf29c0e4f1447-T-000000-0.png' alt='b \neq 0' title='b \neq 0' class='latex-inline' /> there exist <img src='http://math.fontein.de/wp-content/latex/546/546ad4220c6779be2a87d65677848e6e-T-000000-0.png' alt='q, r \in R' title='q, r \in R' class='latex-inline' /> such that <img src='http://math.fontein.de/wp-content/latex/b52/b52e1f79ddcbafa459c0ce33d74e7583-T-000000-0.png' alt='a = q b + r' title='a = q b + r' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/684/68452ed9b3e0dc96783b8e141307b11e-T-000000-0.png' alt='d(r) &lt; d(b)' title='d(r) &lt; d(b)' class='latex-inline' />.
</div></blockquote>
<p>First, note that we can modify the map <img src='http://math.fontein.de/wp-content/latex/827/8277e0910d750195b448797616e091ad-T-000000-0.png' alt='d' title='d' class='latex-inline' /> to provide an additional property:</p>
<blockquote class='theorem'><div class='theoremtitle'>Proposition.</div> <div class='theoremmain'>
Define <img src='http://math.fontein.de/wp-content/latex/c50/c50536ef00e9d241035c1b8071fe9597-T-000000-0.png' alt='\hat{d} : R \to \N_{\ge 0}' title='\hat{d} : R \to \N_{\ge 0}' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/497/49776685fe7d0316680166f0c4b6c9bf-T-000000-0.png' alt='x \mapsto \inf_{y \in R \setminus \{ 0 \}} d(x y)' title='x \mapsto \inf_{y \in R \setminus \{ 0 \}} d(x y)' class='latex-inline' />. Then <img src='http://math.fontein.de/wp-content/latex/435/435184d48502ec031995e98fd9e9c6f4-T-000000-0.png' alt='(R, \hat{d})' title='(R, \hat{d})' class='latex-inline' /> is an Euclidean domain satisfying <img src='http://math.fontein.de/wp-content/latex/3e9/3e9065abaa711da6ff62d5c0b38e4a24-T-000000-0.png' alt='\hat{d}(a) \le \hat{d}(a b)' title='\hat{d}(a) \le \hat{d}(a b)' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/668/668946a9934111753cbc7a6415227d3f-T-000000-0.png' alt='a, b \in R \setminus \{ 0 \}' title='a, b \in R \setminus \{ 0 \}' class='latex-inline' />.
</div></blockquote>
<blockquote class='proof'><div class='prooftitle'>Proof.</div> <div class='proofmain'>
First, <img src='http://math.fontein.de/wp-content/latex/6ae/6aebf57992af8abb9e0adc76a55a9ade-T-000000-0.png' alt='\hat{d}(x) = 0' title='\hat{d}(x) = 0' class='latex-inline' /> if, and only if, <img src='http://math.fontein.de/wp-content/latex/3da/3dad28281778d5ef4b7a78c7bc7a6b09-T-000000-0.png' alt='x = 0' title='x = 0' class='latex-inline' />. Next, <img src='http://math.fontein.de/wp-content/latex/26c/26cbdc7d3eab6568c1f92ad4231ff12e-T-000000-0.png' alt='\hat{d}(a) \le d(a b c)' title='\hat{d}(a) \le d(a b c)' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/533/5336584f3c0235f646a616508327c3aa-T-000000-0.png' alt='c \in R' title='c \in R' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/3e9/3e9065abaa711da6ff62d5c0b38e4a24-T-000000-0.png' alt='\hat{d}(a) \le \hat{d}(a b)' title='\hat{d}(a) \le \hat{d}(a b)' class='latex-inline' />.
Now, let <img src='http://math.fontein.de/wp-content/latex/517/51718398f14c2c7248fa166b1c749400-T-000000-0.png' alt='a, b' title='a, b' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/cb9/cb906af48ef352d619ddf29c0e4f1447-T-000000-0.png' alt='b \neq 0' title='b \neq 0' class='latex-inline' />. Let <img src='http://math.fontein.de/wp-content/latex/2e7/2e768d43e636d8efe11313049ef63fe4-T-000000-0.png' alt='x \in R \setminus \{ 0 \}' title='x \in R \setminus \{ 0 \}' class='latex-inline' /> be such that <img src='http://math.fontein.de/wp-content/latex/d1b/d1b32041a6a81028fe7dfdfbc6c485ac-T-000000-0.png' alt='d(b x) = \hat{d}(b)' title='d(b x) = \hat{d}(b)' class='latex-inline' />. Now let <img src='http://math.fontein.de/wp-content/latex/546/546ad4220c6779be2a87d65677848e6e-T-000000-0.png' alt='q, r \in R' title='q, r \in R' class='latex-inline' /> be with <img src='http://math.fontein.de/wp-content/latex/2d4/2d47880ea032858206084262e0842765-T-000000-0.png' alt='a x = q (b x) + r' title='a x = q (b x) + r' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/a87/a87f660bd3970284d732183825157c4e-T-000000-0.png' alt='d(r) &lt; d(b x)' title='d(r) &lt; d(b x)' class='latex-inline' />. As <img src='http://math.fontein.de/wp-content/latex/c40/c40ced81ec68f912703925f5dd8058d4-T-000000-0.png' alt='r = (a - q b) x' title='r = (a - q b) x' class='latex-inline' />, there is an <img src='http://math.fontein.de/wp-content/latex/058/058ce0c0fbfb17f50b667cac8d914a38-T-000000-0.png' alt='r&#039; \in R' title='r&#039; \in R' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/adc/adc2c10c58694134804014e60e533c95-T-000000-0.png' alt='r = r&#039; x' title='r = r&#039; x' class='latex-inline' />. Now <img src='http://math.fontein.de/wp-content/latex/f4d/f4de97282558484229f96eb0500d8f67-T-000000-0.png' alt='\displaystyle  \hat{d}(r&#039;) \le \hat{d}(r&#039; x) = \hat{d}(r) \le d(r) &lt; d(b x) = \hat{d}(b), ' title='\displaystyle  \hat{d}(r&#039;) \le \hat{d}(r&#039; x) = \hat{d}(r) \le d(r) &lt; d(b x) = \hat{d}(b), ' class='latex-displaystyle' /> and <img src='http://math.fontein.de/wp-content/latex/2e2/2e240030ac1c10ce16ef9214d620ac51-T-000000-0.png' alt='a = q b + r&#039;' title='a = q b + r&#039;' class='latex-inline' />.
</div><div class='proofqed'>□</div></blockquote>
<p>This new map <img src='http://math.fontein.de/wp-content/latex/94d/94d9193181c45864f72bdffd8c15caec-T-000000-0.png' alt='\hat{d}' title='\hat{d}' class='latex-inline' /> satisfies three nice properties:</p>
<blockquote class='theorem'><div class='theoremtitle'>Lemma.</div> <div class='theoremmain'>
<ol>
<li>We have <img src='http://math.fontein.de/wp-content/latex/e71/e7122c83dc7a7e2a6e175cd4f8ebead5-T-000000-0.png' alt='\hat{d}(1) \le \hat{d}(a)' title='\hat{d}(1) \le \hat{d}(a)' class='latex-inline' /> for every <img src='http://math.fontein.de/wp-content/latex/241/241f972b5c6a6a3251ca5eae73b814c9-T-000000-0.png' alt='a \in R \setminus \{ 0 \}' title='a \in R \setminus \{ 0 \}' class='latex-inline' />.</li>
<li>For <img src='http://math.fontein.de/wp-content/latex/241/241f972b5c6a6a3251ca5eae73b814c9-T-000000-0.png' alt='a \in R \setminus \{ 0 \}' title='a \in R \setminus \{ 0 \}' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/ae4/ae4e69029de183051ab2f7d91f200788-T-000000-0.png' alt='\hat{d}(a) = \hat{d}(1)' title='\hat{d}(a) = \hat{d}(1)' class='latex-inline' /> if, and only if, <img src='http://math.fontein.de/wp-content/latex/4bc/4bc37be7521ecd561c5f5cdacf891d49-T-000000-0.png' alt='a \in R^*' title='a \in R^*' class='latex-inline' />.</li>
<li>If <img src='http://math.fontein.de/wp-content/latex/69d/69ddf7b426234cb2b32abcbde58db8c3-T-000000-0.png' alt='(a) = (b)' title='(a) = (b)' class='latex-inline' />, then <img src='http://math.fontein.de/wp-content/latex/29f/29f5544b430db6ea098f1fa5b0c72e1b-T-000000-0.png' alt='\hat{d}(a) = \hat{d}(b)' title='\hat{d}(a) = \hat{d}(b)' class='latex-inline' />.</li>
</ol>
</div></blockquote>
<blockquote class='proof'><div class='prooftitle'>Proof.</div> <div class='proofmain'>
<ol>
<li>For <img src='http://math.fontein.de/wp-content/latex/241/241f972b5c6a6a3251ca5eae73b814c9-T-000000-0.png' alt='a \in R \setminus \{ 0 \}' title='a \in R \setminus \{ 0 \}' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/cec/cec46454c7d3fad159061edbc8362141-T-000000-0.png' alt='d(1) \le \hat{d}(1 \cdot a) = \hat{d}(a)' title='d(1) \le \hat{d}(1 \cdot a) = \hat{d}(a)' class='latex-inline' />.</li>
<li>First, assume that <img src='http://math.fontein.de/wp-content/latex/4bc/4bc37be7521ecd561c5f5cdacf891d49-T-000000-0.png' alt='a \in R^*' title='a \in R^*' class='latex-inline' />. Then <img src='http://math.fontein.de/wp-content/latex/c08/c08cc68302052f59456b71e97316ddf5-T-000000-0.png' alt='\displaystyle  \hat{d}(a) \le \hat{d}(a a^{-1}) = \hat{d}(1) \le \hat{d}(1 \cdot a) = \hat{d}(a), ' title='\displaystyle  \hat{d}(a) \le \hat{d}(a a^{-1}) = \hat{d}(1) \le \hat{d}(1 \cdot a) = \hat{d}(a), ' class='latex-displaystyle' /> whence <img src='http://math.fontein.de/wp-content/latex/ae4/ae4e69029de183051ab2f7d91f200788-T-000000-0.png' alt='\hat{d}(a) = \hat{d}(1)' title='\hat{d}(a) = \hat{d}(1)' class='latex-inline' />.
Now, conversely, assume that <img src='http://math.fontein.de/wp-content/latex/ae4/ae4e69029de183051ab2f7d91f200788-T-000000-0.png' alt='\hat{d}(a) = \hat{d}(1)' title='\hat{d}(a) = \hat{d}(1)' class='latex-inline' />. Write <img src='http://math.fontein.de/wp-content/latex/98e/98e2dbea2cec6019ad7d5c7c808e58a2-T-000000-0.png' alt='1 = q a + r' title='1 = q a + r' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/546/546ad4220c6779be2a87d65677848e6e-T-000000-0.png' alt='q, r \in R' title='q, r \in R' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/3f8/3f86255a017031184079a8f85d5eed0f-T-000000-0.png' alt='\hat{d}(r) &lt; \hat{d}(a) = \hat{d}(1)' title='\hat{d}(r) &lt; \hat{d}(a) = \hat{d}(1)' class='latex-inline' />. By 1., we get <img src='http://math.fontein.de/wp-content/latex/625/6252ab7a75ac12de93c41861a9d69a8c-T-000000-0.png' alt='r = 0' title='r = 0' class='latex-inline' />. Hence, <img src='http://math.fontein.de/wp-content/latex/0ea/0ea2bf39c820bd81a1780e5df2c60edb-T-000000-0.png' alt='1 = q a' title='1 = q a' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/4bc/4bc37be7521ecd561c5f5cdacf891d49-T-000000-0.png' alt='a \in R^*' title='a \in R^*' class='latex-inline' />.</li>
<li>As <img src='http://math.fontein.de/wp-content/latex/e1e/e1e1d3d40573127e9ee0480caf1283d6-T-000000-0.png' alt='R' title='R' class='latex-inline' /> is an integral domain, <img src='http://math.fontein.de/wp-content/latex/69d/69ddf7b426234cb2b32abcbde58db8c3-T-000000-0.png' alt='(a) = (b)' title='(a) = (b)' class='latex-inline' /> implies <img src='http://math.fontein.de/wp-content/latex/f6e/f6e6aa3285b7b35ad746c2ca6eb48909-T-000000-0.png' alt='a = b u' title='a = b u' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/b01/b013ce46c2db043693ca16884d846597-T-000000-0.png' alt='u \in R^*' title='u \in R^*' class='latex-inline' />. But then <img src='http://math.fontein.de/wp-content/latex/4e3/4e3a4ebd038b8bcba910139e3481fc08-T-000000-0.png' alt='\hat{d}(a) \le{} &amp; \hat{d}(b u) \le \hat{d}(b u u^{-1}) \\ {}={} &amp; \hat{d}(b) \le \hat{d}(a u^{-1}) \le \hat{d}(a u^{-1} u) = \hat{d}(a),' title='\hat{d}(a) \le{} &amp; \hat{d}(b u) \le \hat{d}(b u u^{-1}) \\ {}={} &amp; \hat{d}(b) \le \hat{d}(a u^{-1}) \le \hat{d}(a u^{-1} u) = \hat{d}(a),' class='latex-displaystyle' /> i.e. <img src='http://math.fontein.de/wp-content/latex/29f/29f5544b430db6ea098f1fa5b0c72e1b-T-000000-0.png' alt='\hat{d}(a) = \hat{d}(b)' title='\hat{d}(a) = \hat{d}(b)' class='latex-inline' />.</li>
</ol>
</div><div class='proofqed'>□</div></blockquote>
<p>From now on, we <b>assume</b> that <img src='http://math.fontein.de/wp-content/latex/827/8277e0910d750195b448797616e091ad-T-000000-0.png' alt='d' title='d' class='latex-inline' /> has the property <img src='http://math.fontein.de/wp-content/latex/242/24216201c74dba9a5bd624cb0b97f9ad-T-000000-0.png' alt='d(a) \le d(a b)' title='d(a) \le d(a b)' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/3fd/3fd82b69a39b8a62ea897e8a7ae1fdf5-T-000000-0.png' alt='a, b \in R' title='a, b \in R' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/cb9/cb906af48ef352d619ddf29c0e4f1447-T-000000-0.png' alt='b \neq 0' title='b \neq 0' class='latex-inline' />.</p>

<p>There are two important examples of Euclidean domains, both of them satisfying <img src='http://math.fontein.de/wp-content/latex/0e5/0e53e55a6a0f2c106616508dac49a600-T-000000-0.png' alt='d(a b) = d(a) d(b)' title='d(a b) = d(a) d(b)' class='latex-inline' />, which in turn implies <img src='http://math.fontein.de/wp-content/latex/fe5/fe5fe3cc1c10abedeb282f390c84818f-T-000000-0.png' alt='d(a b) \ge d(a)' title='d(a b) \ge d(a)' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/cb9/cb906af48ef352d619ddf29c0e4f1447-T-000000-0.png' alt='b \neq 0' title='b \neq 0' class='latex-inline' />:</p>
<ol>
<li>The integers <img src='http://math.fontein.de/wp-content/latex/3fc/3fcd41591f27f2904fe376f53a7ce46e-T-000000-0.png' alt='R := \Z' title='R := \Z' class='latex-inline' /> form an Euclidean ring with <img src='http://math.fontein.de/wp-content/latex/6b7/6b727b51c6e2aea073ed0c16a13a52ee-T-000000-0.png' alt='d(a) := \abs{a}' title='d(a) := \abs{a}' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/dea/deabb4e61352de6ab4d25474082e68ba-T-000000-0.png' alt='a \in \Z' title='a \in \Z' class='latex-inline' />.</li>
<li>Let <img src='http://math.fontein.de/wp-content/latex/a5f/a5f3c6a11b03839d46af9fb43c97c188-T-000000-0.png' alt='K' title='K' class='latex-inline' /> be a field and <img src='http://math.fontein.de/wp-content/latex/692/6928878c704f17244c7617953521eda8-T-000000-0.png' alt='q &gt; 1' title='q &gt; 1' class='latex-inline' /> an arbitrary integer. Then, the polynomials <img src='http://math.fontein.de/wp-content/latex/507/5077af34c4bcce27131c00677ec12d73-T-000000-0.png' alt='R := K[x]' title='R := K[x]' class='latex-inline' /> form an Euclidean ring with <img src='http://math.fontein.de/wp-content/latex/14a/14a7b8205bb0b4703c47483682ea2b0f-T-000000-0.png' alt='d(f) := q^{\deg f}' title='d(f) := q^{\deg f}' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/acc/accf9b8546df7a1b71bbe983a3d5bd01-T-000000-0.png' alt='f \in K[x]' title='f \in K[x]' class='latex-inline' />.</li>
</ol>
<p>A first, very remarkable property of Euclidean domains is that every ideal is principal; as a consequence of this, they possess a unique factorization of elements into products of primes. Moreover, since they are principal ideal domains, not only do greatest common divisors exist, but they can be written as a linear combination of the elements of whom they are the greatest common divisor! We will soon give a constructive proof for this, but before that note that this can be shown easily as follows: let <img src='http://math.fontein.de/wp-content/latex/c93/c93117bd0bfd868e56840b20c8108a31-T-000000-0.png' alt='a_1, \dots, a_n \in R' title='a_1, \dots, a_n \in R' class='latex-inline' />; then the ideal <img src='http://math.fontein.de/wp-content/latex/8f8/8f89014a62ee66206f951d60e0a7c46a-T-000000-0.png' alt='(a_1, \dots, a_n)' title='(a_1, \dots, a_n)' class='latex-inline' /> generated by them in <img src='http://math.fontein.de/wp-content/latex/e1e/e1e1d3d40573127e9ee0480caf1283d6-T-000000-0.png' alt='R' title='R' class='latex-inline' /> is prinipcal, i.e. there exists an element <img src='http://math.fontein.de/wp-content/latex/502/502055d86c88fa3a698ac7ff4646505a-T-000000-0.png' alt='a \in R' title='a \in R' class='latex-inline' /> such that <img src='http://math.fontein.de/wp-content/latex/39e/39e42a12131b85b348cd7028c269a873-T-000000-0.png' alt='(a_1, \dots, a_n) = (a)' title='(a_1, \dots, a_n) = (a)' class='latex-inline' />. Clearly, <img src='http://math.fontein.de/wp-content/latex/c67/c670baa98ae93a02010513089d57c0fb-T-000000-0.png' alt='a_i \in (a)' title='a_i \in (a)' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/2c1/2c1b2cfe826493ba22b6dca7368983e2-T-000000-0.png' alt='a \mid a_i' title='a \mid a_i' class='latex-inline' />, i.e. <img src='http://math.fontein.de/wp-content/latex/0cc/0cc175b9c0f1b6a831c399e269772661-T-000000-0.png' alt='a' title='a' class='latex-inline' /> is a common divisor of <img src='http://math.fontein.de/wp-content/latex/aaa/aaa54a2f160170858fbe1f4ac3f96900-T-000000-0.png' alt='a_1, \dots, a_n' title='a_1, \dots, a_n' class='latex-inline' />. Moreover, as <img src='http://math.fontein.de/wp-content/latex/b34/b34ffecc045e0dbadf99f71b0cb1313e-T-000000-0.png' alt='a \in (a_1, \dots, a_n)' title='a \in (a_1, \dots, a_n)' class='latex-inline' />, there exist <img src='http://math.fontein.de/wp-content/latex/9e0/9e05f053161efedaf9e14ba38d8273c8-T-000000-0.png' alt='b_1, \dots, b_n \in R' title='b_1, \dots, b_n \in R' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/c86/c8642e5d7ec345a3cd56f8fe0cd2aa48-T-000000-0.png' alt='a = \sum_{i=1}^n a_i b_i' title='a = \sum_{i=1}^n a_i b_i' class='latex-inline' />. Hence, if <img src='http://math.fontein.de/wp-content/latex/cf3/cf336c1f2f9df65a47c32173a23d6d64-T-000000-0.png' alt='a&#039;' title='a&#039;' class='latex-inline' /> is another common divisor of <img src='http://math.fontein.de/wp-content/latex/aaa/aaa54a2f160170858fbe1f4ac3f96900-T-000000-0.png' alt='a_1, \dots, a_n' title='a_1, \dots, a_n' class='latex-inline' />, we have that <img src='http://math.fontein.de/wp-content/latex/cf3/cf336c1f2f9df65a47c32173a23d6d64-T-000000-0.png' alt='a&#039;' title='a&#039;' class='latex-inline' /> divides <img src='http://math.fontein.de/wp-content/latex/613/613d223877daaad32d46fd5bc7ac529c-T-000000-0.png' alt='\sum_{i=1}^n a_i b_i = a' title='\sum_{i=1}^n a_i b_i = a' class='latex-inline' />; this shows that <img src='http://math.fontein.de/wp-content/latex/0cc/0cc175b9c0f1b6a831c399e269772661-T-000000-0.png' alt='a' title='a' class='latex-inline' /> is a greatest common divisor of <img src='http://math.fontein.de/wp-content/latex/aaa/aaa54a2f160170858fbe1f4ac3f96900-T-000000-0.png' alt='a_1, \dots, a_n' title='a_1, \dots, a_n' class='latex-inline' />.</p>
<p>Now, let us present a constructive proof that every two elements of <img src='http://math.fontein.de/wp-content/latex/e1e/e1e1d3d40573127e9ee0480caf1283d6-T-000000-0.png' alt='R' title='R' class='latex-inline' /> possess a greatest common divisor. The idea goes back to <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Euclid">Euclid</a>.</p>
<blockquote class='theorem'><div class='theoremtitle'>Theorem (The Euclidean Algorithm).</div> <div class='theoremmain'>
Let <img src='http://math.fontein.de/wp-content/latex/b1f/b1feab170e20c3d5686fd47f375a33d8-T-000000-0.png' alt='n, m \in R \setminus \{ 0 \}' title='n, m \in R \setminus \{ 0 \}' class='latex-inline' /> be two non-zero elements. Define <img src='http://math.fontein.de/wp-content/latex/3de/3de28157fb177585ecc8099148d4b8c8-T-000000-0.png' alt='\displaystyle  \Matrix{ a_{-1} &amp; a_{-2} \\ x_{-1} &amp; x_{-2} \\ y_{-1} &amp; y_{-2} } := \Matrix{ m &amp; n \\ 0 &amp; 1 \\ 1 &amp; 0 }. ' title='\displaystyle  \Matrix{ a_{-1} &amp; a_{-2} \\ x_{-1} &amp; x_{-2} \\ y_{-1} &amp; y_{-2} } := \Matrix{ m &amp; n \\ 0 &amp; 1 \\ 1 &amp; 0 }. ' class='latex-displaystyle' /> Then, inductively, define <img src='http://math.fontein.de/wp-content/latex/480/480f8fc56364c843deee950c55fe0eb3-T-000000-0.png' alt='a_i, x_i, y_i, q_i' title='a_i, x_i, y_i, q_i' class='latex-inline' /> as follows, <img src='http://math.fontein.de/wp-content/latex/4d5/4d5f00ce9c46e250390e26b1e25a15ff-T-000000-0.png' alt='i \in \N' title='i \in \N' class='latex-inline' />: Given the corresponding values for <img src='http://math.fontein.de/wp-content/latex/6f4/6f409906c2a29da07030a8cb6b0b76e0-T-000000-0.png' alt='i - 1' title='i - 1' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/1b4/1b44b97043d3c65f4bcf3a1b5adfc91e-T-000000-0.png' alt='i - 2' title='i - 2' class='latex-inline' />, there exist <img src='http://math.fontein.de/wp-content/latex/0f7/0f7a9f44add08bec404f0455fecbe65c-T-000000-0.png' alt='a_i, q_i \in R' title='a_i, q_i \in R' class='latex-inline' /> such that <img src='http://math.fontein.de/wp-content/latex/cf2/cf2d1e28d1672afca9eef97310b55d2e-T-000000-0.png' alt='a_{i-2} = q_i a_{i-1} + a_i' title='a_{i-2} = q_i a_{i-1} + a_i' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/581/581e220f0e10a5a72e8c7da600d27238-T-000000-0.png' alt='d(a_i) &lt; d(a_{i-1})' title='d(a_i) &lt; d(a_{i-1})' class='latex-inline' />. Moreover, set <img src='http://math.fontein.de/wp-content/latex/164/16420a566f22c9558b4e6c7ad0e11f61-T-000000-0.png' alt='x_i := x_{i-2} - q_i x_{i-1}' title='x_i := x_{i-2} - q_i x_{i-1}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/a03/a03da5041a6a24744d693c668f2773b6-T-000000-0.png' alt='y_i := y_{i-2} - q_i y_{i-1}' title='y_i := y_{i-2} - q_i y_{i-1}' class='latex-inline' />.
In case <img src='http://math.fontein.de/wp-content/latex/df8/df838c0029935430cd68535b2065a9f4-T-000000-0.png' alt='a_i = 0' title='a_i = 0' class='latex-inline' /> for some <img src='http://math.fontein.de/wp-content/latex/865/865c0c0b4ab0e063e5caa3387c1a8741-T-000000-0.png' alt='i' title='i' class='latex-inline' />, set <img src='http://math.fontein.de/wp-content/latex/ea3/ea3129537da56242d16bc3403bc4a750-T-000000-0.png' alt='N := i' title='N := i' class='latex-inline' /> and stop the process. Otherwise, set <img src='http://math.fontein.de/wp-content/latex/8df/8df1018812b9b66479ba94931ebbafba-T-000000-0.png' alt='N := \infty' title='N := \infty' class='latex-inline' />. Moreover, for <img src='http://math.fontein.de/wp-content/latex/968/9685df84db7fcb773c9e5e36eedd0434-T-000000-0.png' alt='i \ge -1' title='i \ge -1' class='latex-inline' /> define <img src='http://math.fontein.de/wp-content/latex/93f/93fa17f2bcb6a1a88fc5ba3df7ea2dd3-T-000000-0.png' alt='\displaystyle  M_i := \Matrix{ a_i &amp; a_{i-1} \\ x_i  &amp; x_{i-1} \\ y_i &amp; y_{i-1} } \quad \text{and} \quad Q_i := \Matrix{ -q_i &amp; 1 \\ 1 &amp; 0 }. ' title='\displaystyle  M_i := \Matrix{ a_i &amp; a_{i-1} \\ x_i  &amp; x_{i-1} \\ y_i &amp; y_{i-1} } \quad \text{and} \quad Q_i := \Matrix{ -q_i &amp; 1 \\ 1 &amp; 0 }. ' class='latex-displaystyle' /> We then have the following properties:
<ol>
<li><img src='http://math.fontein.de/wp-content/latex/61a/61affb1a14611826b80b526b91f114b5-T-000000-0.png' alt='N &lt; \infty' title='N &lt; \infty' class='latex-inline' />, i.e. the process terminates;</li>
<li>for <img src='http://math.fontein.de/wp-content/latex/03e/03e4c3b3871f865c40b1dcc880b09d8a-T-000000-0.png' alt='i \le N' title='i \le N' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/a58/a5829069fe9f4b991f3a08b903143a83-T-000000-0.png' alt='a_i = x_i n + y_i m' title='a_i = x_i n + y_i m' class='latex-inline' />;</li>
<li>for <img src='http://math.fontein.de/wp-content/latex/349/349ea05e783be3cc893805dac6e9e18e-T-000000-0.png' alt='0 \le i \le N' title='0 \le i \le N' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/33a/33a37c8c34fa306052c8aa3c2fd8ffb1-T-000000-0.png' alt='M_i = M_{i-1} Q_i' title='M_i = M_{i-1} Q_i' class='latex-inline' />;</li>
<li>for <img src='http://math.fontein.de/wp-content/latex/bd6/bd6a946f5f6ed734a2c8f58e2d68b11c-T-000000-0.png' alt='-2 \le i &lt; N' title='-2 \le i &lt; N' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/453/4538d49db7fc5965749e1e0b3ab628be-T-000000-0.png' alt='x_i y_{i+1} - x_{i+1} y_i = (-1)^i' title='x_i y_{i+1} - x_{i+1} y_i = (-1)^i' class='latex-inline' />;</li>
<li>we have that <img src='http://math.fontein.de/wp-content/latex/59e/59e44ac115b5fb1bcff2e91f79dfc257-T-000000-0.png' alt='a_{N-1}' title='a_{N-1}' class='latex-inline' /> is a greatest common divisor for <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/6f8/6f8f57715090da2632453988d9a1501b-T-000000-0.png' alt='m' title='m' class='latex-inline' />;</li>
<li>we have <img src='http://math.fontein.de/wp-content/latex/569/569dd9af7959e5f3936184f977325fb6-T-000000-0.png' alt='x_N \sim \frac{m}{a_{i-1}}' title='x_N \sim \frac{m}{a_{i-1}}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/696/696c0cd00c506ce10c116debb1a43728-T-000000-0.png' alt='y_N \sim \frac{n}{a_{i-1}}' title='y_N \sim \frac{n}{a_{i-1}}' class='latex-inline' />, where <img src='http://math.fontein.de/wp-content/latex/658/6588c95074f2609674f5fe10ab63f88f-T-000000-0.png' alt='\sim' title='\sim' class='latex-inline' /> means equal up to units (i.e. elements of <img src='http://math.fontein.de/wp-content/latex/820/82027e282a4cab1583529ef3e0a7b532-T-000000-0.png' alt='R^*' title='R^*' class='latex-inline' />);</li>
<li>the set of all <img src='http://math.fontein.de/wp-content/latex/49b/49b311da0ed4baee4da4dd66e37ef59c-T-000000-0.png' alt='(x, y)' title='(x, y)' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/024/0249e82e63de156e12513b104c293d59-T-000000-0.png' alt='a_{N-1} = x n + y m' title='a_{N-1} = x n + y m' class='latex-inline' /> is given by <img src='http://math.fontein.de/wp-content/latex/309/309b6ca2faae99f16347173788b51ced-T-000000-0.png' alt='\displaystyle  \{ (x_{N-1} + \tfrac{m}{a_{N-1}} a, y_{N-1} - \tfrac{n}{a_{N-1}} a) \mid a \in R \}; ' title='\displaystyle  \{ (x_{N-1} + \tfrac{m}{a_{N-1}} a, y_{N-1} - \tfrac{n}{a_{N-1}} a) \mid a \in R \}; ' class='latex-displaystyle' /></li>
<li>for <img src='http://math.fontein.de/wp-content/latex/64a/64ad14522995b865c6e2e82a869eb51c-T-000000-0.png' alt='i = 1, \dots, N' title='i = 1, \dots, N' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/6c0/6c077499a0220cb2b14a363e8972c472-T-000000-0.png' alt='q_i \neq 0' title='q_i \neq 0' class='latex-inline' />; moreover, <img src='http://math.fontein.de/wp-content/latex/4d9/4d988f98197b8aeb6782aa74b7d146e5-T-000000-0.png' alt='q_0 = 0' title='q_0 = 0' class='latex-inline' /> can only happen if <img src='http://math.fontein.de/wp-content/latex/ba1/ba19951e859807140b38c8d75125e016-T-000000-0.png' alt='d(n) &lt; d(m)' title='d(n) &lt; d(m)' class='latex-inline' />;</li>
<li>for <img src='http://math.fontein.de/wp-content/latex/a4b/a4ba97ce3dd25451f66b3cec6f0802fb-T-000000-0.png' alt='i = -1, \dots, N' title='i = -1, \dots, N' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/ac6/ac67b2c37621894084e24effbf4748ab-T-000000-0.png' alt='a_{i-1} x_i - x_{i-1} a_i = (-1)^i m' title='a_{i-1} x_i - x_{i-1} a_i = (-1)^i m' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/ea3/ea3b3acd79e0241d22fd9c36aa832858-T-000000-0.png' alt='a_{i-1} y_i - y_{i-1} a_i = (-1)^{i-1} n' title='a_{i-1} y_i - y_{i-1} a_i = (-1)^{i-1} n' class='latex-inline' />.</li>
</ol>
</div></blockquote>

<p>This process of computing the <img src='http://math.fontein.de/wp-content/latex/f3d/f3de569866c23615014e708647bfbbc2-T-000000-0.png' alt='a_i, x_i, y_i' title='a_i, x_i, y_i' class='latex-inline' /> is also known as the <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Extended_Euclidean_algorithm">Extended Euclidean Algorithm</a> (EEA). It is used, for example, to find explicit solutions to the <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Chinese_remainder_theorem">Chinese Remainder Theorem</a>, as well as <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Modular_multiplicative_inverse">inverting elements</a> in <img src='http://math.fontein.de/wp-content/latex/28f/28fdf57e934d152e2312cdba358ab831-T-000000-0.png' alt='\Z/n\Z' title='\Z/n\Z' class='latex-inline' /> or <img src='http://math.fontein.de/wp-content/latex/64f/64f2d90b97119e0658d097b70d0a36c6-T-000000-0.png' alt='K[x]/(f)' title='K[x]/(f)' class='latex-inline' />.</p>

<blockquote class='proof'><div class='prooftitle'>Proof.</div> <div class='proofmain'>
<ol>
<li>Note that <img src='http://math.fontein.de/wp-content/latex/581/581e220f0e10a5a72e8c7da600d27238-T-000000-0.png' alt='d(a_i) &lt; d(a_{i-1})' title='d(a_i) &lt; d(a_{i-1})' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/5af/5af0c3d945bcd233af98060298f70a8f-T-000000-0.png' alt='i \ge 0' title='i \ge 0' class='latex-inline' />; therefore, as <img src='http://math.fontein.de/wp-content/latex/44d/44d60b9335dd34908083832e49e5bc68-T-000000-0.png' alt='d(a_i) \in \N' title='d(a_i) \in \N' class='latex-inline' />, we obtain a strictly decreasing sequence of natural numbers, which eventually has to stop. Hence, <img src='http://math.fontein.de/wp-content/latex/61a/61affb1a14611826b80b526b91f114b5-T-000000-0.png' alt='N &lt; \infty' title='N &lt; \infty' class='latex-inline' />.</li>
<li>We show this by <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Strong_induction#Complete_induction">strong induction</a> on <img src='http://math.fontein.de/wp-content/latex/865/865c0c0b4ab0e063e5caa3387c1a8741-T-000000-0.png' alt='i' title='i' class='latex-inline' />. First, for <img src='http://math.fontein.de/wp-content/latex/e0f/e0fd384987894b4c582ac7ad68095b17-T-000000-0.png' alt='i = -2, -1' title='i = -2, -1' class='latex-inline' />, the statement is true. Now assume it is true for all <img src='http://math.fontein.de/wp-content/latex/ed2/ed28f04812ab07c260d0cb321a764668-T-000000-0.png' alt='j &lt; i' title='j &lt; i' class='latex-inline' />; using induction, we obtain <img src='http://math.fontein.de/wp-content/latex/f92/f92cfd2700111d0058340f7861225a12-T-000000-0.png' alt=' x_i n + y_i m ={} &amp; (x_{i-2} - q_i x_{i-1}) n + (y_{i-2} - q_i y_{i-1}) m \\ {}={} &amp; (x_{i-2} n + y_{i-2} m) - q_i (x_{i-1} n + y_{i-1} m) \\ {}={} &amp; a_{i-2} - q_i a_{i-1} = a_i. ' title=' x_i n + y_i m ={} &amp; (x_{i-2} - q_i x_{i-1}) n + (y_{i-2} - q_i y_{i-1}) m \\ {}={} &amp; (x_{i-2} n + y_{i-2} m) - q_i (x_{i-1} n + y_{i-1} m) \\ {}={} &amp; a_{i-2} - q_i a_{i-1} = a_i. ' class='latex-displaystyle' /></li>
<li>This follows from <img src='http://math.fontein.de/wp-content/latex/cf8/cf89f79dee0211d4957c764b4014c41c-T-000000-0.png' alt='a_i = a_{i-2} - a_{i-1} q_i' title='a_i = a_{i-2} - a_{i-1} q_i' class='latex-inline' /> and the definitions of <img src='http://math.fontein.de/wp-content/latex/1ba/1ba8aaab47179b3d3e24b0ccea9f4e30-T-000000-0.png' alt='x_i' title='x_i' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/8d6/8d62e469fb30ed435a668eb5c035b1f6-T-000000-0.png' alt='y_i' title='y_i' class='latex-inline' />.</li>
<li>We show this by induction on <img src='http://math.fontein.de/wp-content/latex/865/865c0c0b4ab0e063e5caa3387c1a8741-T-000000-0.png' alt='i' title='i' class='latex-inline' />. For <img src='http://math.fontein.de/wp-content/latex/885/8850d24981f01fffa25a21ac29b80046-T-000000-0.png' alt='i = -2' title='i = -2' class='latex-inline' />, this is clearly true. Assume it is true for <img src='http://math.fontein.de/wp-content/latex/865/865c0c0b4ab0e063e5caa3387c1a8741-T-000000-0.png' alt='i' title='i' class='latex-inline' />; then
<img src='http://math.fontein.de/wp-content/latex/a3a/a3ada3dc1bfd512098f4c4d78b68441b-T-000000-0.png' alt=' &amp; x_{i+1} y_{i+2} - x_{i+2} y_{i+1} \\ {}={} &amp; x_{i+1} (y_i - q_{i+2} y_{i+1}) - (x_i - q_{i+2} x_{i+1}) y_{i+1} \\ {}={} &amp; -(x_i y_{i+1} - x_{i+1} y_i) =  -(-1)^i = (-1)^{i+1}. ' title=' &amp; x_{i+1} y_{i+2} - x_{i+2} y_{i+1} \\ {}={} &amp; x_{i+1} (y_i - q_{i+2} y_{i+1}) - (x_i - q_{i+2} x_{i+1}) y_{i+1} \\ {}={} &amp; -(x_i y_{i+1} - x_{i+1} y_i) =  -(-1)^i = (-1)^{i+1}. ' class='latex-displaystyle' /></li>
<li>Let <img src='http://math.fontein.de/wp-content/latex/0cc/0cc175b9c0f1b6a831c399e269772661-T-000000-0.png' alt='a' title='a' class='latex-inline' /> be a common divisor of <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/6f8/6f8f57715090da2632453988d9a1501b-T-000000-0.png' alt='m' title='m' class='latex-inline' />. As <img src='http://math.fontein.de/wp-content/latex/2f0/2f03583d5c41e9ba3197d28f472998db-T-000000-0.png' alt='a_{N-1} = x_{N-1} n + y_{N-1} m' title='a_{N-1} = x_{N-1} n + y_{N-1} m' class='latex-inline' />, we see that <img src='http://math.fontein.de/wp-content/latex/0cc/0cc175b9c0f1b6a831c399e269772661-T-000000-0.png' alt='a' title='a' class='latex-inline' /> divides <img src='http://math.fontein.de/wp-content/latex/59e/59e44ac115b5fb1bcff2e91f79dfc257-T-000000-0.png' alt='a_{N-1}' title='a_{N-1}' class='latex-inline' />. We now have to show that <img src='http://math.fontein.de/wp-content/latex/59e/59e44ac115b5fb1bcff2e91f79dfc257-T-000000-0.png' alt='a_{N-1}' title='a_{N-1}' class='latex-inline' /> divides both <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/6f8/6f8f57715090da2632453988d9a1501b-T-000000-0.png' alt='m' title='m' class='latex-inline' />. We show that <img src='http://math.fontein.de/wp-content/latex/59e/59e44ac115b5fb1bcff2e91f79dfc257-T-000000-0.png' alt='a_{N-1}' title='a_{N-1}' class='latex-inline' /> divides <img src='http://math.fontein.de/wp-content/latex/2ae/2aecb1dc57e87620a373d19b0a889efb-T-000000-0.png' alt='a_i' title='a_i' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/03e/03e4c3b3871f865c40b1dcc880b09d8a-T-000000-0.png' alt='i \le N' title='i \le N' class='latex-inline' />. It clearly divides <img src='http://math.fontein.de/wp-content/latex/59e/59e44ac115b5fb1bcff2e91f79dfc257-T-000000-0.png' alt='a_{N-1}' title='a_{N-1}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/3ad/3ad9dac499269131b7bf2bc22dac02fa-T-000000-0.png' alt='a_N = 0' title='a_N = 0' class='latex-inline' />. Hence, <img src='http://math.fontein.de/wp-content/latex/69b/69bec8b158b00f74c2dd01afdf7f399b-T-000000-0.png' alt='a_i = q_{i+2} a_{i+1} + a_{i+2}' title='a_i = q_{i+2} a_{i+1} + a_{i+2}' class='latex-inline' /> is divisible by <img src='http://math.fontein.de/wp-content/latex/59e/59e44ac115b5fb1bcff2e91f79dfc257-T-000000-0.png' alt='a_{N-1}' title='a_{N-1}' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/94d/94d5bd29f35b81acc9cd7ece50cf83b4-T-000000-0.png' alt='i = N-2, N-3, \dots, 0, -1, -2' title='i = N-2, N-3, \dots, 0, -1, -2' class='latex-inline' />; as <img src='http://math.fontein.de/wp-content/latex/d6c/d6cb6f238908c3acc5a146336d92f7b7-T-000000-0.png' alt='a_{-1} = m' title='a_{-1} = m' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/53e/53e0d8bd4f031e8525e91edea242bcc4-T-000000-0.png' alt='a_{n-2} = n' title='a_{n-2} = n' class='latex-inline' />, the claim is proven.</li>
<li>We have <img src='http://math.fontein.de/wp-content/latex/1a0/1a091826e155c6132d30e6573a6f4b63-T-000000-0.png' alt='0 = a_N = x_N n + y_N m' title='0 = a_N = x_N n + y_N m' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/7bf/7bfdddb1e9f64e4e6bbda256c37162a6-T-000000-0.png' alt='x_N \frac{n}{a_{N-1}} = -y_N \frac{m}{a_{N-1}}' title='x_N \frac{n}{a_{N-1}} = -y_N \frac{m}{a_{N-1}}' class='latex-inline' />. Now <img src='http://math.fontein.de/wp-content/latex/0aa/0aa425f5062f7820108f3fa83e0ba975-T-000000-0.png' alt='\frac{n}{a_{N-1}}' title='\frac{n}{a_{N-1}}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/605/6053390ec99b5eb84d5c8867d42682a0-T-000000-0.png' alt='\frac{m}{a_{N-1}}' title='\frac{m}{a_{N-1}}' class='latex-inline' /> are coprime by (5), and <img src='http://math.fontein.de/wp-content/latex/d7d/d7df2a8349bc0e178f1d5530ddbf3ba9-T-000000-0.png' alt='x_N' title='x_N' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/650/650f7597900344f13a04b97e4adae566-T-000000-0.png' alt='y_N' title='y_N' class='latex-inline' /> are coprime by (4), whence we must have <img src='http://math.fontein.de/wp-content/latex/c32/c32015b943f919fad25cb45012d7540b-T-000000-0.png' alt='x_N \sim \frac{m}{a_{N-1}}' title='x_N \sim \frac{m}{a_{N-1}}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/5ce/5cee63a5be31eb50560a9d4c057cecb1-T-000000-0.png' alt='y_N \sim \frac{n}{a_{N-1}}' title='y_N \sim \frac{n}{a_{N-1}}' class='latex-inline' />.</li>
<li>Clearly, every element in the set is a solution of <img src='http://math.fontein.de/wp-content/latex/024/0249e82e63de156e12513b104c293d59-T-000000-0.png' alt='a_{N-1} = x n + y m' title='a_{N-1} = x n + y m' class='latex-inline' />, as <img src='http://math.fontein.de/wp-content/latex/413/41326a136a805f71658f5629ee20b607-T-000000-0.png' alt='\tfrac{m}{a_{N-1}} n + (-\tfrac{n}{a_{N-1}}) m = 0' title='\tfrac{m}{a_{N-1}} n + (-\tfrac{n}{a_{N-1}}) m = 0' class='latex-inline' />. Now let <img src='http://math.fontein.de/wp-content/latex/49b/49b311da0ed4baee4da4dd66e37ef59c-T-000000-0.png' alt='(x, y)' title='(x, y)' class='latex-inline' /> satisfy <img src='http://math.fontein.de/wp-content/latex/024/0249e82e63de156e12513b104c293d59-T-000000-0.png' alt='a_{N-1} = x n + y m' title='a_{N-1} = x n + y m' class='latex-inline' />; then <img src='http://math.fontein.de/wp-content/latex/7e3/7e319ae7a9eaba5b97596bd0e08f667f-T-000000-0.png' alt='x&#039; := x - x_{N-1}' title='x&#039; := x - x_{N-1}' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/8d1/8d111ae6f9cbbab6b5fa1bf6b9ffc979-T-000000-0.png' alt='y&#039; := y + y_{N-1}' title='y&#039; := y + y_{N-1}' class='latex-inline' /> satisfy <img src='http://math.fontein.de/wp-content/latex/eae/eaeb9bf47f3e9efd2f0e5d6ff0373c1a-T-000000-0.png' alt='x&#039; n + y&#039; m = 0' title='x&#039; n + y&#039; m = 0' class='latex-inline' />. Dividing by <img src='http://math.fontein.de/wp-content/latex/59e/59e44ac115b5fb1bcff2e91f79dfc257-T-000000-0.png' alt='a_{N-1}' title='a_{N-1}' class='latex-inline' />, we get <img src='http://math.fontein.de/wp-content/latex/dd7/dd7fadfc85a98aa715105f4207ed5170-T-000000-0.png' alt='x&#039; \frac{n}{a_{N-1}} = -y&#039; \frac{m}{a_{N-1}}' title='x&#039; \frac{n}{a_{N-1}} = -y&#039; \frac{m}{a_{N-1}}' class='latex-inline' />. By (5), we get that <img src='http://math.fontein.de/wp-content/latex/2ef/2ef720893f050638e92a7855fd2b58b5-T-000000-0.png' alt='\frac{m}{a_{N-1}} \mid x&#039;' title='\frac{m}{a_{N-1}} \mid x&#039;' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/1cc/1cc772ac1c25fc69f7f4dd100ebdf714-T-000000-0.png' alt='\frac{n}{a_{N-1}} \mid y&#039;' title='\frac{n}{a_{N-1}} \mid y&#039;' class='latex-inline' />; write <img src='http://math.fontein.de/wp-content/latex/e8c/e8c803548d1a00b0ce32bdb9d17aedec-T-000000-0.png' alt='x&#039; = \frac{m}{a_{N-1}} x&#039;&#039;' title='x&#039; = \frac{m}{a_{N-1}} x&#039;&#039;' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/78e/78ec08cc1f15ee4f685f1a4ec6105d03-T-000000-0.png' alt='y&#039; = \frac{n}{a_{N-1}} y&#039;&#039;' title='y&#039; = \frac{n}{a_{N-1}} y&#039;&#039;' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/3d8/3d887da41b49687943ec98dff0ac0fda-T-000000-0.png' alt='x&#039;&#039;, y&#039;&#039; \in R' title='x&#039;&#039;, y&#039;&#039; \in R' class='latex-inline' />. This gives <img src='http://math.fontein.de/wp-content/latex/00f/00fe723dedd2ed86f43493d4db629654-T-000000-0.png' alt='x&#039;&#039; \frac{m}{a_{N-1}} \frac{n}{a_{N-1}} = -y&#039;&#039; \frac{n}{a_{N-1}} \frac{m}{a_{N-1}}' title='x&#039;&#039; \frac{m}{a_{N-1}} \frac{n}{a_{N-1}} = -y&#039;&#039; \frac{n}{a_{N-1}} \frac{m}{a_{N-1}}' class='latex-inline' />, and cancelling shows <img src='http://math.fontein.de/wp-content/latex/bc4/bc4ac5b088b335ec02115cbec1a8f338-T-000000-0.png' alt='x&#039;&#039; = -y&#039;&#039;' title='x&#039;&#039; = -y&#039;&#039;' class='latex-inline' />; therefore, <img src='http://math.fontein.de/wp-content/latex/49b/49b311da0ed4baee4da4dd66e37ef59c-T-000000-0.png' alt='(x, y)' title='(x, y)' class='latex-inline' /> lies in the set.</li>
<li>We have <img src='http://math.fontein.de/wp-content/latex/43b/43b4eeff6f98cbb4e5bb5de4b06b0f92-T-000000-0.png' alt='n = q_0 m + a_0' title='n = q_0 m + a_0' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/81f/81fae94ccc11a45f2f99e8ad0eec0468-T-000000-0.png' alt='d(a_0) &lt; d(m)' title='d(a_0) &lt; d(m)' class='latex-inline' />, whence we have <img src='http://math.fontein.de/wp-content/latex/4d9/4d988f98197b8aeb6782aa74b7d146e5-T-000000-0.png' alt='q_0 = 0' title='q_0 = 0' class='latex-inline' /> if, and only if, <img src='http://math.fontein.de/wp-content/latex/bea/bea6e8892289270af8363e184bb5dbb9-T-000000-0.png' alt='n = a_0' title='n = a_0' class='latex-inline' />. This can only happen if <img src='http://math.fontein.de/wp-content/latex/ba1/ba19951e859807140b38c8d75125e016-T-000000-0.png' alt='d(n) &lt; d(m)' title='d(n) &lt; d(m)' class='latex-inline' />.
<br />
For <img src='http://math.fontein.de/wp-content/latex/534/53471bc23fccbe58270a89cb2139e07f-T-000000-0.png' alt='i &gt; 0' title='i &gt; 0' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/162/162d3b48529fdc72b918ef17709f1fdc-T-000000-0.png' alt='d(a_i) &lt; d(a_{i-1}) &lt; d(a_{i-2})' title='d(a_i) &lt; d(a_{i-1}) &lt; d(a_{i-2})' class='latex-inline' />, whereas <img src='http://math.fontein.de/wp-content/latex/687/68771aa0f431d95fa3b7028625ca9fa4-T-000000-0.png' alt='q_i = 0' title='q_i = 0' class='latex-inline' /> would imply <img src='http://math.fontein.de/wp-content/latex/106/106eaa7b46320ef702ec25209c88765f-T-000000-0.png' alt='a_i = a_{i-2}' title='a_i = a_{i-2}' class='latex-inline' />.</li>
<li>We have <img src='http://math.fontein.de/wp-content/latex/3f2/3f2b1e669a06e373e2f24ccc11b4e701-T-000000-0.png' alt='a_{i-1} x_i ={} &amp; x_{i-1} x_i n + y_{i-1} x_i m \\ {}={} &amp; x_{i-1} x_i n + (y_i x_{i-1} + (-1)^i) m \\ {}={} &amp; x_{i-1} (x_i n + y_i m) + (-1)^i m \\ {}={} &amp; x_{i-1} a_i + (-1)^i m' title='a_{i-1} x_i ={} &amp; x_{i-1} x_i n + y_{i-1} x_i m \\ {}={} &amp; x_{i-1} x_i n + (y_i x_{i-1} + (-1)^i) m \\ {}={} &amp; x_{i-1} (x_i n + y_i m) + (-1)^i m \\ {}={} &amp; x_{i-1} a_i + (-1)^i m' class='latex-displaystyle' /> and <img src='http://math.fontein.de/wp-content/latex/a55/a556b559b02144d6a7505dd91f122f19-T-000000-0.png' alt='a_{i-1} y_i ={} &amp; x_{i-1} y_i n + y_{i-1} y_i m \\ {}={} &amp; (y_{i-1} x_i + (-1)^{i-1}) n + y_{i-1} y_i m \\ {}={} &amp; y_{i-1} (x_i n + y_i m) + (-1)^{i-1} n \\ {}={} &amp; y_{i-1} a_i + (-1)^{i-1} n.' title='a_{i-1} y_i ={} &amp; x_{i-1} y_i n + y_{i-1} y_i m \\ {}={} &amp; (y_{i-1} x_i + (-1)^{i-1}) n + y_{i-1} y_i m \\ {}={} &amp; y_{i-1} (x_i n + y_i m) + (-1)^{i-1} n \\ {}={} &amp; y_{i-1} a_i + (-1)^{i-1} n.' class='latex-displaystyle' /></li>
</ol>
</div><div class='proofqed'>□</div></blockquote>

<p>We note two special properties of Euclidean division for <img src='http://math.fontein.de/wp-content/latex/145/1458a437b3c6456f9ebf61d46c9ed13e-T-000000-0.png' alt='\Z' title='\Z' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/a77/a77a9131b3530308247cff0e3c92321a-T-000000-0.png' alt='K[x]' title='K[x]' class='latex-inline' />:</p>
<ol>
<li>In case of <img src='http://math.fontein.de/wp-content/latex/4bc/4bc4f7a9a8749f25409106856ba25b73-T-000000-0.png' alt='R = \Z' title='R = \Z' class='latex-inline' />, one can make <img src='http://math.fontein.de/wp-content/latex/4b4/4b43b0aee35624cd95b910189b3dc231-T-000000-0.png' alt='r' title='r' class='latex-inline' /> unique by specifying <img src='http://math.fontein.de/wp-content/latex/794/794ca669531c380230997b3f02a46371-T-000000-0.png' alt='r \le 0' title='r \le 0' class='latex-inline' /> or <img src='http://math.fontein.de/wp-content/latex/7ef/7ef7e67117f57235e1b36cb66ddf791a-T-000000-0.png' alt='r \ge 0' title='r \ge 0' class='latex-inline' />. I.e., for every <img src='http://math.fontein.de/wp-content/latex/b1e/b1ec4d20956228d825a32ab86f04da04-T-000000-0.png' alt='a, b \in \Z' title='a, b \in \Z' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/cb9/cb906af48ef352d619ddf29c0e4f1447-T-000000-0.png' alt='b \neq 0' title='b \neq 0' class='latex-inline' /> there exists unique elements <img src='http://math.fontein.de/wp-content/latex/ffc/ffcfba513ca49643e9c7d2e0edd6d449-T-000000-0.png' alt='q, r, q&#039;, r&#039; \in \Z' title='q, r, q&#039;, r&#039; \in \Z' class='latex-inline' /> such that <img src='http://math.fontein.de/wp-content/latex/c3f/c3f39ef18fc1014fe35207778b0079ce-T-000000-0.png' alt='a = q b + r = q&#039; b + r&#039;' title='a = q b + r = q&#039; b + r&#039;' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/8b9/8b95be8a79e19e151d6d3417c1fa40e8-T-000000-0.png' alt='-\abs{b} &lt; r&#039; \le r &lt; \abs{b}' title='-\abs{b} &lt; r&#039; \le r &lt; \abs{b}' class='latex-inline' />. Note, that in case <img src='http://math.fontein.de/wp-content/latex/5bb/5bb3c6378a36e3c0312759bb8c843c21-T-000000-0.png' alt='r&#039; \neq r' title='r&#039; \neq r' class='latex-inline' /> we have that <i>either</i> <img src='http://math.fontein.de/wp-content/latex/57b/57bf23c05acdfdc02f1e5259caa6a1ab-T-000000-0.png' alt='\abs{a - r} \le \abs{a}' title='\abs{a - r} \le \abs{a}' class='latex-inline' /> <i>or</i> <img src='http://math.fontein.de/wp-content/latex/f68/f685b420c8aa4d22c799a53bf23ac722-T-000000-0.png' alt='\abs{a - r&#039;} \le \abs{a}' title='\abs{a - r&#039;} \le \abs{a}' class='latex-inline' />.</li>
<li>In case of <img src='http://math.fontein.de/wp-content/latex/753/753f7a82855ed09e8cd59fc126d06832-T-000000-0.png' alt='R = K[x]' title='R = K[x]' class='latex-inline' />, the polynomials <img src='http://math.fontein.de/wp-content/latex/769/7694f4a66316e53c8cdd9d9954bd611d-T-000000-0.png' alt='q' title='q' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/4b4/4b43b0aee35624cd95b910189b3dc231-T-000000-0.png' alt='r' title='r' class='latex-inline' /> are unique and satisfy <img src='http://math.fontein.de/wp-content/latex/119/119b9f7b4eac549903b3da9030eea8f5-T-000000-0.png' alt='\deg (a - r) \le \deg a' title='\deg (a - r) \le \deg a' class='latex-inline' />: if <img src='http://math.fontein.de/wp-content/latex/c3f/c3f39ef18fc1014fe35207778b0079ce-T-000000-0.png' alt='a = q b + r = q&#039; b + r&#039;' title='a = q b + r = q&#039; b + r&#039;' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/90e/90e24c781b25a80f789e958a6a520c97-T-000000-0.png' alt='q, q&#039;, r, r&#039; \in K[x]' title='q, q&#039;, r, r&#039; \in K[x]' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/a9b/a9b1f623f5778bd2471608f74d5da0f2-T-000000-0.png' alt='\deg r, \deg r&#039; &lt; \deg b' title='\deg r, \deg r&#039; &lt; \deg b' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/49a/49a5393ab22e0444f1764b7c2087fefb-T-000000-0.png' alt='r - r&#039; = b (q&#039; - q)' title='r - r&#039; = b (q&#039; - q)' class='latex-inline' />. As <img src='http://math.fontein.de/wp-content/latex/e2c/e2c1e4aef4aa87dc95a3154d65c5edfe-T-000000-0.png' alt='\deg(r - r&#039;) &lt; \deg b' title='\deg(r - r&#039;) &lt; \deg b' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/cb3/cb34461d6766fd35adfed0eaf31a89ca-T-000000-0.png' alt='\deg (b (q&#039; - q)) = \deg b + \deg (q&#039; - q)' title='\deg (b (q&#039; - q)) = \deg b + \deg (q&#039; - q)' class='latex-inline' />, we must have <img src='http://math.fontein.de/wp-content/latex/a49/a49b05ec7d98afe75b00a835db0feca9-T-000000-0.png' alt='q&#039; - q = 0' title='q&#039; - q = 0' class='latex-inline' />, hence also <img src='http://math.fontein.de/wp-content/latex/530/5302be2627fd8c10d4d8dcc06f84eca4-T-000000-0.png' alt='r - r&#039; = 0' title='r - r&#039; = 0' class='latex-inline' />. Now if <img src='http://math.fontein.de/wp-content/latex/33f/33f4ab27b160a1e6715bec4fe484e157-T-000000-0.png' alt='\deg a &lt; \deg b' title='\deg a &lt; \deg b' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/77b/77be6692846ac3fea5b91c9d72895150-T-000000-0.png' alt='r = a' title='r = a' class='latex-inline' />; otherwise, <img src='http://math.fontein.de/wp-content/latex/54f/54f2a56f21c8cae39e059759f7b1d880-T-000000-0.png' alt='\deg r &lt; \deg b \le \deg a' title='\deg r &lt; \deg b \le \deg a' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/b16/b16c947b4c35b24458bbf2eeb95892a1-T-000000-0.png' alt='\deg(a - r) = \deg a' title='\deg(a - r) = \deg a' class='latex-inline' />.</li>
</ol>
<p>Hence, in both cases, for every <img src='http://math.fontein.de/wp-content/latex/3fd/3fd82b69a39b8a62ea897e8a7ae1fdf5-T-000000-0.png' alt='a, b \in R' title='a, b \in R' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/cb9/cb906af48ef352d619ddf29c0e4f1447-T-000000-0.png' alt='b \neq 0' title='b \neq 0' class='latex-inline' />, there exist <i>unique</i> <img src='http://math.fontein.de/wp-content/latex/546/546ad4220c6779be2a87d65677848e6e-T-000000-0.png' alt='q, r \in R' title='q, r \in R' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/b52/b52e1f79ddcbafa459c0ce33d74e7583-T-000000-0.png' alt='a = q b + r' title='a = q b + r' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/684/68452ed9b3e0dc96783b8e141307b11e-T-000000-0.png' alt='d(r) &lt; d(b)' title='d(r) &lt; d(b)' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/d0d/d0d844e511ce53049466d6b08a741c6d-T-000000-0.png' alt='d(a - r) = d(q b) \le d(a)' title='d(a - r) = d(q b) \le d(a)' class='latex-inline' />.</p>

<p>In the following, we prove several properties for the Extended Euclidean Algorithm for both cases. We begin with the integer case.</p>

<blockquote class='theorem'><div class='theoremtitle'>Proposition.</div> <div class='theoremmain'>
Assume that <img src='http://math.fontein.de/wp-content/latex/d4f/d4fa1800a5d0d8925e3215e9b4ec4912-T-000000-0.png' alt='n, m \neq 0' title='n, m \neq 0' class='latex-inline' />, that <img src='http://math.fontein.de/wp-content/latex/4bc/4bc4f7a9a8749f25409106856ba25b73-T-000000-0.png' alt='R = \Z' title='R = \Z' class='latex-inline' /> and that <img src='http://math.fontein.de/wp-content/latex/d31/d31ef43c9e247e0c40191fd5d5b7af05-T-000000-0.png' alt='d(z) = \abs{z}' title='d(z) = \abs{z}' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/e00/e00a70d4a729ba387fe245b5388a135a-T-000000-0.png' alt='z \in \Z' title='z \in \Z' class='latex-inline' />. Moreover, assume that <img src='http://math.fontein.de/wp-content/latex/da3/da326f7200e158a864695985b2e2f095-T-000000-0.png' alt='q_i' title='q_i' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/2ae/2aecb1dc57e87620a373d19b0a889efb-T-000000-0.png' alt='a_i' title='a_i' class='latex-inline' /> are chosen as above, i.e. such that <img src='http://math.fontein.de/wp-content/latex/1cc/1ccbc41bbe53e03fa9837d7f0431909d-T-000000-0.png' alt='\abs{a_{i-2} - a_i} \le \abs{a_{i-2}}' title='\abs{a_{i-2} - a_i} \le \abs{a_{i-2}}' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/75e/75eb7e750137d829605d45e1b17461f5-T-000000-0.png' alt='i = 0, \dots, N' title='i = 0, \dots, N' class='latex-inline' />. Then:
<ol>
<li>we have that <img src='http://math.fontein.de/wp-content/latex/2ae/2aecb1dc57e87620a373d19b0a889efb-T-000000-0.png' alt='a_i' title='a_i' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/8bb/8bb1501d5a1a80b7e989cdf50cda0f58-T-000000-0.png' alt='a_{i-2}' title='a_{i-2}' class='latex-inline' /> have the same sign for <img src='http://math.fontein.de/wp-content/latex/cec/cecd61b9b4e0d3e0e47a9a52e947ee20-T-000000-0.png' alt='i = 0, \dots, N - 1' title='i = 0, \dots, N - 1' class='latex-inline' />;</li>
<li>we have <img src='http://math.fontein.de/wp-content/latex/c83/c83e19ce2900f0b38da707e1a8700dcb-T-000000-0.png' alt='q_i \ge 0' title='q_i \ge 0' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/865/865c0c0b4ab0e063e5caa3387c1a8741-T-000000-0.png' alt='i' title='i' class='latex-inline' /> if <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/6f8/6f8f57715090da2632453988d9a1501b-T-000000-0.png' alt='m' title='m' class='latex-inline' /> have the same sign, and <img src='http://math.fontein.de/wp-content/latex/233/233b7ecc856e9af964c16c8f984bcaab-T-000000-0.png' alt='q_i \le 0' title='q_i \le 0' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/865/865c0c0b4ab0e063e5caa3387c1a8741-T-000000-0.png' alt='i' title='i' class='latex-inline' /> if <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/6f8/6f8f57715090da2632453988d9a1501b-T-000000-0.png' alt='m' title='m' class='latex-inline' /> have different signs.</li>
<li>if <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/6f8/6f8f57715090da2632453988d9a1501b-T-000000-0.png' alt='m' title='m' class='latex-inline' /> have the same signs, <img src='http://math.fontein.de/wp-content/latex/4a3/4a3e0aac6790bc79f73c3a16bffa2eb4-T-000000-0.png' alt='(-1)^i x_i \ge 0' title='(-1)^i x_i \ge 0' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/66b/66b71bb3bd0d7d7525c74bd82e4f8406-T-000000-0.png' alt='(-1)^{i+1} y_i \ge 0' title='(-1)^{i+1} y_i \ge 0' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/aa1/aa18f148f0d1c10e8261ca7eb69140c5-T-000000-0.png' alt='i = -2, \dots, N' title='i = -2, \dots, N' class='latex-inline' />; if <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/6f8/6f8f57715090da2632453988d9a1501b-T-000000-0.png' alt='m' title='m' class='latex-inline' /> have different signs, <img src='http://math.fontein.de/wp-content/latex/f6a/f6a322d51c1330e9c1a660e10da28de0-T-000000-0.png' alt='x_i \ge 0' title='x_i \ge 0' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/930/9300ece0b31ace946e7b78e389a8cd19-T-000000-0.png' alt='y_i \ge 0' title='y_i \ge 0' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/aa1/aa18f148f0d1c10e8261ca7eb69140c5-T-000000-0.png' alt='i = -2, \dots, N' title='i = -2, \dots, N' class='latex-inline' />;</li>
<li>we have <img src='http://math.fontein.de/wp-content/latex/a13/a13a777f271af0f7c4659d67ebe949f0-T-000000-0.png' alt='\abs{x_i} = \abs{q_i x_{i-1}} + \abs{x_{i-2}} &gt; \abs{q_i x_{i-1}} \ge \abs{x_{i-1}}' title='\abs{x_i} = \abs{q_i x_{i-1}} + \abs{x_{i-2}} &gt; \abs{q_i x_{i-1}} \ge \abs{x_{i-1}}' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/75e/75eb7e750137d829605d45e1b17461f5-T-000000-0.png' alt='i = 0, \dots, N' title='i = 0, \dots, N' class='latex-inline' />, and <img src='http://math.fontein.de/wp-content/latex/7b8/7b8e30aab8dea846dedc5ba000004b09-T-000000-0.png' alt='\abs{y_i} = \abs{q_i y_{i-1}} + \abs{y_{i-2}} &gt; \abs{q_i y_{i-1}} \ge \abs{y_{i-1}}' title='\abs{y_i} = \abs{q_i y_{i-1}} + \abs{y_{i-2}} &gt; \abs{q_i y_{i-1}} \ge \abs{y_{i-1}}' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/64a/64ad14522995b865c6e2e82a869eb51c-T-000000-0.png' alt='i = 1, \dots, N' title='i = 1, \dots, N' class='latex-inline' />;</li>
<li>if <img src='http://math.fontein.de/wp-content/latex/dfe/dfec7cc35a468405d94e2017570a1eb4-T-000000-0.png' alt='i, j \in \{ -2, \dots, N \}' title='i, j \in \{ -2, \dots, N \}' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/e44/e44ecced89a0dd233d108db9cf09dd3f-T-000000-0.png' alt='i \not\equiv j \pmod{2}' title='i \not\equiv j \pmod{2}' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/296/296031a1b5b6d76e85266a9d3e89d2b5-T-000000-0.png' alt='(-1)^j \frac{a_i x_j}{m} \ge 0' title='(-1)^j \frac{a_i x_j}{m} \ge 0' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/487/4878343e9b453f771534cc3e4dea36e9-T-000000-0.png' alt='(-1)^i \frac{a_i y_j}{n} \ge 0' title='(-1)^i \frac{a_i y_j}{n} \ge 0' class='latex-inline' />;</li>
<li>we have <img src='http://math.fontein.de/wp-content/latex/3a1/3a1828ef4c728d4cb5e74738d935553e-T-000000-0.png' alt='\abs{x_i} \le \frac{\abs{m}}{\abs{a_{i-1}}}' title='\abs{x_i} \le \frac{\abs{m}}{\abs{a_{i-1}}}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/2da/2da802a8d9700b14f1c0dd61e5bc65d1-T-000000-0.png' alt='d(y_i) \le \frac{\abs{n}}{\abs{a_{i-1}}}' title='d(y_i) \le \frac{\abs{n}}{\abs{a_{i-1}}}' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/279/279fc78f1aa581ff531fe715219f3e3b-T-000000-0.png' alt='i = -1, 0, \dots, N' title='i = -1, 0, \dots, N' class='latex-inline' />;</li>
<li>for <img src='http://math.fontein.de/wp-content/latex/64a/64ad14522995b865c6e2e82a869eb51c-T-000000-0.png' alt='i = 1, \dots, N' title='i = 1, \dots, N' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/0a0/0a02ba999d7d02b536176b33e175431c-T-000000-0.png' alt='\abs{a_i} &lt; \frac{1}{2} \abs{a_{i-2}}' title='\abs{a_i} &lt; \frac{1}{2} \abs{a_{i-2}}' class='latex-inline' />; therefore, <img src='http://math.fontein.de/wp-content/latex/4d7/4d725620f4e2f29fe0df2f55373bad43-T-000000-0.png' alt='\abs{a_{2i}} \le 2^{-i} \abs{n}' title='\abs{a_{2i}} \le 2^{-i} \abs{n}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/266/266db7211b835433c14c75bb22738bb8-T-000000-0.png' alt='\abs{a_{2i+1}} \le 2^{-i} \abs{m}' title='\abs{a_{2i+1}} \le 2^{-i} \abs{m}' class='latex-inline' />.</li>
</ol>
</div></blockquote>

<blockquote class='proof'><div class='prooftitle'>Proof.</div> <div class='proofmain'>
<ol>
<li>By construction, <img src='http://math.fontein.de/wp-content/latex/cf2/cf2d1e28d1672afca9eef97310b55d2e-T-000000-0.png' alt='a_{i-2} = q_i a_{i-1} + a_i' title='a_{i-2} = q_i a_{i-1} + a_i' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/088/0885aa2688e4f21bb6898983d26bbeda-T-000000-0.png' alt='\abs{a_i} &lt; \abs{a_{i-1}}' title='\abs{a_i} &lt; \abs{a_{i-1}}' class='latex-inline' />. As we required <img src='http://math.fontein.de/wp-content/latex/ad1/ad1e3ba41ed7f87cffea0040acff2c62-T-000000-0.png' alt='d(a_{i-2} - a_i) \le d(a_{i-2})' title='d(a_{i-2} - a_i) \le d(a_{i-2})' class='latex-inline' />, we must have that <img src='http://math.fontein.de/wp-content/latex/2ae/2aecb1dc57e87620a373d19b0a889efb-T-000000-0.png' alt='a_i' title='a_i' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/8bb/8bb1501d5a1a80b7e989cdf50cda0f58-T-000000-0.png' alt='a_{i-2}' title='a_{i-2}' class='latex-inline' /> have the same sign if <img src='http://math.fontein.de/wp-content/latex/cdf/cdfd916379f97d77fd6b716e9887d5b3-T-000000-0.png' alt='a_i \neq 0' title='a_i \neq 0' class='latex-inline' />.</li>
<li>Note that by our choice, <img src='http://math.fontein.de/wp-content/latex/dd4/dd4a217afeca7d5263cf98091dd026e8-T-000000-0.png' alt='\abs{a_i} \le \abs{a_{i-2}}' title='\abs{a_i} \le \abs{a_{i-2}}' class='latex-inline' /> and both are either <img src='http://math.fontein.de/wp-content/latex/7da/7da648be31d9c4f39b41dbce3fc3dd32-T-000000-0.png' alt='\le 0' title='\le 0' class='latex-inline' /> or <img src='http://math.fontein.de/wp-content/latex/13c/13c110c72a21001815d1b9ac6d26c69a-T-000000-0.png' alt='\ge 0' title='\ge 0' class='latex-inline' />, i.e. <img src='http://math.fontein.de/wp-content/latex/1dc/1dc43e73743db296e4acf721d0cada9a-T-000000-0.png' alt='a_i - a_{i-2}' title='a_i - a_{i-2}' class='latex-inline' /> has the same sign as <img src='http://math.fontein.de/wp-content/latex/2ae/2aecb1dc57e87620a373d19b0a889efb-T-000000-0.png' alt='a_i' title='a_i' class='latex-inline' />. As <img src='http://math.fontein.de/wp-content/latex/ab7/ab740462550bfe65e56946a5795b271e-T-000000-0.png' alt='a_i - a_{i-2} = q_i a_{i-1}' title='a_i - a_{i-2} = q_i a_{i-1}' class='latex-inline' />, the claim follows.</li>
<li>If <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/6f8/6f8f57715090da2632453988d9a1501b-T-000000-0.png' alt='m' title='m' class='latex-inline' /> have the same sign, <img src='http://math.fontein.de/wp-content/latex/c83/c83e19ce2900f0b38da707e1a8700dcb-T-000000-0.png' alt='q_i \ge 0' title='q_i \ge 0' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/865/865c0c0b4ab0e063e5caa3387c1a8741-T-000000-0.png' alt='i' title='i' class='latex-inline' />. We show the claim by strong induction on <img src='http://math.fontein.de/wp-content/latex/865/865c0c0b4ab0e063e5caa3387c1a8741-T-000000-0.png' alt='i' title='i' class='latex-inline' />. For <img src='http://math.fontein.de/wp-content/latex/885/8850d24981f01fffa25a21ac29b80046-T-000000-0.png' alt='i = -2' title='i = -2' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/b3c/b3c1942da3600d95a69c7ed331b90e83-T-000000-0.png' alt='i = -1' title='i = -1' class='latex-inline' />, the claim follows from the definition. For <img src='http://math.fontein.de/wp-content/latex/5af/5af0c3d945bcd233af98060298f70a8f-T-000000-0.png' alt='i \ge 0' title='i \ge 0' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/2a8/2a8dbec848767b23603764edf8573d67-T-000000-0.png' alt='(-1)^i x_i ={} &amp; (-1)^i x_{i-2} - (-1)^i q_i x_{i-1} \\ {}={} &amp; (-1)^{i-2} x_{i-2} + q_i (-1)^{i-1} x_{i-1};' title='(-1)^i x_i ={} &amp; (-1)^i x_{i-2} - (-1)^i q_i x_{i-1} \\ {}={} &amp; (-1)^{i-2} x_{i-2} + q_i (-1)^{i-1} x_{i-1};' class='latex-displaystyle' /> as all terms on the right hand side are <img src='http://math.fontein.de/wp-content/latex/13c/13c110c72a21001815d1b9ac6d26c69a-T-000000-0.png' alt='\ge 0' title='\ge 0' class='latex-inline' />, we get <img src='http://math.fontein.de/wp-content/latex/4a3/4a3e0aac6790bc79f73c3a16bffa2eb4-T-000000-0.png' alt='(-1)^i x_i \ge 0' title='(-1)^i x_i \ge 0' class='latex-inline' />. The same argument shows that <img src='http://math.fontein.de/wp-content/latex/66b/66b71bb3bd0d7d7525c74bd82e4f8406-T-000000-0.png' alt='(-1)^{i+1} y_i \ge 0' title='(-1)^{i+1} y_i \ge 0' class='latex-inline' />.
<br />
If <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/6f8/6f8f57715090da2632453988d9a1501b-T-000000-0.png' alt='m' title='m' class='latex-inline' /> have different signs, <img src='http://math.fontein.de/wp-content/latex/233/233b7ecc856e9af964c16c8f984bcaab-T-000000-0.png' alt='q_i \le 0' title='q_i \le 0' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/865/865c0c0b4ab0e063e5caa3387c1a8741-T-000000-0.png' alt='i' title='i' class='latex-inline' />. Again, for <img src='http://math.fontein.de/wp-content/latex/e0f/e0fd384987894b4c582ac7ad68095b17-T-000000-0.png' alt='i = -2, -1' title='i = -2, -1' class='latex-inline' />, the claim is clear. If <img src='http://math.fontein.de/wp-content/latex/5af/5af0c3d945bcd233af98060298f70a8f-T-000000-0.png' alt='i \ge 0' title='i \ge 0' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/3bd/3bda45a9f1200ee848351282e943dbbf-T-000000-0.png' alt='x_i = x_{i-2} - q_i x_{i-1} = x_{i-2} + (-q_i) x_{i-1} \ge 0' title='x_i = x_{i-2} - q_i x_{i-1} = x_{i-2} + (-q_i) x_{i-1} \ge 0' class='latex-inline' /> by strong induction, and similarly <img src='http://math.fontein.de/wp-content/latex/930/9300ece0b31ace946e7b78e389a8cd19-T-000000-0.png' alt='y_i \ge 0' title='y_i \ge 0' class='latex-inline' />.</li>
<li>For <img src='http://math.fontein.de/wp-content/latex/fc5/fc5d9d43c5d58df1cf63bcf7e5f83321-T-000000-0.png' alt='i = 0' title='i = 0' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/b81/b811050a3bbfd6ac940b9a6fa3fc7850-T-000000-0.png' alt='x_{-1} = 0' title='x_{-1} = 0' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/970/970fbc6c3c2ed45aa21ceb3b1161e93b-T-000000-0.png' alt='x_0 = 1' title='x_0 = 1' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/7f9/7f946f8acb8ca13389f51f9fa10b8cab-T-000000-0.png' alt='\abs{x_0} &gt; 0 = \abs{q_0 x_{-1}} = \abs{x_{-1}}' title='\abs{x_0} &gt; 0 = \abs{q_0 x_{-1}} = \abs{x_{-1}}' class='latex-inline' />. For <img src='http://math.fontein.de/wp-content/latex/590/5905475576a21ecdafdaab879ff45aff-T-000000-0.png' alt='i = 1' title='i = 1' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/e0e/e0ec4055a7651d3cc1bbf1ddc61bd945-T-000000-0.png' alt='y_0 = -q_0' title='y_0 = -q_0' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/e81/e813cd57fcfad744c8e90b98e65b2669-T-000000-0.png' alt='y_1 = 1 + q_0 q_1' title='y_1 = 1 + q_0 q_1' class='latex-inline' />; as <img src='http://math.fontein.de/wp-content/latex/0e2/0e220dc9eb4f84e63c8872eecd9c7c69-T-000000-0.png' alt='q_0 q_1 \ge 0' title='q_0 q_1 \ge 0' class='latex-inline' />, and we only have <img src='http://math.fontein.de/wp-content/latex/5c4/5c4ffecc4916fdab862d67de37d1b252-T-000000-0.png' alt='q_0 q_1 = 0' title='q_0 q_1 = 0' class='latex-inline' /> if <img src='http://math.fontein.de/wp-content/latex/4d9/4d988f98197b8aeb6782aa74b7d146e5-T-000000-0.png' alt='q_0 = 0' title='q_0 = 0' class='latex-inline' /> or <img src='http://math.fontein.de/wp-content/latex/ea1/ea15e6b8b6bc7a151e69645fe1c1095e-T-000000-0.png' alt='N = 0' title='N = 0' class='latex-inline' />, we get <img src='http://math.fontein.de/wp-content/latex/43d/43d39c540d157437f1afb923855efed9-T-000000-0.png' alt='\abs{y_1} &gt; \abs{y_0}' title='\abs{y_1} &gt; \abs{y_0}' class='latex-inline' />.
<br />
For <img src='http://math.fontein.de/wp-content/latex/5af/5af0c3d945bcd233af98060298f70a8f-T-000000-0.png' alt='i \ge 0' title='i \ge 0' class='latex-inline' /> resp. <img src='http://math.fontein.de/wp-content/latex/a87/a87bcdff7b58ce11437790f893d857de-T-000000-0.png' alt='i \ge 1' title='i \ge 1' class='latex-inline' />, we proceed by induction. We have <img src='http://math.fontein.de/wp-content/latex/44b/44bc883719d54e3f0d50fb57a3a18ba5-T-000000-0.png' alt='x_{i+1} = x_{i-1} - q_{i+1} x_i' title='x_{i+1} = x_{i-1} - q_{i+1} x_i' class='latex-inline' />, and <img src='http://math.fontein.de/wp-content/latex/b03/b03afe8af4af0fa4739135c4258b6cb4-T-000000-0.png' alt='x_{i-1}' title='x_{i-1}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/d8a/d8ae8bebf09ba4532af5a721b43268e3-T-000000-0.png' alt='q_{i+1} x_i' title='q_{i+1} x_i' class='latex-inline' /> have different signs; hence, <img src='http://math.fontein.de/wp-content/latex/19d/19d4ace31c000ab4293c5758be96761d-T-000000-0.png' alt='\abs{x_{i+2}} = \abs{q_i x_{i-1}} + \abs{x_{i-2}} \ge \abs{q_{i+1} x_i} \ge \abs{x_i}' title='\abs{x_{i+2}} = \abs{q_i x_{i-1}} + \abs{x_{i-2}} \ge \abs{q_{i+1} x_i} \ge \abs{x_i}' class='latex-inline' /> as <img src='http://math.fontein.de/wp-content/latex/a1d/a1d5e415b56626527db79ca366a25fd3-T-000000-0.png' alt='q_{i+1} \neq 0' title='q_{i+1} \neq 0' class='latex-inline' />. Similarly, one gets the result for <img src='http://math.fontein.de/wp-content/latex/415/415290769594460e2e485922904f345d-T-000000-0.png' alt='y' title='y' class='latex-inline' />.
<br />
Note that <img src='http://math.fontein.de/wp-content/latex/474/474cba8572c447aad6e7b2113f48b95e-T-000000-0.png' alt='\abs{x_{i+2}} = \abs{q_{i+1} x_i}' title='\abs{x_{i+2}} = \abs{q_{i+1} x_i}' class='latex-inline' /> if, and only if, <img src='http://math.fontein.de/wp-content/latex/870/8700ba94945a74be6d322bdf083335ec-T-000000-0.png' alt='x_{i-1} = 0' title='x_{i-1} = 0' class='latex-inline' />; this only happens for <img src='http://math.fontein.de/wp-content/latex/fc5/fc5d9d43c5d58df1cf63bcf7e5f83321-T-000000-0.png' alt='i = 0' title='i = 0' class='latex-inline' />, as for <img src='http://math.fontein.de/wp-content/latex/534/53471bc23fccbe58270a89cb2139e07f-T-000000-0.png' alt='i &gt; 0' title='i &gt; 0' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/fbd/fbda2603bdf8620adce7ece44fdec42c-T-000000-0.png' alt='\abs{x_{i-1}} \ge \abs{x_0} = 1' title='\abs{x_{i-1}} \ge \abs{x_0} = 1' class='latex-inline' />.</li>
<li>If <img src='http://math.fontein.de/wp-content/latex/33c/33c0d83a166e306643dbcedd0322ec2d-T-000000-0.png' alt='n m &gt; 0' title='n m &gt; 0' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/fb2/fb2a1d658b8a78bebea19fca14f2212d-T-000000-0.png' alt='\frac{a_i}{m} \ge 0' title='\frac{a_i}{m} \ge 0' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/34c/34c659018df0b2067b938264375e3d21-T-000000-0.png' alt='(-1)^j x_j \ge 0' title='(-1)^j x_j \ge 0' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/296/296031a1b5b6d76e85266a9d3e89d2b5-T-000000-0.png' alt='(-1)^j \frac{a_i x_j}{m} \ge 0' title='(-1)^j \frac{a_i x_j}{m} \ge 0' class='latex-inline' />.
<br />
If <img src='http://math.fontein.de/wp-content/latex/7b1/7b12ad879ee71e0b0901973551020ad3-T-000000-0.png' alt='n m &lt; 0' title='n m &lt; 0' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/fc4/fc423e946f4f774af76bedcd6d09e04a-T-000000-0.png' alt='x_j \ge 0' title='x_j \ge 0' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/363/363b122c528f54df4a0446b6bab05515-T-000000-0.png' alt='j' title='j' class='latex-inline' />. First consider the case that <img src='http://math.fontein.de/wp-content/latex/865/865c0c0b4ab0e063e5caa3387c1a8741-T-000000-0.png' alt='i' title='i' class='latex-inline' /> is odd. Then <img src='http://math.fontein.de/wp-content/latex/2ae/2aecb1dc57e87620a373d19b0a889efb-T-000000-0.png' alt='a_i' title='a_i' class='latex-inline' /> has the same sign as <img src='http://math.fontein.de/wp-content/latex/d6c/d6cb6f238908c3acc5a146336d92f7b7-T-000000-0.png' alt='a_{-1} = m' title='a_{-1} = m' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/fb2/fb2a1d658b8a78bebea19fca14f2212d-T-000000-0.png' alt='\frac{a_i}{m} \ge 0' title='\frac{a_i}{m} \ge 0' class='latex-inline' />. Hence, <img src='http://math.fontein.de/wp-content/latex/296/296031a1b5b6d76e85266a9d3e89d2b5-T-000000-0.png' alt='(-1)^j \frac{a_i x_j}{m} \ge 0' title='(-1)^j \frac{a_i x_j}{m} \ge 0' class='latex-inline' />. Next, consider the case that <img src='http://math.fontein.de/wp-content/latex/865/865c0c0b4ab0e063e5caa3387c1a8741-T-000000-0.png' alt='i' title='i' class='latex-inline' /> is even. Then <img src='http://math.fontein.de/wp-content/latex/2ae/2aecb1dc57e87620a373d19b0a889efb-T-000000-0.png' alt='a_i' title='a_i' class='latex-inline' /> has the same sign as <img src='http://math.fontein.de/wp-content/latex/fda/fda177bcb194044a27c1bdc31ba7d307-T-000000-0.png' alt='a_{-2} = n' title='a_{-2} = n' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/94b/94be9cc23a904624010f48a06ea250d4-T-000000-0.png' alt='\frac{a_i}{m} \le 0' title='\frac{a_i}{m} \le 0' class='latex-inline' />. Hence, <img src='http://math.fontein.de/wp-content/latex/296/296031a1b5b6d76e85266a9d3e89d2b5-T-000000-0.png' alt='(-1)^j \frac{a_i x_j}{m} \ge 0' title='(-1)^j \frac{a_i x_j}{m} \ge 0' class='latex-inline' />.
<br />
If <img src='http://math.fontein.de/wp-content/latex/33c/33c0d83a166e306643dbcedd0322ec2d-T-000000-0.png' alt='n m &gt; 0' title='n m &gt; 0' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/f33/f33e96e017bbea30e603c0476159063f-T-000000-0.png' alt='\frac{a_i}{n} \ge 0' title='\frac{a_i}{n} \ge 0' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/05c/05cde8391cb51d3445cd8194f8b04549-T-000000-0.png' alt='(-1)^j y_j \le 0' title='(-1)^j y_j \le 0' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/487/4878343e9b453f771534cc3e4dea36e9-T-000000-0.png' alt='(-1)^i \frac{a_i y_j}{n} \ge 0' title='(-1)^i \frac{a_i y_j}{n} \ge 0' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/a4b/a4ba97ce3dd25451f66b3cec6f0802fb-T-000000-0.png' alt='i = -1, \dots, N' title='i = -1, \dots, N' class='latex-inline' />.
<br />
If <img src='http://math.fontein.de/wp-content/latex/7b1/7b12ad879ee71e0b0901973551020ad3-T-000000-0.png' alt='n m &lt; 0' title='n m &lt; 0' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/eaf/eaf8d006305be835e77e0833a68fb930-T-000000-0.png' alt='y_j \ge 0' title='y_j \ge 0' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/363/363b122c528f54df4a0446b6bab05515-T-000000-0.png' alt='j' title='j' class='latex-inline' />. First consider the case that <img src='http://math.fontein.de/wp-content/latex/865/865c0c0b4ab0e063e5caa3387c1a8741-T-000000-0.png' alt='i' title='i' class='latex-inline' /> is odd. Then <img src='http://math.fontein.de/wp-content/latex/2ae/2aecb1dc57e87620a373d19b0a889efb-T-000000-0.png' alt='a_i' title='a_i' class='latex-inline' /> has the same sign as <img src='http://math.fontein.de/wp-content/latex/d6c/d6cb6f238908c3acc5a146336d92f7b7-T-000000-0.png' alt='a_{-1} = m' title='a_{-1} = m' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/a72/a7238dba8a8afd99c13263fc6f1820be-T-000000-0.png' alt='\frac{a_i}{n} \le 0' title='\frac{a_i}{n} \le 0' class='latex-inline' />. Hence, <img src='http://math.fontein.de/wp-content/latex/487/4878343e9b453f771534cc3e4dea36e9-T-000000-0.png' alt='(-1)^i \frac{a_i y_j}{n} \ge 0' title='(-1)^i \frac{a_i y_j}{n} \ge 0' class='latex-inline' />. Next, consider the case that <img src='http://math.fontein.de/wp-content/latex/865/865c0c0b4ab0e063e5caa3387c1a8741-T-000000-0.png' alt='i' title='i' class='latex-inline' /> is even. Then <img src='http://math.fontein.de/wp-content/latex/2ae/2aecb1dc57e87620a373d19b0a889efb-T-000000-0.png' alt='a_i' title='a_i' class='latex-inline' /> has the same sign as <img src='http://math.fontein.de/wp-content/latex/fda/fda177bcb194044a27c1bdc31ba7d307-T-000000-0.png' alt='a_{-2} = n' title='a_{-2} = n' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/f33/f33e96e017bbea30e603c0476159063f-T-000000-0.png' alt='\frac{a_i}{n} \ge 0' title='\frac{a_i}{n} \ge 0' class='latex-inline' />. Hence, <img src='http://math.fontein.de/wp-content/latex/487/4878343e9b453f771534cc3e4dea36e9-T-000000-0.png' alt='(-1)^i \frac{a_i y_j}{n} \ge 0' title='(-1)^i \frac{a_i y_j}{n} \ge 0' class='latex-inline' />.</li>
<li>We show the claim by induction. For <img src='http://math.fontein.de/wp-content/latex/b3c/b3c1942da3600d95a69c7ed331b90e83-T-000000-0.png' alt='i = -1' title='i = -1' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/c87/c87bca7652ea7048081677a2b435b6a6-T-000000-0.png' alt='\displaystyle  \abs{x_{-1}} = 0 &lt; \frac{\abs{m}}{\abs{n}} = \frac{\abs{m}}{\abs{a_{-2}}} \text{ and } \abs{y_{-1}} = 1 \le 1 = \frac{\abs{n}}{\abs{a_{-2}}}. ' title='\displaystyle  \abs{x_{-1}} = 0 &lt; \frac{\abs{m}}{\abs{n}} = \frac{\abs{m}}{\abs{a_{-2}}} \text{ and } \abs{y_{-1}} = 1 \le 1 = \frac{\abs{n}}{\abs{a_{-2}}}. ' class='latex-displaystyle' /> For <img src='http://math.fontein.de/wp-content/latex/5af/5af0c3d945bcd233af98060298f70a8f-T-000000-0.png' alt='i \ge 0' title='i \ge 0' class='latex-inline' />, we have by the induction hypothesis and by <img src='http://math.fontein.de/wp-content/latex/145/145e571efe0d1e1472c0267d2e0a1180-T-000000-0.png' alt='a_i &lt; a_{i-2}' title='a_i &lt; a_{i-2}' class='latex-inline' /> <img src='http://math.fontein.de/wp-content/latex/375/37526add86ec7e47c80249978c4cdf97-T-000000-0.png' alt='\abs{\frac{a_i x_{i-1}}{m}} &lt;{} &amp; \abs{\frac{a_{i-2} x_{i-1}}{m}} \le 1 \\ \text{and} \quad \abs{\frac{a_i y_{i-1}}{m}} &lt;{} &amp; \abs{\frac{a_{i-2} y_{i-1}}{m}} \le 1.' title='\abs{\frac{a_i x_{i-1}}{m}} &lt;{} &amp; \abs{\frac{a_{i-2} x_{i-1}}{m}} \le 1 \\ \text{and} \quad \abs{\frac{a_i y_{i-1}}{m}} &lt;{} &amp; \abs{\frac{a_{i-2} y_{i-1}}{m}} \le 1.' class='latex-displaystyle' />
<br />
Now <img src='http://math.fontein.de/wp-content/latex/bd1/bd19e61ef7305d0532e22a801651d93a-T-000000-0.png' alt='(-1)^{i+1} \frac{a_i x_{i-1}}{m} \ge 0' title='(-1)^{i+1} \frac{a_i x_{i-1}}{m} \ge 0' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/cc3/cc33bcdca6309c2f5384d61021223bcf-T-000000-0.png' alt='\frac{a_i x_{i-1}}{m}' title='\frac{a_i x_{i-1}}{m}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/750/750674e79c6156bad7247ac9957bba7e-T-000000-0.png' alt='(-1)^{i+1}' title='(-1)^{i+1}' class='latex-inline' /> have the same sign. As <img src='http://math.fontein.de/wp-content/latex/587/587fb08983aa0a37db00fad60be056ab-T-000000-0.png' alt='(-1)^{i+1} \frac{a_i x_{i-1}}{m} \le 1' title='(-1)^{i+1} \frac{a_i x_{i-1}}{m} \le 1' class='latex-inline' />, we get <img src='http://math.fontein.de/wp-content/latex/8d6/8d657dfff3e816639c295fdb6c6a30bf-T-000000-0.png' alt='\displaystyle  \abs{\frac{a_i x_{i-1}}{m} + (-1)^i} = \abs{\frac{a_i x_{i-1}}{m} - (-1)^{i+1}} \le 1. ' title='\displaystyle  \abs{\frac{a_i x_{i-1}}{m} + (-1)^i} = \abs{\frac{a_i x_{i-1}}{m} - (-1)^{i+1}} \le 1. ' class='latex-displaystyle' /> Using <img src='http://math.fontein.de/wp-content/latex/9d5/9d5b246c89ea5506c8182af893ee55e7-T-000000-0.png' alt='a_i x_{i-1} + (-1)^i m = a_{i-1} x_i' title='a_i x_{i-1} + (-1)^i m = a_{i-1} x_i' class='latex-inline' />, we obtain <img src='http://math.fontein.de/wp-content/latex/94c/94c8c5ba8b6aa14c94d07b00f95e3d7d-T-000000-0.png' alt='\abs{a_{i-1} x_i} \le \abs{m}' title='\abs{a_{i-1} x_i} \le \abs{m}' class='latex-inline' />, which gives <img src='http://math.fontein.de/wp-content/latex/3a1/3a1828ef4c728d4cb5e74738d935553e-T-000000-0.png' alt='\abs{x_i} \le \frac{\abs{m}}{\abs{a_{i-1}}}' title='\abs{x_i} \le \frac{\abs{m}}{\abs{a_{i-1}}}' class='latex-inline' />.
<br />
Next, <img src='http://math.fontein.de/wp-content/latex/25a/25a5f4fff827d438d7722f12a9944452-T-000000-0.png' alt='(-1)^i \frac{a_i y_{i-1}}{n} \ge 0' title='(-1)^i \frac{a_i y_{i-1}}{n} \ge 0' class='latex-inline' />. Hence, <img src='http://math.fontein.de/wp-content/latex/b5d/b5d5cbeed67cd35b7f7f3af272bbe5d9-T-000000-0.png' alt='(-1)^i' title='(-1)^i' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/d0a/d0a5246e0c241a1a8f1c7091627033ee-T-000000-0.png' alt='\frac{a_i y_{i-1}}{n}' title='\frac{a_i y_{i-1}}{n}' class='latex-inline' /> have the same sign. As <img src='http://math.fontein.de/wp-content/latex/bd3/bd388938e0d8f8c1f033da81b4cc07d6-T-000000-0.png' alt='(-1)^i \frac{a_i y_{i-1}}{n} \le 1' title='(-1)^i \frac{a_i y_{i-1}}{n} \le 1' class='latex-inline' />, we get <img src='http://math.fontein.de/wp-content/latex/49d/49d0357c64985a2afeb74ef76cea6868-T-000000-0.png' alt='\displaystyle  \abs{\frac{a_i y_{i-1}}{n} + (-1)^{i-1}} = \abs{\frac{a_i y_{i-1}}{n} - (-1)^i} \le 1. ' title='\displaystyle  \abs{\frac{a_i y_{i-1}}{n} + (-1)^{i-1}} = \abs{\frac{a_i y_{i-1}}{n} - (-1)^i} \le 1. ' class='latex-displaystyle' />
Using <img src='http://math.fontein.de/wp-content/latex/0ea/0eaa5fc62ee6c4a99bd988903e35587b-T-000000-0.png' alt='a_i y_{i-1} + (-1)^{i-1} n = a_{i-1} y_i' title='a_i y_{i-1} + (-1)^{i-1} n = a_{i-1} y_i' class='latex-inline' />, we obtain <img src='http://math.fontein.de/wp-content/latex/eda/eda28cb59fc88f52e04ca7ae1b49f09a-T-000000-0.png' alt='\abs{a_{i01} y_i} \le \abs{n}' title='\abs{a_{i01} y_i} \le \abs{n}' class='latex-inline' />, which gives the claim.</li>
<li>Note that for <img src='http://math.fontein.de/wp-content/latex/a87/a87bcdff7b58ce11437790f893d857de-T-000000-0.png' alt='i \ge 1' title='i \ge 1' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/f95/f95e23066e71a67d219364d1858e21a7-T-000000-0.png' alt='\abs{a_{i-1}} &gt; \abs{a_i}' title='\abs{a_{i-1}} &gt; \abs{a_i}' class='latex-inline' />. Hence, in case <img src='http://math.fontein.de/wp-content/latex/53f/53fa14d3858a0fca05791b2fd1948e06-T-000000-0.png' alt='\abs{a_{i-1}} \le \frac{1}{2} \abs{a_{i-2}}' title='\abs{a_{i-1}} \le \frac{1}{2} \abs{a_{i-2}}' class='latex-inline' />, we are done. Therefore, assume that <img src='http://math.fontein.de/wp-content/latex/2c9/2c9f8a9b46eeb98524a36ed3a9bee1e3-T-000000-0.png' alt='\abs{a_{i-1}} &gt; \frac{1}{2} \abs{a_{i-2}}' title='\abs{a_{i-1}} &gt; \frac{1}{2} \abs{a_{i-2}}' class='latex-inline' />. Now we required <img src='http://math.fontein.de/wp-content/latex/740/740e79d5cb32b5fbb713548bb848ff50-T-000000-0.png' alt='\abs{q_i a_{i-1}} \le \abs{a_{i-2}}' title='\abs{q_i a_{i-1}} \le \abs{a_{i-2}}' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/134/1348a9bd3d0b7e5ffa384ced807f721d-T-000000-0.png' alt='\frac{1}{2} \abs{q_i a_{i-2}} &lt; \abs{a_{i-2}}' title='\frac{1}{2} \abs{q_i a_{i-2}} &lt; \abs{a_{i-2}}' class='latex-inline' />; but this implies <img src='http://math.fontein.de/wp-content/latex/653/653a6e72f3062c7365f842772821a58a-T-000000-0.png' alt='\abs{q_i} &lt; 2' title='\abs{q_i} &lt; 2' class='latex-inline' />, i.e. <img src='http://math.fontein.de/wp-content/latex/e0e/e0ef1e73ff22bc8ad7dbdd6ce72a8160-T-000000-0.png' alt='\abs{q_i} \le 1' title='\abs{q_i} \le 1' class='latex-inline' />. As <img src='http://math.fontein.de/wp-content/latex/6c0/6c077499a0220cb2b14a363e8972c472-T-000000-0.png' alt='q_i \neq 0' title='q_i \neq 0' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/9a8/9a831a3f14cffdd15eb08e30ad130918-T-000000-0.png' alt='q_i = \pm 1' title='q_i = \pm 1' class='latex-inline' />.
<br />
Now <img src='http://math.fontein.de/wp-content/latex/54e/54eb9c7bd98a0d08fa14908ad24fe3d6-T-000000-0.png' alt='a_i = a_{i-2} - q_i a_{i-1}' title='a_i = a_{i-2} - q_i a_{i-1}' class='latex-inline' /> and both <img src='http://math.fontein.de/wp-content/latex/2ae/2aecb1dc57e87620a373d19b0a889efb-T-000000-0.png' alt='a_i' title='a_i' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/8bb/8bb1501d5a1a80b7e989cdf50cda0f58-T-000000-0.png' alt='a_{i-2}' title='a_{i-2}' class='latex-inline' /> have the same sign, whence <img src='http://math.fontein.de/wp-content/latex/a6a/a6ae41631a318122ccac02ed4a03c60c-T-000000-0.png' alt='\abs{a_i} \le \abs{a_{i-2}} - \abs{a_{i-1}} &lt; \frac{1}{2} \abs{a_{i-2}}' title='\abs{a_i} \le \abs{a_{i-2}} - \abs{a_{i-1}} &lt; \frac{1}{2} \abs{a_{i-2}}' class='latex-inline' />.</li>
</ol>
</div><div class='proofqed'>□</div></blockquote>

<blockquote class='theorem'><div class='theoremtitle'>Proposition.</div> <div class='theoremmain'>
Assume that <img src='http://math.fontein.de/wp-content/latex/d4f/d4fa1800a5d0d8925e3215e9b4ec4912-T-000000-0.png' alt='n, m \neq 0' title='n, m \neq 0' class='latex-inline' />, that <img src='http://math.fontein.de/wp-content/latex/753/753f7a82855ed09e8cd59fc126d06832-T-000000-0.png' alt='R = K[x]' title='R = K[x]' class='latex-inline' /> and that <img src='http://math.fontein.de/wp-content/latex/704/7049d2b2ab9994bcafc145016f2adfbb-T-000000-0.png' alt='d(f) = q^{\deg f}' title='d(f) = q^{\deg f}' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/0cf/0cf307e26b6bb1a7b875aa20cdde8cd1-T-000000-0.png' alt='f \in R' title='f \in R' class='latex-inline' />. Then:
<ol>
<li>we have <img src='http://math.fontein.de/wp-content/latex/6f6/6f6a96b017413a3d951d212b3b7be5ed-T-000000-0.png' alt='\deg a_{i-2} = \deg q_i + \deg a_{i-1}' title='\deg a_{i-2} = \deg q_i + \deg a_{i-1}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/c6f/c6fceeecc207be5eac611a974a92bf89-T-000000-0.png' alt='\deg q_i &gt; 0' title='\deg q_i &gt; 0' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/534/53471bc23fccbe58270a89cb2139e07f-T-000000-0.png' alt='i &gt; 0' title='i &gt; 0' class='latex-inline' />;</li>
<li>we have <img src='http://math.fontein.de/wp-content/latex/78e/78ed440a88bb398562354e280eef07aa-T-000000-0.png' alt='\deg x_0 &gt; \deg q_0 + \deg x_{-1} \ge \deg x_{-1}' title='\deg x_0 &gt; \deg q_0 + \deg x_{-1} \ge \deg x_{-1}' class='latex-inline' />, and <img src='http://math.fontein.de/wp-content/latex/dd3/dd3abab7460c8b99317b0b2308e0a49b-T-000000-0.png' alt='\deg x_i ={} &amp; \deg q_i + \deg x_{i-1} &gt; \deg x_{i-1} \\ \text{and} \quad \deg y_i ={} &amp; \deg q_i + \deg y_{i-1} \ge \deg y_{i-1}' title='\deg x_i ={} &amp; \deg q_i + \deg x_{i-1} &gt; \deg x_{i-1} \\ \text{and} \quad \deg y_i ={} &amp; \deg q_i + \deg y_{i-1} \ge \deg y_{i-1}' class='latex-displaystyle' /> for <img src='http://math.fontein.de/wp-content/latex/64a/64ad14522995b865c6e2e82a869eb51c-T-000000-0.png' alt='i = 1, \dots, N' title='i = 1, \dots, N' class='latex-inline' />; hence, we have <img src='http://math.fontein.de/wp-content/latex/dbb/dbb5edf06461116ff56da14af0a699ce-T-000000-0.png' alt='\deg x_i &gt; \deg x_{i-1}' title='\deg x_i &gt; \deg x_{i-1}' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/5af/5af0c3d945bcd233af98060298f70a8f-T-000000-0.png' alt='i \ge 0' title='i \ge 0' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/d81/d81f037bdff063834b7978776d56b3f0-T-000000-0.png' alt='\deg y_i &gt; \deg y_{i-1}' title='\deg y_i &gt; \deg y_{i-1}' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/a87/a87bcdff7b58ce11437790f893d857de-T-000000-0.png' alt='i \ge 1' title='i \ge 1' class='latex-inline' />;</li>
<li>we have <img src='http://math.fontein.de/wp-content/latex/fc1/fc1f4a87ffb8f4f5261eabfaee496f33-T-000000-0.png' alt='\deg x_i \le \deg m - \deg a_{i-1}' title='\deg x_i \le \deg m - \deg a_{i-1}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/1cb/1cb9699a56fb554a78f8e6c6fea83e35-T-000000-0.png' alt='\deg y_i \le \deg n - \deg a_{i-1}' title='\deg y_i \le \deg n - \deg a_{i-1}' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/279/279fc78f1aa581ff531fe715219f3e3b-T-000000-0.png' alt='i = -1, 0, \dots, N' title='i = -1, 0, \dots, N' class='latex-inline' />.</li>
</ol>
</div></blockquote>

<blockquote class='proof'><div class='prooftitle'>Proof.</div> <div class='proofmain'>
<ol>
<li>For <img src='http://math.fontein.de/wp-content/latex/534/53471bc23fccbe58270a89cb2139e07f-T-000000-0.png' alt='i &gt; 0' title='i &gt; 0' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/d4a/d4a0e87976456c9ef46f164a05d847eb-T-000000-0.png' alt='\deg a_i &lt; \deg a_{i-1} &lt; \deg a_{i-2}' title='\deg a_i &lt; \deg a_{i-1} &lt; \deg a_{i-2}' class='latex-inline' />; as <img src='http://math.fontein.de/wp-content/latex/54e/54eb9c7bd98a0d08fa14908ad24fe3d6-T-000000-0.png' alt='a_i = a_{i-2} - q_i a_{i-1}' title='a_i = a_{i-2} - q_i a_{i-1}' class='latex-inline' />, we must have <img src='http://math.fontein.de/wp-content/latex/6f6/6f6a96b017413a3d951d212b3b7be5ed-T-000000-0.png' alt='\deg a_{i-2} = \deg q_i + \deg a_{i-1}' title='\deg a_{i-2} = \deg q_i + \deg a_{i-1}' class='latex-inline' />; this shows <img src='http://math.fontein.de/wp-content/latex/c6f/c6fceeecc207be5eac611a974a92bf89-T-000000-0.png' alt='\deg q_i &gt; 0' title='\deg q_i &gt; 0' class='latex-inline' />.</li>
<li>For <img src='http://math.fontein.de/wp-content/latex/fc5/fc5d9d43c5d58df1cf63bcf7e5f83321-T-000000-0.png' alt='i = 0' title='i = 0' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/b81/b811050a3bbfd6ac940b9a6fa3fc7850-T-000000-0.png' alt='x_{-1} = 0' title='x_{-1} = 0' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/970/970fbc6c3c2ed45aa21ceb3b1161e93b-T-000000-0.png' alt='x_0 = 1' title='x_0 = 1' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/f5a/f5aa8736443773ccc20a387f43b61c53-T-000000-0.png' alt='\displaystyle  \deg x_0 &gt; \deg q_0 + \deg x_{-1} \ge \deg x_{-1}. ' title='\displaystyle  \deg x_0 &gt; \deg q_0 + \deg x_{-1} \ge \deg x_{-1}. ' class='latex-displaystyle' /> For <img src='http://math.fontein.de/wp-content/latex/590/5905475576a21ecdafdaab879ff45aff-T-000000-0.png' alt='i = 1' title='i = 1' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/e0e/e0ec4055a7651d3cc1bbf1ddc61bd945-T-000000-0.png' alt='y_0 = -q_0' title='y_0 = -q_0' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/e81/e813cd57fcfad744c8e90b98e65b2669-T-000000-0.png' alt='y_1 = 1 + q_0 q_1' title='y_1 = 1 + q_0 q_1' class='latex-inline' />; if <img src='http://math.fontein.de/wp-content/latex/4d9/4d988f98197b8aeb6782aa74b7d146e5-T-000000-0.png' alt='q_0 = 0' title='q_0 = 0' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/604/6041169c39fa16ea7b9a0f921ed25e9b-T-000000-0.png' alt='\deg y_1 &gt; \deg q_1 + \deg y_0 \ge \deg y_0' title='\deg y_1 &gt; \deg q_1 + \deg y_0 \ge \deg y_0' class='latex-inline' />. Now assume <img src='http://math.fontein.de/wp-content/latex/38c/38cba6c068d8c64af5d722dcacda8997-T-000000-0.png' alt='q_0 \neq 0' title='q_0 \neq 0' class='latex-inline' />; as <img src='http://math.fontein.de/wp-content/latex/54f/54f97ee57a010b65fa14967534ee82f7-T-000000-0.png' alt='\deg q_1 &gt; 0' title='\deg q_1 &gt; 0' class='latex-inline' />, we see that <img src='http://math.fontein.de/wp-content/latex/e42/e42a057375d6a1f1c87b74b277a80056-T-000000-0.png' alt='\displaystyle  \deg y_1 = \deg q_0 + \deg q_1 = \deg y_0 + \deg q_1 &gt; \deg y_0. ' title='\displaystyle  \deg y_1 = \deg q_0 + \deg q_1 = \deg y_0 + \deg q_1 &gt; \deg y_0. ' class='latex-displaystyle' />
<br />
Now assume that <img src='http://math.fontein.de/wp-content/latex/534/53471bc23fccbe58270a89cb2139e07f-T-000000-0.png' alt='i &gt; 0' title='i &gt; 0' class='latex-inline' />. As <img src='http://math.fontein.de/wp-content/latex/6e7/6e728990a218fb2d85fc72c6af90f714-T-000000-0.png' alt='x_i = x_{i-2} - q_i x_{i-1}' title='x_i = x_{i-2} - q_i x_{i-1}' class='latex-inline' />, and we have <img src='http://math.fontein.de/wp-content/latex/a32/a3246fb3fadc32bb30d77e3b93fc287b-T-000000-0.png' alt='\deg x_{i-1} &gt; \deg x_{i-2}' title='\deg x_{i-1} &gt; \deg x_{i-2}' class='latex-inline' /> by induction, we get <img src='http://math.fontein.de/wp-content/latex/611/611848c4ec1ec263204224573baa9c78-T-000000-0.png' alt='\deg (q_i x_{i-1}) &gt; \deg x_{i-2}' title='\deg (q_i x_{i-1}) &gt; \deg x_{i-2}' class='latex-inline' /> and, therefore, <img src='http://math.fontein.de/wp-content/latex/2eb/2eb7f20184b6386fc3dc8d11b9990aa7-T-000000-0.png' alt='\deg x_i = \deg q_i + \deg x_{i-1}' title='\deg x_i = \deg q_i + \deg x_{i-1}' class='latex-inline' />. As <img src='http://math.fontein.de/wp-content/latex/c6f/c6fceeecc207be5eac611a974a92bf89-T-000000-0.png' alt='\deg q_i &gt; 0' title='\deg q_i &gt; 0' class='latex-inline' />, the claim follows. If <img src='http://math.fontein.de/wp-content/latex/ae8/ae850b771bfe3c9bf7eb443a732b9fc4-T-000000-0.png' alt='i &gt; 1' title='i &gt; 1' class='latex-inline' />, one obtains the same result for <img src='http://math.fontein.de/wp-content/latex/415/415290769594460e2e485922904f345d-T-000000-0.png' alt='y' title='y' class='latex-inline' />.</li>
<li>For <img src='http://math.fontein.de/wp-content/latex/b3c/b3c1942da3600d95a69c7ed331b90e83-T-000000-0.png' alt='i = -1' title='i = -1' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/ddb/ddb082da372d3a12c78dd115e1602775-T-000000-0.png' alt='\deg x_{i-1} ={} &amp; -\infty &lt; \deg m - \deg n = \deg m - \deg a_{-2} \\ \text{and} \quad \deg y_{-1} ={} &amp; 0 \le 0 = \deg n - \deg a_{-2}.' title='\deg x_{i-1} ={} &amp; -\infty &lt; \deg m - \deg n = \deg m - \deg a_{-2} \\ \text{and} \quad \deg y_{-1} ={} &amp; 0 \le 0 = \deg n - \deg a_{-2}.' class='latex-displaystyle' /> For <img src='http://math.fontein.de/wp-content/latex/fc5/fc5d9d43c5d58df1cf63bcf7e5f83321-T-000000-0.png' alt='i = 0' title='i = 0' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/99f/99f91eae7d3b18e9091830b4cbb0ee3f-T-000000-0.png' alt='\displaystyle  \deg x_i = 0 \le \deg m - \deg m = \deg m - \deg a_{-1} ' title='\displaystyle  \deg x_i = 0 \le \deg m - \deg m = \deg m - \deg a_{-1} ' class='latex-displaystyle' /> and <img src='http://math.fontein.de/wp-content/latex/056/0563521858a8f0d9b74b66b3bdd6bfb7-T-000000-0.png' alt='\deg y_i ={} &amp; \deg q_0 = \deg(q_0 m) - \deg m \\ {}={} &amp; \deg(n - a_0) - \deg m \\ {}\le{} &amp; \deg n - \deg m = \deg n - \deg a_{-1}.' title='\deg y_i ={} &amp; \deg q_0 = \deg(q_0 m) - \deg m \\ {}={} &amp; \deg(n - a_0) - \deg m \\ {}\le{} &amp; \deg n - \deg m = \deg n - \deg a_{-1}.' class='latex-displaystyle' /> We now continue by induction on <img src='http://math.fontein.de/wp-content/latex/865/865c0c0b4ab0e063e5caa3387c1a8741-T-000000-0.png' alt='i' title='i' class='latex-inline' />. For <img src='http://math.fontein.de/wp-content/latex/a87/a87bcdff7b58ce11437790f893d857de-T-000000-0.png' alt='i \ge 1' title='i \ge 1' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/2eb/2eb7f20184b6386fc3dc8d11b9990aa7-T-000000-0.png' alt='\deg x_i = \deg q_i + \deg x_{i-1}' title='\deg x_i = \deg q_i + \deg x_{i-1}' class='latex-inline' />; as <img src='http://math.fontein.de/wp-content/latex/fb9/fb9b283cc3b5c00b4aaca76a07d7264b-T-000000-0.png' alt='\displaystyle  \deg q_i = \deg (a_{i-2} - a_i) - \deg a_{i-1} \le \deg a_{i-2} - \deg a_{i-1} ' title='\displaystyle  \deg q_i = \deg (a_{i-2} - a_i) - \deg a_{i-1} \le \deg a_{i-2} - \deg a_{i-1} ' class='latex-displaystyle' /> and &ndash; by induction &ndash; <img src='http://math.fontein.de/wp-content/latex/304/304d72c50318b43dbd1bd5ae3d18af4a-T-000000-0.png' alt='\deg x_{i-1} \le \deg m - \deg a_{i-2}' title='\deg x_{i-1} \le \deg m - \deg a_{i-2}' class='latex-inline' /> we obtain <img src='http://math.fontein.de/wp-content/latex/cd5/cd5d5901e9e33691d3ecbc4f369305a3-T-000000-0.png' alt='\deg x_i \le{} &amp; (\deg a_{i-2} - \deg a_{i-1}) + (\deg m - \deg a_{i-2}) \\ {}={} &amp; \deg m - \deg a_{i-1}.' title='\deg x_i \le{} &amp; (\deg a_{i-2} - \deg a_{i-1}) + (\deg m - \deg a_{i-2}) \\ {}={} &amp; \deg m - \deg a_{i-1}.' class='latex-displaystyle' /> Similarly, we obtain <img src='http://math.fontein.de/wp-content/latex/1cb/1cb9699a56fb554a78f8e6c6fea83e35-T-000000-0.png' alt='\deg y_i \le \deg n - \deg a_{i-1}' title='\deg y_i \le \deg n - \deg a_{i-1}' class='latex-inline' />.</li>
</ol>
</div><div class='proofqed'>□</div></blockquote>

<p>Hence, we obtain:</p>

<blockquote class='theorem'><div class='theoremtitle'>Corollary.</div> <div class='theoremmain'>
If <img src='http://math.fontein.de/wp-content/latex/4bc/4bc4f7a9a8749f25409106856ba25b73-T-000000-0.png' alt='R = \Z' title='R = \Z' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/d31/d31ef43c9e247e0c40191fd5d5b7af05-T-000000-0.png' alt='d(z) = \abs{z}' title='d(z) = \abs{z}' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/e00/e00a70d4a729ba387fe245b5388a135a-T-000000-0.png' alt='z \in \Z' title='z \in \Z' class='latex-inline' />, or <img src='http://math.fontein.de/wp-content/latex/753/753f7a82855ed09e8cd59fc126d06832-T-000000-0.png' alt='R = K[x]' title='R = K[x]' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/704/7049d2b2ab9994bcafc145016f2adfbb-T-000000-0.png' alt='d(f) = q^{\deg f}' title='d(f) = q^{\deg f}' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/0cf/0cf307e26b6bb1a7b875aa20cdde8cd1-T-000000-0.png' alt='f \in R' title='f \in R' class='latex-inline' />, and if the <img src='http://math.fontein.de/wp-content/latex/da3/da326f7200e158a864695985b2e2f095-T-000000-0.png' alt='q_i' title='q_i' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/2ae/2aecb1dc57e87620a373d19b0a889efb-T-000000-0.png' alt='a_i' title='a_i' class='latex-inline' /> are chosen such that <img src='http://math.fontein.de/wp-content/latex/4fa/4fa779171e634d9767eb1aa1c046d70d-T-000000-0.png' alt='\abs{a_i - a_{i-2}} \le \abs{a_{i-2}}' title='\abs{a_i - a_{i-2}} \le \abs{a_{i-2}}' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/5af/5af0c3d945bcd233af98060298f70a8f-T-000000-0.png' alt='i \ge 0' title='i \ge 0' class='latex-inline' />, we have the following:
<ol>
<li>for <img src='http://math.fontein.de/wp-content/latex/75e/75eb7e750137d829605d45e1b17461f5-T-000000-0.png' alt='i = 0, \dots, N' title='i = 0, \dots, N' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/9d8/9d8b7d64d8aa2df5dfa7c37e88f97079-T-000000-0.png' alt='d(x_i) &gt; d(x_{i-1})' title='d(x_i) &gt; d(x_{i-1})' class='latex-inline' />; for <img src='http://math.fontein.de/wp-content/latex/64a/64ad14522995b865c6e2e82a869eb51c-T-000000-0.png' alt='i = 1, \dots, N' title='i = 1, \dots, N' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/7b5/7b510fe5f9a97cffd710eabfb156790d-T-000000-0.png' alt='d(y_i) &gt; d(y_{-1})' title='d(y_i) &gt; d(y_{-1})' class='latex-inline' />;</li>
<li>we have <img src='http://math.fontein.de/wp-content/latex/6c3/6c32952447b563706957bc83cde18a8d-T-000000-0.png' alt='d(x_i) \le \frac{d(m)}{d(a_{i-1})}' title='d(x_i) \le \frac{d(m)}{d(a_{i-1})}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/f96/f96886368c1b452dd536351284028ad2-T-000000-0.png' alt='d(y_i) \le \frac{d(n)}{d(a_{i-1})}' title='d(y_i) \le \frac{d(n)}{d(a_{i-1})}' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/279/279fc78f1aa581ff531fe715219f3e3b-T-000000-0.png' alt='i = -1, 0, \dots, N' title='i = -1, 0, \dots, N' class='latex-inline' />; in particular, we have <img src='http://math.fontein.de/wp-content/latex/568/568d5bb76e34b7aca28d95ac6c89dec6-T-000000-0.png' alt='d(x_{N-1}) &lt; \frac{d(m)}{d(a_{N-1})} \le d(m)' title='d(x_{N-1}) &lt; \frac{d(m)}{d(a_{N-1})} \le d(m)' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/5f0/5f0138b03577473ec5d156d6a7b98a56-T-000000-0.png' alt='d(y_{N-1}) &lt; \frac{d(n)}{d(a_{N-1})} \le d(n)' title='d(y_{N-1}) &lt; \frac{d(n)}{d(a_{N-1})} \le d(n)' class='latex-inline' />.</li>
</ol>
</div></blockquote>

<blockquote class='proof'><div class='prooftitle'>Proof.</div> <div class='proofmain'>
We are left to show the last statement of 2. For that, note that <img src='http://math.fontein.de/wp-content/latex/e15/e154c1aa3a66b77ce00c0ea5d4702bb1-T-000000-0.png' alt='d(x_{N-1}) \le \frac{d(m)}{d(a_{N-2})} &lt; \frac{d(m)}{d(a_{N-1})} \le d(m)' title='d(x_{N-1}) \le \frac{d(m)}{d(a_{N-2})} &lt; \frac{d(m)}{d(a_{N-1})} \le d(m)' class='latex-inline' /> and, analogously, <img src='http://math.fontein.de/wp-content/latex/5f0/5f0138b03577473ec5d156d6a7b98a56-T-000000-0.png' alt='d(y_{N-1}) &lt; \frac{d(n)}{d(a_{N-1})} \le d(n)' title='d(y_{N-1}) &lt; \frac{d(n)}{d(a_{N-1})} \le d(n)' class='latex-inline' />.
</div><div class='proofqed'>□</div></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://math.fontein.de/2009/11/18/euclidean-domains-and-the-extended-euclidean-algorithm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

