<?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; Hensel&#8217;s lemma</title>
	<atom:link href="http://math.fontein.de/tag/hensels-lemma/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>Solving Certain Linear Systems over the Integers.</title>
		<link>http://math.fontein.de/2011/06/17/solving-certain-linear-systems-over-the-integers/</link>
		<comments>http://math.fontein.de/2011/06/17/solving-certain-linear-systems-over-the-integers/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 18:52:49 +0000</pubDate>
		<dc:creator>Felix Fontein</dc:creator>
				<category><![CDATA[Computational Number Theory]]></category>
		<category><![CDATA[Linear Algebra]]></category>
		<category><![CDATA[Hensel's lemma]]></category>
		<category><![CDATA[linear system of equations]]></category>

		<guid isPermaLink="false">https://math.fontein.de/?p=831</guid>
		<description><![CDATA[We present a (well-known) method to compute a solution to the linear system Ax=b over the integers, when it is known that the determinant of A is non-zero and that a solution with integral coefficients exists. We also provide a running time analysis.]]></description>
			<content:encoded><![CDATA[<p>Assume you have a linear system of equations <img src='http://math.fontein.de/wp-content/latex/fb1/fb18212e251c8148e7d1b724faa3179a-T-000000-0.png' alt='A x = b' title='A x = b' class='latex-inline' />, where <img src='http://math.fontein.de/wp-content/latex/149/1490cc0169820c770d8a859fb348b0fe-T-000000-0.png' alt='A \in \Z^{n \times n}' title='A \in \Z^{n \times n}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/4e5/4e59ee47b2e8d71465f9fb08a8c4a609-T-000000-0.png' alt='b \in \Z^n' title='b \in \Z^n' class='latex-inline' />. Assume that <img src='http://math.fontein.de/wp-content/latex/838/8386941d27bc865e427aa8e2ac366f00-T-000000-0.png' alt='\det A \neq 0' title='\det A \neq 0' class='latex-inline' />, and that we know that a solution in <img src='http://math.fontein.de/wp-content/latex/2af/2afa72d9ef584a2535c844f1305558c4-T-000000-0.png' alt='\Z^n' title='\Z^n' class='latex-inline' /> exists. One question is: how can we efficiently compute <img src='http://math.fontein.de/wp-content/latex/9dd/9dd4e461268c8034f5c8564e155c67a6-T-000000-0.png' alt='x' title='x' class='latex-inline' />? Clearly, any algorithm solving linear systems over the integers or rationals will do; for example, the algorithms from the <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Integer_Matrix_Library">Integer Matrix Library</a> by Z.&nbsp;Chen, C.&nbsp;Fletcher and A.&nbsp;Storjohann will do. That library will find any solution <img src='http://math.fontein.de/wp-content/latex/107/107be3ea6d9ba8a01e3399e983b7e2b1-T-000000-0.png' alt='x \in \Q^n' title='x \in \Q^n' class='latex-inline' />, and also does not require that <img src='http://math.fontein.de/wp-content/latex/7fc/7fc56270e7a70fa81a5935b72eacbe29-T-000000-0.png' alt='A' title='A' class='latex-inline' /> is invertible (over the rationals) or that <img src='http://math.fontein.de/wp-content/latex/7fc/7fc56270e7a70fa81a5935b72eacbe29-T-000000-0.png' alt='A' title='A' class='latex-inline' /> is square. But for our purposes, using such a general solver is overkill.</p>
<p>Note that the below material is well-known among experts.</p>
<p>Let <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' /> be any prime not dividing <img src='http://math.fontein.de/wp-content/latex/689/6896861468067fe04fc5e755f9188a70-T-000000-0.png' alt='\det A' title='\det A' class='latex-inline' />. Then <img src='http://math.fontein.de/wp-content/latex/7fc/7fc56270e7a70fa81a5935b72eacbe29-T-000000-0.png' alt='A' title='A' class='latex-inline' /> modulo <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' /> is invertible, and modulo <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />, the system <img src='http://math.fontein.de/wp-content/latex/fb1/fb18212e251c8148e7d1b724faa3179a-T-000000-0.png' alt='A x = b' title='A x = b' class='latex-inline' /> has a unique solution. Moreover, for any integer <img src='http://math.fontein.de/wp-content/latex/e16/e1671797c52e15f763380b45e841ec32-T-000000-0.png' alt='e' title='e' class='latex-inline' />, the system <img src='http://math.fontein.de/wp-content/latex/fb1/fb18212e251c8148e7d1b724faa3179a-T-000000-0.png' alt='A x = b' title='A x = b' class='latex-inline' /> has a unique solution modulo <img src='http://math.fontein.de/wp-content/latex/985/985e41a610a4a9ccbf40c26313310791-T-000000-0.png' alt='p^e' title='p^e' class='latex-inline' />: this is true since <img src='http://math.fontein.de/wp-content/latex/7fc/7fc56270e7a70fa81a5935b72eacbe29-T-000000-0.png' alt='A' title='A' class='latex-inline' /> is also invertible modulo <img src='http://math.fontein.de/wp-content/latex/985/985e41a610a4a9ccbf40c26313310791-T-000000-0.png' alt='p^e' title='p^e' class='latex-inline' /> &ndash; for that, it suffices to check that the determinant of <img src='http://math.fontein.de/wp-content/latex/7fc/7fc56270e7a70fa81a5935b72eacbe29-T-000000-0.png' alt='A' title='A' class='latex-inline' /> is a unit, which it is since it is coprime to <img src='http://math.fontein.de/wp-content/latex/985/985e41a610a4a9ccbf40c26313310791-T-000000-0.png' alt='p^e' title='p^e' class='latex-inline' />. Moreover, if <img src='http://math.fontein.de/wp-content/latex/c0e/c0e8e4602b48d6e3b303f605f8a85cf2-T-000000-0.png' alt='y \in \Z^n' title='y \in \Z^n' class='latex-inline' /> is a solution to <img src='http://math.fontein.de/wp-content/latex/fb1/fb18212e251c8148e7d1b724faa3179a-T-000000-0.png' alt='A x = b' title='A x = b' class='latex-inline' /> over the integers, then <img src='http://math.fontein.de/wp-content/latex/415/415290769594460e2e485922904f345d-T-000000-0.png' alt='y' title='y' class='latex-inline' /> modulo <img src='http://math.fontein.de/wp-content/latex/985/985e41a610a4a9ccbf40c26313310791-T-000000-0.png' alt='p^e' title='p^e' class='latex-inline' /> is the unique solution of <img src='http://math.fontein.de/wp-content/latex/fb1/fb18212e251c8148e7d1b724faa3179a-T-000000-0.png' alt='A x = b' title='A x = b' class='latex-inline' /> modulo <img src='http://math.fontein.de/wp-content/latex/985/985e41a610a4a9ccbf40c26313310791-T-000000-0.png' alt='p^e' title='p^e' class='latex-inline' />. Hence, if we choose <img src='http://math.fontein.de/wp-content/latex/e16/e1671797c52e15f763380b45e841ec32-T-000000-0.png' alt='e' title='e' class='latex-inline' /> such that <img src='http://math.fontein.de/wp-content/latex/725/7252d5a43f1f23f0ea55818d6d02ecf7-T-000000-0.png' alt='\frac{1}{2} p^e' title='\frac{1}{2} p^e' class='latex-inline' /> bounds all coefficients of the solution <img src='http://math.fontein.de/wp-content/latex/415/415290769594460e2e485922904f345d-T-000000-0.png' alt='y' title='y' class='latex-inline' />, we can recover a solution to <img src='http://math.fontein.de/wp-content/latex/fb1/fb18212e251c8148e7d1b724faa3179a-T-000000-0.png' alt='A x = b' title='A x = b' class='latex-inline' /> over the integers from a solution to <img src='http://math.fontein.de/wp-content/latex/fb1/fb18212e251c8148e7d1b724faa3179a-T-000000-0.png' alt='A x = b' title='A x = b' class='latex-inline' /> modulo <img src='http://math.fontein.de/wp-content/latex/985/985e41a610a4a9ccbf40c26313310791-T-000000-0.png' alt='p^e' title='p^e' class='latex-inline' />, by chosing the unique preimages in <img src='http://math.fontein.de/wp-content/latex/843/843bd2361d354b7460a565bda1cded77-T-000000-0.png' alt='(-\tfrac{1}{2} p^e, \tfrac{1}{2} p^e]' title='(-\tfrac{1}{2} p^e, \tfrac{1}{2} p^e]' class='latex-inline' />.</p>
<p>This opens the question on how to solve <img src='http://math.fontein.de/wp-content/latex/fb1/fb18212e251c8148e7d1b724faa3179a-T-000000-0.png' alt='A x = b' title='A x = b' class='latex-inline' /> modulo <img src='http://math.fontein.de/wp-content/latex/985/985e41a610a4a9ccbf40c26313310791-T-000000-0.png' alt='p^e' title='p^e' class='latex-inline' />. For that, a <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Hensel%27s_lemma">Hensel</a>-like lifting technique can be used. (In fact, this follows from <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Hensel%27s_lemma#Generalizations">Bourbaki&#8217;s generalization</a> since the Jacobian of the map <img src='http://math.fontein.de/wp-content/latex/612/612ba478478843204ebf24edc4bd36e0-T-000000-0.png' alt='f : (\Z/p^e\Z)^n \to (\Z/p^e\Z)^n' title='f : (\Z/p^e\Z)^n \to (\Z/p^e\Z)^n' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/8e4/8e4d7800e132e3744e7ff9172b447123-T-000000-0.png' alt='x \mapsto A x - b' title='x \mapsto A x - b' class='latex-inline' /> equals <img src='http://math.fontein.de/wp-content/latex/7fc/7fc56270e7a70fa81a5935b72eacbe29-T-000000-0.png' alt='A' title='A' class='latex-inline' />.) Assume that we have an <img src='http://math.fontein.de/wp-content/latex/e95/e955ab3e6cb1b2802bf042cd101dc7d2-T-000000-0.png' alt='x \in \Z^n' title='x \in \Z^n' class='latex-inline' /> which satisfies <img src='http://math.fontein.de/wp-content/latex/dd6/dd6e6c0547f31e2ef037da196011c2ca-T-000000-0.png' alt='A x \equiv b \pmod{p^{e-1}}' title='A x \equiv b \pmod{p^{e-1}}' class='latex-inline' />. We want to find <img src='http://math.fontein.de/wp-content/latex/a04/a048f6aa75943cd9698f5c044a24a5b6-T-000000-0.png' alt='x&#039; \in \Z^n' title='x&#039; \in \Z^n' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/2ef/2ef805b22cc642742b029caf883196cf-T-000000-0.png' alt='A x&#039; \equiv b \pmod{p^e}' title='A x&#039; \equiv b \pmod{p^e}' class='latex-inline' />. Write <img src='http://math.fontein.de/wp-content/latex/c78/c78d158fa0033ab33b7b94d77f8202c7-T-000000-0.png' alt='x&#039; = x + p^{e-1} x&#039;&#039;' title='x&#039; = x + p^{e-1} x&#039;&#039;' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/7b3/7b32c21a8a87e7ad7f3df375fe2bb81e-T-000000-0.png' alt='x&#039;&#039; \in \{ 0, \dots, p - 1 \}^n' title='x&#039;&#039; \in \{ 0, \dots, p - 1 \}^n' class='latex-inline' />. As <img src='http://math.fontein.de/wp-content/latex/59c/59c1fe0a6244b71977522f795756d380-T-000000-0.png' alt='A x&#039; = A x + p^{e-1} A x&#039;&#039;' title='A x&#039; = A x + p^{e-1} A x&#039;&#039;' class='latex-inline' />, and as <img src='http://math.fontein.de/wp-content/latex/620/6205cba12088bbed4077696ae656da17-T-000000-0.png' alt='A x - b' title='A x - b' class='latex-inline' /> is divisible by <img src='http://math.fontein.de/wp-content/latex/336/336370905eca749c78850ec858eb1fbf-T-000000-0.png' alt='p^{e-1}' title='p^{e-1}' class='latex-inline' />, we obtain the linear system <img src='http://math.fontein.de/wp-content/latex/286/286f5605fb000d560756495d0e0e4081-T-000000-0.png' alt='A x&#039;&#039; \equiv \frac{A x - b}{p^{e-1}} \pmod{p}' title='A x&#039;&#039; \equiv \frac{A x - b}{p^{e-1}} \pmod{p}' class='latex-inline' />. Hence, it suffices to solve <img src='http://math.fontein.de/wp-content/latex/e16/e1671797c52e15f763380b45e841ec32-T-000000-0.png' alt='e' title='e' class='latex-inline' /> linear systems over the prime field <img src='http://math.fontein.de/wp-content/latex/0cc/0ccd607d446a0c6142ae68c0ef764e07-T-000000-0.png' alt='\F_p' title='\F_p' class='latex-inline' /> to solve <img src='http://math.fontein.de/wp-content/latex/fb1/fb18212e251c8148e7d1b724faa3179a-T-000000-0.png' alt='A x = b' title='A x = b' class='latex-inline' /> over <img src='http://math.fontein.de/wp-content/latex/646/64602cabd914f8d760976c867c68eea7-T-000000-0.png' alt='\Z/p^e\Z' title='\Z/p^e\Z' class='latex-inline' />.</p>
<p>This yields the following algorithm:</p>
<ol>
<li>Choose <code>p := 2</code>.</li>
<li>Solve <code>A x = b</code> modulo <code>p</code>.</li>
<li>If a unique solution exists:
<ol>
<li>Set <code>e = 0</code> and lift <code>x</code> to the integers with coordinates in <img src='http://math.fontein.de/wp-content/latex/13b/13b0ec0aaad9268644a78b8458d2d739-T-000000-0.png' alt='(\tfrac{1}{2} p, \tfrac{1}{2} p]' title='(\tfrac{1}{2} p, \tfrac{1}{2} p]' class='latex-inline' />.</li>
<li>Compute <code>c := A*x - b</code>.</li>
<li>If <code>c = 0</code>, return <code>x</code>.</li>
<li>Solve <code>A y = c/p^e</code> modulo <code>p</code>.</li>
<li>Set <code>x := x + y*p^e</code> and <code>e := e + 1</code>.</li>
<li>Adjust <code>x</code> modulo <img src='http://math.fontein.de/wp-content/latex/a5e/a5e7ac4416b47e30956dea7e8640fa94-T-000000-0.png' alt='p^{e+1}' title='p^{e+1}' class='latex-inline' /> such that all coefficients are in <img src='http://math.fontein.de/wp-content/latex/157/15788f259a6da11ed7ef805c4869bb1c-T-000000-0.png' alt='(\tfrac{1}{2} p^{e+1}, \tfrac{1}{2} p^{e+1}]' title='(\tfrac{1}{2} p^{e+1}, \tfrac{1}{2} p^{e+1}]' class='latex-inline' />.</li>
<li>Go back to Step 3.2.</li>
</ol>
<p> Else:</p>
<ol>
<li>Choose the next prime <code>p</code> and go back to Step&nbsp;2.</li>
</ol>
</li>
</ol>
<p>The only subprogram we need is a linear systems solver for <img src='http://math.fontein.de/wp-content/latex/fb1/fb18212e251c8148e7d1b724faa3179a-T-000000-0.png' alt='A x = b' title='A x = b' class='latex-inline' /> with square <img src='http://math.fontein.de/wp-content/latex/7fc/7fc56270e7a70fa81a5935b72eacbe29-T-000000-0.png' alt='A' title='A' class='latex-inline' /> over a finite field, which returns information on the number of solutions. (Note that <img src='http://math.fontein.de/wp-content/latex/689/6896861468067fe04fc5e755f9188a70-T-000000-0.png' alt='\det A' title='\det A' class='latex-inline' /> is not divisible by <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' /> if and only if there is a unique solution.) If more information is known on the matrix <img src='http://math.fontein.de/wp-content/latex/7fc/7fc56270e7a70fa81a5935b72eacbe29-T-000000-0.png' alt='A' title='A' class='latex-inline' />, for example its determinant has been already computed, this information can be used as well.</p>
<p>Let us analyze the running time of this algorithm. Denote by <img src='http://math.fontein.de/wp-content/latex/5d9/5d9cd685ae7f2b62ddc0642337dc999f-T-000000-0.png' alt='NP(A)' title='NP(A)' class='latex-inline' /> the smallest prime not dividing <img src='http://math.fontein.de/wp-content/latex/689/6896861468067fe04fc5e755f9188a70-T-000000-0.png' alt='\det A' title='\det A' class='latex-inline' />, and by <img src='http://math.fontein.de/wp-content/latex/fe9/fe973e7ccda229e7dd00a36f0920e6c1-T-000000-0.png' alt='S(n, p)' title='S(n, p)' class='latex-inline' /> the time the linear system solver over <img src='http://math.fontein.de/wp-content/latex/0cc/0ccd607d446a0c6142ae68c0ef764e07-T-000000-0.png' alt='\F_p' title='\F_p' class='latex-inline' /> needs to solve a system of size <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' />. Let <img src='http://math.fontein.de/wp-content/latex/24a/24a3d8121453a95a7696f77235b7b1de-T-000000-0.png' alt='\|A\|_\infty' title='\|A\|_\infty' class='latex-inline' /> (resp. <img src='http://math.fontein.de/wp-content/latex/b53/b53538b4a5fbe11511aea58317056d99-T-000000-0.png' alt='\|x\|_\infty' title='\|x\|_\infty' class='latex-inline' /> resp. <img src='http://math.fontein.de/wp-content/latex/748/7489a14825cf60db58d6a5a8e5ae9b44-T-000000-0.png' alt='\|b\|_\infty' title='\|b\|_\infty' class='latex-inline' />) denote the largest absolute value of an coefficient of <img src='http://math.fontein.de/wp-content/latex/7fc/7fc56270e7a70fa81a5935b72eacbe29-T-000000-0.png' alt='A' title='A' class='latex-inline' /> (resp. <img src='http://math.fontein.de/wp-content/latex/9dd/9dd4e461268c8034f5c8564e155c67a6-T-000000-0.png' alt='x' title='x' class='latex-inline' /> resp. <img src='http://math.fontein.de/wp-content/latex/92e/92eb5ffee6ae2fec3ad71c777531578f-T-000000-0.png' alt='b' title='b' class='latex-inline' />).</p>
<p>Clearly, the number of iterations is in <img src='http://math.fontein.de/wp-content/latex/2ca/2ca458563aadb2c908676623848818d9-T-000000-0.png' alt='O(\log_{NP(A)} \|x\|_\infty) = O(\frac{\log \|x\|_\infty}{\log NP(A)})' title='O(\log_{NP(A)} \|x\|_\infty) = O(\frac{\log \|x\|_\infty}{\log NP(A)})' class='latex-inline' />. In each iteration, one linear system over <img src='http://math.fontein.de/wp-content/latex/0cc/0ccd607d446a0c6142ae68c0ef764e07-T-000000-0.png' alt='\F_p' title='\F_p' class='latex-inline' /> of size <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' /> has to be solved, and <img src='http://math.fontein.de/wp-content/latex/620/6205cba12088bbed4077696ae656da17-T-000000-0.png' alt='A x - b' title='A x - b' class='latex-inline' /> has to be evaluated. The former takes <img src='http://math.fontein.de/wp-content/latex/310/3101403c6f2b0f777f1e383eccdbd9b0-T-000000-0.png' alt='S(n, NP(A))' title='S(n, NP(A))' class='latex-inline' /> operations, and the latter involves <img src='http://math.fontein.de/wp-content/latex/659/6595d679e306a127a3fe53268bcaddb2-T-000000-0.png' alt='n^2' title='n^2' class='latex-inline' /> multiplications and additions of integers of size <img src='http://math.fontein.de/wp-content/latex/81c/81c1180d9d7d50ec9a91a13cf7f59b12-T-000000-0.png' alt='O(\log \|A\|_\infty)' title='O(\log \|A\|_\infty)' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/a87/a875ca9e58d3a1971a28a986c72a9056-T-000000-0.png' alt='O(e \log NP(A))' title='O(e \log NP(A))' class='latex-inline' />, and <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' /> substractions of integers of size <img src='http://math.fontein.de/wp-content/latex/dd5/dd556ad30d6518a6366aef5bb4b68237-T-000000-0.png' alt='O(\log \|A\|_\infty + e \log NP(A))' title='O(\log \|A\|_\infty + e \log NP(A))' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/7b2/7b2293272554d1126dd7b92274ddd7ce-T-000000-0.png' alt='O(\log \|b\|_\infty)' title='O(\log \|b\|_\infty)' class='latex-inline' />. For simplicity, assume that <img src='http://math.fontein.de/wp-content/latex/7d3/7d3dac0f1a11d00bf35a9d77b636135a-T-000000-0.png' alt='\log \|b\|_\infty = O(\log \|A\|_\infty)' title='\log \|b\|_\infty = O(\log \|A\|_\infty)' class='latex-inline' />. Finally, to compute <img src='http://math.fontein.de/wp-content/latex/a8d/a8d5b99c2e44cd60674fbf700b9633fe-T-000000-0.png' alt='x = x + y p^e' title='x = x + y p^e' class='latex-inline' />, we need <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' /> multipliations of integers of size <img src='http://math.fontein.de/wp-content/latex/10b/10b099a6233ccad3874d57abc3b17a76-T-000000-0.png' alt='O(\log NP(A))' title='O(\log NP(A))' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/a87/a875ca9e58d3a1971a28a986c72a9056-T-000000-0.png' alt='O(e \log NP(A))' title='O(e \log NP(A))' class='latex-inline' />, and <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' /> additions which can be neglected. Clearly, the <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' /> multiplications can also be neglected, since the evaluation of <img src='http://math.fontein.de/wp-content/latex/087/08741377d2ecfb6b9c127aa78f55b3c2-T-000000-0.png' alt='A x' title='A x' class='latex-inline' /> already is slower.</p>
<p>Let <img src='http://math.fontein.de/wp-content/latex/118/118e30a3364b2745b1f6ae06a171ef97-T-000000-0.png' alt='M(m)' title='M(m)' class='latex-inline' /> denote the time a multiplication of two numbers of size <img src='http://math.fontein.de/wp-content/latex/6f8/6f8f57715090da2632453988d9a1501b-T-000000-0.png' alt='m' title='m' class='latex-inline' /> needs. Then inside the main loop, we need <img src='http://math.fontein.de/wp-content/latex/cce/cce4d954286ba6052047451e1eedff4e-T-000000-0.png' alt='\displaystyle  O\bigl(S(n, NP(A)) + n^2 M(\max\{ \log \|A\|_\infty, e \log NP(A) \})\bigr) ' title='\displaystyle  O\bigl(S(n, NP(A)) + n^2 M(\max\{ \log \|A\|_\infty, e \log NP(A) \})\bigr) ' class='latex-displaystyle' /> time units, and the main loop alltogether needs <img src='http://math.fontein.de/wp-content/latex/259/259aba74627eef08d566396a65c48e01-T-000000-0.png' alt='&amp; O\Biggl(\sum_{e=1}^{\frac{\log \|x\|_\infty}{\log NP(A)}} \biggl( S(n, NP(A)) + n^2 M(\max\{ \log \|A\|_\infty, e \log NP(A) \}) \biggr) \Biggr) \\ {}={} &amp; O\Biggl(\frac{\log \|x\|_\infty}{\log NP(A)} \bigl( S(n, NP(A)) + n^2 M(\max\{ \log \|A\|_\infty, \log \|x\|_\infty \}) \biggr) \Biggr) ' title='&amp; O\Biggl(\sum_{e=1}^{\frac{\log \|x\|_\infty}{\log NP(A)}} \biggl( S(n, NP(A)) + n^2 M(\max\{ \log \|A\|_\infty, e \log NP(A) \}) \biggr) \Biggr) \\ {}={} &amp; O\Biggl(\frac{\log \|x\|_\infty}{\log NP(A)} \bigl( S(n, NP(A)) + n^2 M(\max\{ \log \|A\|_\infty, \log \|x\|_\infty \}) \biggr) \Biggr) ' class='latex-displaystyle' /> time units. Finding <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' /> needs <img src='http://math.fontein.de/wp-content/latex/ea0/ea01775667d219f5de74470f319f83d8-T-000000-0.png' alt='\displaystyle  O\Biggl(\frac{NP(A)}{\log NP(A)} S(n, NP(A)) \Biggr) ' title='\displaystyle  O\Biggl(\frac{NP(A)}{\log NP(A)} S(n, NP(A)) \Biggr) ' class='latex-displaystyle' /> time units (using the <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Prime_number_theorem">Prime Number Theorem</a>).</p>
<p>Assuming that we use a naive Gaussian algorithm as well as naive multiplication, i.e. <img src='http://math.fontein.de/wp-content/latex/1f3/1f3bbd0649ad67de9cc58cf936d1c99a-T-000000-0.png' alt='S(n, p) = n^3 (\log p)^2' title='S(n, p) = n^3 (\log p)^2' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/e6c/e6c29fc91ea41f174dbc9c52dfd8936a-T-000000-0.png' alt='M(m) = m^2' title='M(m) = m^2' class='latex-inline' />, we obtain a total running time of <img src='http://math.fontein.de/wp-content/latex/d5f/d5fa163f769420c0aad0ba325b998057-T-000000-0.png' alt=' O\Biggl( &amp; n^3 \bigl( \log \|x\|_\infty + NP(A) \bigr) \log NP(A) \\ &amp; {}+ n^2 \max\biggl\{ \frac{(\log \|A\|_\infty)^2 \log \|x\|_\infty}{\log NP(A)}, \frac{(\log \|x\|_\infty)^3}{\log NP(A)} \biggr\} \Biggr). ' title=' O\Biggl( &amp; n^3 \bigl( \log \|x\|_\infty + NP(A) \bigr) \log NP(A) \\ &amp; {}+ n^2 \max\biggl\{ \frac{(\log \|A\|_\infty)^2 \log \|x\|_\infty}{\log NP(A)}, \frac{(\log \|x\|_\infty)^3}{\log NP(A)} \biggr\} \Biggr). ' class='latex-displaystyle' /> Using fast multiplication, i.e. <img src='http://math.fontein.de/wp-content/latex/7be/7be3bbdf3b01e011042ebf6e453b1931-T-000000-0.png' alt='M(m) = m^{1 + \varepsilon}' title='M(m) = m^{1 + \varepsilon}' class='latex-inline' /> (using <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Fast_multiplication#Fourier_transform_methods">FFT methods</a>), and fast linear system solving, i.e. <img src='http://math.fontein.de/wp-content/latex/84b/84b00b92ad36576719386d92890743b2-T-000000-0.png' alt='S(n, p) = O(n^\omega (\log p)^{1 + \varepsilon})' title='S(n, p) = O(n^\omega (\log p)^{1 + \varepsilon})' class='latex-inline' />, where <img src='http://math.fontein.de/wp-content/latex/c88/c88c68a5d13a8970e1d155900e5cc17c-T-000000-0.png' alt='\omega \le 2.376' title='\omega \le 2.376' class='latex-inline' />, we obtain a total running time of <img src='http://math.fontein.de/wp-content/latex/3ca/3ca8e5441223edf6d41b9c4086032a5a-T-000000-0.png' alt='O\Biggl( &amp; (NP(A) + \log \|x\|_\infty) n^\omega (\log NP(A))^{\varepsilon} \\ &amp; {}+ n^2 \max\biggl\{ \frac{\log \|x\|_\infty (\log \|A\|_\infty)^{1+\varepsilon}}{\log NP(A)}, \frac{(\log \|x\|_\infty)^{2 + \varepsilon}}{\log NP(A)} \biggr\} \Biggr) ' title='O\Biggl( &amp; (NP(A) + \log \|x\|_\infty) n^\omega (\log NP(A))^{\varepsilon} \\ &amp; {}+ n^2 \max\biggl\{ \frac{\log \|x\|_\infty (\log \|A\|_\infty)^{1+\varepsilon}}{\log NP(A)}, \frac{(\log \|x\|_\infty)^{2 + \varepsilon}}{\log NP(A)} \biggr\} \Biggr) ' class='latex-displaystyle' /></p>
<p>Now let us try to eliminate <img src='http://math.fontein.de/wp-content/latex/5d9/5d9cd685ae7f2b62ddc0642337dc999f-T-000000-0.png' alt='NP(A)' title='NP(A)' class='latex-inline' /> from this expression. Clearly, the the second part, we can use that <img src='http://math.fontein.de/wp-content/latex/ae5/ae508b672f8941f536ee4297737c42f7-T-000000-0.png' alt='NP(A) \ge 2' title='NP(A) \ge 2' class='latex-inline' />. To eliminate <img src='http://math.fontein.de/wp-content/latex/5d9/5d9cd685ae7f2b62ddc0642337dc999f-T-000000-0.png' alt='NP(A)' title='NP(A)' class='latex-inline' /> from the first part, we need to find an upper bound. For that, let us first stick to <img src='http://math.fontein.de/wp-content/latex/061/0612843af3c169cfe9653a0e8fee14e8-T-000000-0.png' alt='NP(t)' title='NP(t)' class='latex-inline' />, the smallest prime not dividing the integer <img src='http://math.fontein.de/wp-content/latex/e35/e358efa489f58062f10dd7316b65649e-T-000000-0.png' alt='t' title='t' class='latex-inline' />. (Letting <img src='http://math.fontein.de/wp-content/latex/7fc/7fc56270e7a70fa81a5935b72eacbe29-T-000000-0.png' alt='A' title='A' class='latex-inline' /> be a <img src='http://math.fontein.de/wp-content/latex/5ed/5ed2d4c114d036610b8e20271c5026ef-T-000000-0.png' alt='1 \times 1' title='1 \times 1' class='latex-inline' />-matrix <img src='http://math.fontein.de/wp-content/latex/7fc/7fc56270e7a70fa81a5935b72eacbe29-T-000000-0.png' alt='A' title='A' class='latex-inline' /> yields <img src='http://math.fontein.de/wp-content/latex/d11/d11d08511e1d7382bf7f6614aebeb828-T-000000-0.png' alt='NP(t) = NP(A)' title='NP(t) = NP(A)' class='latex-inline' />; in general, <img src='http://math.fontein.de/wp-content/latex/37f/37ff3d18fa6e34511a2d61ab97b215dd-T-000000-0.png' alt='NP(A) = NP(\det A)' title='NP(A) = NP(\det A)' class='latex-inline' /> using this notation.) Now <img src='http://math.fontein.de/wp-content/latex/e35/e358efa489f58062f10dd7316b65649e-T-000000-0.png' alt='t' title='t' class='latex-inline' /> is divisible by <img src='http://math.fontein.de/wp-content/latex/3eb/3eb73f11af93b5ca2fc83232a5549ef0-T-000000-0.png' alt='\prod_{p &lt; NP(t)} p' title='\prod_{p &lt; NP(t)} p' class='latex-inline' />, whence for <img src='http://math.fontein.de/wp-content/latex/0f2/0f240d704625c4f3aee035c0a1f79091-T-000000-0.png' alt='t &lt; \prod_{p &lt; x} p' title='t &lt; \prod_{p &lt; x} p' class='latex-inline' /> we have <img src='http://math.fontein.de/wp-content/latex/2a8/2a823c2a859609a5f4fc5a09e3f459d9-T-000000-0.png' alt='NP(t) &lt; x' title='NP(t) &lt; x' class='latex-inline' />. Note that for integral <img src='http://math.fontein.de/wp-content/latex/9dd/9dd4e461268c8034f5c8564e155c67a6-T-000000-0.png' alt='x' title='x' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/d89/d897134590dc3dc72b3bbc2269696a80-T-000000-0.png' alt='\log \bigl( \prod_{p &lt; x} p \bigr) = \vartheta(x - 1) \le \vartheta(x) \sim x' title='\log \bigl( \prod_{p &lt; x} p \bigr) = \vartheta(x - 1) \le \vartheta(x) \sim x' class='latex-inline' />, where <img src='http://math.fontein.de/wp-content/latex/910/910c5697e4086f751246eed11bf19a50-T-000000-0.png' alt='\vartheta' title='\vartheta' class='latex-inline' /> denotes the <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Chebyshev_function">Chebyshev function</a>. Using <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Chebyshev_function#Asymptotics_and_bounds">known bounds</a> on <img src='http://math.fontein.de/wp-content/latex/00a/00a3e681e7f16483324136c5f343c197-T-000000-0.png' alt='\vartheta(x)' title='\vartheta(x)' class='latex-inline' />, we get <img src='http://math.fontein.de/wp-content/latex/2cd/2cdfaea3f1a2afdee98abd7c4851a881-T-000000-0.png' alt='\displaystyle  \prod_{p &lt; x} p = \exp(x + O(x/\log x)) = \exp((1 + o(1)) x). ' title='\displaystyle  \prod_{p &lt; x} p = \exp(x + O(x/\log x)) = \exp((1 + o(1)) x). ' class='latex-displaystyle' /> Therefore, <img src='http://math.fontein.de/wp-content/latex/3a1/3a1286a9f466025c85a1d6ac202b6e61-T-000000-0.png' alt='\prod_{p &lt; x} p &gt; \exp((1 - \varepsilon) x)' title='\prod_{p &lt; x} p &gt; \exp((1 - \varepsilon) x)' class='latex-inline' /> becomes true for <img src='http://math.fontein.de/wp-content/latex/fae/faecdbf821c90bd77aae8b71c1a9a176-T-000000-0.png' alt='x \to \infty' title='x \to \infty' class='latex-inline' /> for every <img src='http://math.fontein.de/wp-content/latex/f8b/f8b1c5a729a09649c275fca88976d8dd-T-000000-0.png' alt='\varepsilon' title='\varepsilon' class='latex-inline' />. This shows that <img src='http://math.fontein.de/wp-content/latex/778/778cf593735a74e15731060eb44d8565-T-000000-0.png' alt='NP(t) &lt; \frac{\log t}{1 - \varepsilon}' title='NP(t) &lt; \frac{\log t}{1 - \varepsilon}' class='latex-inline' /> eventually holds for <img src='http://math.fontein.de/wp-content/latex/239/2391cf7a07ccaf0c37f4a7e691755e5d-T-000000-0.png' alt='t \to \infty' title='t \to \infty' class='latex-inline' />, yielding <img src='http://math.fontein.de/wp-content/latex/29a/29a8a99f02442a10e4103809aff6a387-T-000000-0.png' alt='NP(t) = O(\log t)' title='NP(t) = O(\log t)' class='latex-inline' /> and, thus, <img src='http://math.fontein.de/wp-content/latex/3c0/3c0cf6061d114909758c3dfe3b7b8231-T-000000-0.png' alt='NP(A) = O(\log \det A)' title='NP(A) = O(\log \det A)' class='latex-inline' />. Using the <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Leibniz_formula_for_determinants">Leibniz formula</a>, <img src='http://math.fontein.de/wp-content/latex/ae0/ae072a38f2ea289a19aab8a84b7c7a5b-T-000000-0.png' alt='\log \det A = O(n \log n + n \log \|A\|_\infty)' title='\log \det A = O(n \log n + n \log \|A\|_\infty)' class='latex-inline' />.</p>
<p>Finally, we can use some linear algebra to bound <img src='http://math.fontein.de/wp-content/latex/b53/b53538b4a5fbe11511aea58317056d99-T-000000-0.png' alt='\|x\|_\infty' title='\|x\|_\infty' class='latex-inline' /> in terms of <img src='http://math.fontein.de/wp-content/latex/7fc/7fc56270e7a70fa81a5935b72eacbe29-T-000000-0.png' alt='A' title='A' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/92e/92eb5ffee6ae2fec3ad71c777531578f-T-000000-0.png' alt='b' title='b' class='latex-inline' />. First note that <img src='http://math.fontein.de/wp-content/latex/68b/68bd1584f4f4800fc4722467c9335e58-T-000000-0.png' alt='A A^\# = (\det A) I_n' title='A A^\# = (\det A) I_n' class='latex-inline' />, where <img src='http://math.fontein.de/wp-content/latex/51e/51e30ff0f3ad7f4a08fb2aea5cbc037b-T-000000-0.png' alt='I_n' title='I_n' class='latex-inline' /> denotes the <img src='http://math.fontein.de/wp-content/latex/50f/50f17e5c11d610b19c0471830dc4dda1-T-000000-0.png' alt='n \times n' title='n \times n' class='latex-inline' /> identity matrix and <img src='http://math.fontein.de/wp-content/latex/2be/2be6608379281d2afee721a4767a365e-T-000000-0.png' alt='A^\#' title='A^\#' class='latex-inline' /> denotes the <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Adjugate_matrix">adjungate matrix</a> of <img src='http://math.fontein.de/wp-content/latex/7fc/7fc56270e7a70fa81a5935b72eacbe29-T-000000-0.png' alt='A' title='A' class='latex-inline' />. As <img src='http://math.fontein.de/wp-content/latex/7d0/7d076465126bdf28bc3627509aeb4b0a-T-000000-0.png' alt='x = A^{-1} b = \frac{1}{\det A} A^\# b' title='x = A^{-1} b = \frac{1}{\det A} A^\# b' class='latex-inline' />, we see that it suffices to bound <img src='http://math.fontein.de/wp-content/latex/3bb/3bb08507e39e71972b1eb0efd42b7975-T-000000-0.png' alt='\|A^\#\|_\infty' title='\|A^\#\|_\infty' class='latex-inline' />. Now the coefficients of <img src='http://math.fontein.de/wp-content/latex/2be/2be6608379281d2afee721a4767a365e-T-000000-0.png' alt='A^\#' title='A^\#' class='latex-inline' /> are determinants of <img src='http://math.fontein.de/wp-content/latex/8e8/8e84dbc9f655fd7cb98e5e213425461e-T-000000-0.png' alt='(n - 1) \times (n - 1)' title='(n - 1) \times (n - 1)' class='latex-inline' /> matrices with coefficients coming from <img src='http://math.fontein.de/wp-content/latex/7fc/7fc56270e7a70fa81a5935b72eacbe29-T-000000-0.png' alt='A' title='A' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/35b/35bc9f6fff395195d4e89fbc30763742-T-000000-0.png' alt='\|A^\#\|_\infty \le (n - 1)! \|A\|_\infty^n' title='\|A^\#\|_\infty \le (n - 1)! \|A\|_\infty^n' class='latex-inline' />. Therefore, <img src='http://math.fontein.de/wp-content/latex/848/848048f562fca1d6d0184f3d4c34f16f-T-000000-0.png' alt='\displaystyle  \log \|x\|_\infty \le n \log n + n \log \|A\|_\infty + \log \|b\|_\infty = O(n \log \|A\|_\infty) ' title='\displaystyle  \log \|x\|_\infty \le n \log n + n \log \|A\|_\infty + \log \|b\|_\infty = O(n \log \|A\|_\infty) ' class='latex-displaystyle' /> when assuming that <img src='http://math.fontein.de/wp-content/latex/374/374f571c50217ba4bb0ea608adb7746a-T-000000-0.png' alt='\log n, \log \|b\|_\infty = O(\log \|A\|_\infty)' title='\log n, \log \|b\|_\infty = O(\log \|A\|_\infty)' class='latex-inline' />.</p>
<p>This can be combined into the following theorem:</p>
<blockquote class='theorem'><div class='theoremtitle'>Theorem.</div> <div class='theoremmain'><br />
Assuming that <img src='http://math.fontein.de/wp-content/latex/5eb/5ebf5511b25d3cfae28feecdefabdcb8-T-000000-0.png' alt='\log n = O(\log \|A\|_\infty)' title='\log n = O(\log \|A\|_\infty)' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/7d3/7d3dac0f1a11d00bf35a9d77b636135a-T-000000-0.png' alt='\log \|b\|_\infty = O(\log \|A\|_\infty)' title='\log \|b\|_\infty = O(\log \|A\|_\infty)' class='latex-inline' />, the above algorithm needs <img src='http://math.fontein.de/wp-content/latex/bf3/bf380a83ec9a75ad90960b3f9ec66362-T-000000-0.png' alt='\displaystyle  O\bigl( n^5 (\log \|A\|_\infty)^3 \bigr) ' title='\displaystyle  O\bigl( n^5 (\log \|A\|_\infty)^3 \bigr) ' class='latex-displaystyle' /> time units to compute the unique solution of <img src='http://math.fontein.de/wp-content/latex/fb1/fb18212e251c8148e7d1b724faa3179a-T-000000-0.png' alt='A x = b' title='A x = b' class='latex-inline' /> using naive arithmetic in <img src='http://math.fontein.de/wp-content/latex/145/1458a437b3c6456f9ebf61d46c9ed13e-T-000000-0.png' alt='\Z' title='\Z' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/0cc/0ccd607d446a0c6142ae68c0ef764e07-T-000000-0.png' alt='\F_p' title='\F_p' class='latex-inline' />, and naive Gaussian elimination to solve linear systems over <img src='http://math.fontein.de/wp-content/latex/0cc/0ccd607d446a0c6142ae68c0ef764e07-T-000000-0.png' alt='\F_p' title='\F_p' class='latex-inline' />. Using fast linear algebra and fast multiplication, we only need <img src='http://math.fontein.de/wp-content/latex/4a9/4a96f517e54c1ae9906b8a84e0f67ca9-T-000000-0.png' alt='\displaystyle  O\bigl( n^{4 + \varepsilon} (\log \|A\|_\infty)^{2 + \varepsilon} \bigr) ' title='\displaystyle  O\bigl( n^{4 + \varepsilon} (\log \|A\|_\infty)^{2 + \varepsilon} \bigr) ' class='latex-displaystyle' /> time units for any <img src='http://math.fontein.de/wp-content/latex/d74/d74ee6015ea3496d30f5596af4ffdeb0-T-000000-0.png' alt='\varepsilon &gt; 0' title='\varepsilon &gt; 0' class='latex-inline' />.<br />
</div><div class='theoremqed'>□</div></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://math.fontein.de/2011/06/17/solving-certain-linear-systems-over-the-integers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Compute the 5-adic Expansion of 1/2; or: Hensel&#8217;s Lemma and (Non-Analytic) Newton Iteration.</title>
		<link>http://math.fontein.de/2010/02/06/how-to-compute-the-5-adic-expansion-of-12-or-hensels-lemma-and-non-analytic-newton-iteration/</link>
		<comments>http://math.fontein.de/2010/02/06/how-to-compute-the-5-adic-expansion-of-12-or-hensels-lemma-and-non-analytic-newton-iteration/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 22:03:24 +0000</pubDate>
		<dc:creator>Felix Fontein</dc:creator>
				<category><![CDATA[Algebra]]></category>
		<category><![CDATA[Number Theory]]></category>
		<category><![CDATA[Hensel's lemma]]></category>
		<category><![CDATA[Newton iteration]]></category>
		<category><![CDATA[p-adic integers]]></category>

		<guid isPermaLink="false">http://math.fontein.de/?p=690</guid>
		<description><![CDATA[In this post, we consider the quest of computing the 5-adic expansion of 1/2. We begin with introducing p-adic integers and numbers, and discussing when certain polynomials with coefficients in the integers have zeroes in the p-adic integers. This question is closely related to Hensel's lemma, which can be proven using an algebraic version of Newton's iteration. We use this to compute approximations of rational numbers in the p-adics, and consider which p-adic numers have an eventually periodic expansion.]]></description>
			<content:encoded><![CDATA[<p>Today, I want to discuss three topics: <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/P-adic_number"><img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />-adic integers and numbers</a>, <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Hensel's_lemma">Hensel&#8217;s Lemma</a> as well as <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Newton's_method">Newton iteration</a>. Three topics which, on the first glance, seem to have nothing in common. But nonetheless, there is a tight relation between them.</p>

<h3>The <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />-adic numbers.</h3>

<p>Let us begin with the <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />-adic numbers. They are a non-achrimedean analogue to the real numbers, whence we want to discuss the real numbers first. There are many different constructions of the real numbers. We pick a certain one, namely construction as a completion of the rational numbers. For that, consider the archimedean distance <img src='http://math.fontein.de/wp-content/latex/2be/2beb5bbe7ec3db95c69e528fbd63b806-T-000000-0.png' alt='d_\infty(x, y) = |x - y|' title='d_\infty(x, y) = |x - y|' class='latex-inline' /> respectively the archimedean absolute value <img src='http://math.fontein.de/wp-content/latex/183/1833d0154412ee505a322f9e254208eb-T-000000-0.png' alt='\displaystyle  |x| = \begin{cases} x &amp; \text{if } x \ge 0, \\ -x &amp; \text{if } x &lt; 0. \end{cases} ' title='\displaystyle  |x| = \begin{cases} x &amp; \text{if } x \ge 0, \\ -x &amp; \text{if } x &lt; 0. \end{cases} ' class='latex-displaystyle' /> Recall that a sequence <img src='http://math.fontein.de/wp-content/latex/331/331647049787e3478e7b6f58b1b8e668-T-000000-0.png' alt='(a_n)_{n\in\N}' title='(a_n)_{n\in\N}' class='latex-inline' /> is said to be <i>convergent</i> with <i>limit</i> <img src='http://math.fontein.de/wp-content/latex/e46/e46cea0dd1c4e307c58be46f156aa3dd-T-000000-0.png' alt='a \in \Q' title='a \in \Q' class='latex-inline' /> if for every <img src='http://math.fontein.de/wp-content/latex/d74/d74ee6015ea3496d30f5596af4ffdeb0-T-000000-0.png' alt='\varepsilon &gt; 0' title='\varepsilon &gt; 0' class='latex-inline' />, there exists some <img src='http://math.fontein.de/wp-content/latex/456/45677b38badf016c65aff3fbf4fa1bad-T-000000-0.png' alt='n_0 \in \N' title='n_0 \in \N' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/bae/bae5645da78585b5a6fbe5cce805be69-T-000000-0.png' alt='d_\infty(a_n, a) &lt; \varepsilon' title='d_\infty(a_n, a) &lt; \varepsilon' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/368/368b4ae0bf4d106cc3cf845e4d60b69d-T-000000-0.png' alt='n \ge n_0' title='n \ge n_0' class='latex-inline' />. Note that every convergent series is a <i>Cauchy sequence</i>, i.e. it satisfies <img src='http://math.fontein.de/wp-content/latex/5e1/5e1ff64b9422087547c5f1396e05ae00-T-000000-0.png' alt='\displaystyle  \forall \varepsilon &gt; 0 \; \exists N \in \N \; \forall n, m \ge N : d_\infty(a_n, a_m) &lt; \varepsilon. ' title='\displaystyle  \forall \varepsilon &gt; 0 \; \exists N \in \N \; \forall n, m \ge N : d_\infty(a_n, a_m) &lt; \varepsilon. ' class='latex-displaystyle' /> But not every Cauchy sequence in <img src='http://math.fontein.de/wp-content/latex/6c0/6c0dbad9f0e6bfffef168814eae154b3-T-000000-0.png' alt='\Q' title='\Q' class='latex-inline' /> converges. One reason to use the real numbers is to add limits of Cauchy sequences, so that every Cauchy sequence (with coefficients in <img src='http://math.fontein.de/wp-content/latex/6c0/6c0dbad9f0e6bfffef168814eae154b3-T-000000-0.png' alt='\Q' title='\Q' class='latex-inline' />) converges. More precisely, consider the set of Cauchy sequences, <img src='http://math.fontein.de/wp-content/latex/0d6/0d61f8370cad1d412f80b84d143e1257-T-000000-0.png' alt='C' title='C' class='latex-inline' />; this is an <img src='http://math.fontein.de/wp-content/latex/6c0/6c0dbad9f0e6bfffef168814eae154b3-T-000000-0.png' alt='\Q' title='\Q' class='latex-inline' />-subspace of <img src='http://math.fontein.de/wp-content/latex/a59/a596b43a8aeee25b3885b811ace710d1-T-000000-0.png' alt='\Q^\N' title='\Q^\N' class='latex-inline' />, the space of all functions <img src='http://math.fontein.de/wp-content/latex/3a2/3a207ab8af05c0a6157363c35f3edf1d-T-000000-0.png' alt='\N \to \Q' title='\N \to \Q' class='latex-inline' /> (i.e. all sequences). Consider the subspace <img src='http://math.fontein.de/wp-content/latex/4a8/4a8a08f09d37b73795649038408b5f33-T-000000-0.png' alt='c' title='c' class='latex-inline' /> of sequences converging to <img src='http://math.fontein.de/wp-content/latex/cc1/cc107a2056cae975186e21adbc6fc34b-T-000000-0.png' alt='0 \in \Q' title='0 \in \Q' class='latex-inline' />; note that <img src='http://math.fontein.de/wp-content/latex/4df/4dff108ff80dd80ca51cf17607c233ee-T-000000-0.png' alt='c \subseteq C' title='c \subseteq C' class='latex-inline' />. Therefore, we can consider the quotient <img src='http://math.fontein.de/wp-content/latex/5c3/5c37c405e5ecd78839c975963572320a-T-000000-0.png' alt='\R := C / c' title='\R := C / c' class='latex-inline' />; <img src='http://math.fontein.de/wp-content/latex/6c0/6c0dbad9f0e6bfffef168814eae154b3-T-000000-0.png' alt='\Q' title='\Q' class='latex-inline' /> embeds via the diagonal embedding, i.e. <img src='http://math.fontein.de/wp-content/latex/5c5/5c59efcfb94dc9b32a9bffc9d14cec9e-T-000000-0.png' alt='q \in \Q' title='q \in \Q' class='latex-inline' /> maps to <img src='http://math.fontein.de/wp-content/latex/530/530ce45c3c6ab2b8def21f43682283bb-T-000000-0.png' alt='(n \mapsto q) + c \in C / c = \R' title='(n \mapsto q) + c \in C / c = \R' class='latex-inline' />. One quickly checks that <img src='http://math.fontein.de/wp-content/latex/7b0/7b09fea775960abce9cd821eb6ee9ef7-T-000000-0.png' alt='\R' title='\R' class='latex-inline' /> is a ring, and that every non-zero element is in fact invertible, i.e. it is a field. Moreover, one quickly checks that the canonical order <img src='http://math.fontein.de/wp-content/latex/2d1/2d1b2a11ff4a816536a8937f2ece2e9c-T-000000-0.png' alt='\le' title='\le' class='latex-inline' /> on <img src='http://math.fontein.de/wp-content/latex/6c0/6c0dbad9f0e6bfffef168814eae154b3-T-000000-0.png' alt='\Q' title='\Q' class='latex-inline' /> extends to <img src='http://math.fontein.de/wp-content/latex/7b0/7b09fea775960abce9cd821eb6ee9ef7-T-000000-0.png' alt='\R' title='\R' class='latex-inline' />; this allows to define <img src='http://math.fontein.de/wp-content/latex/4ee/4ee32fb8b641e106466ce3ebbdfc05ba-T-000000-0.png' alt='d_\infty(x, y)' title='d_\infty(x, y)' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/843/8436b726615d20fcd29719403ac3b448-T-000000-0.png' alt='\abs{x}' title='\abs{x}' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/669/669b3f6a1395c5a2734e376c01b9b9d2-T-000000-0.png' alt='x, y \in \R' title='x, y \in \R' class='latex-inline' /> in the same manner as for rational numbers. Moreover, one sees that all Cauchy sequences in <img src='http://math.fontein.de/wp-content/latex/7b0/7b09fea775960abce9cd821eb6ee9ef7-T-000000-0.png' alt='\R' title='\R' class='latex-inline' /> actually converge.</p>

<p>The <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />-adic numbers can be constructed in a very similar way. Fix a prime number <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />, and condider the <i><img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />-adic valuation</i> on <img src='http://math.fontein.de/wp-content/latex/6c0/6c0dbad9f0e6bfffef168814eae154b3-T-000000-0.png' alt='\Q' title='\Q' class='latex-inline' />, defined by <img src='http://math.fontein.de/wp-content/latex/cc3/cc34a6f25e75b8919c7c5fa89daa547d-T-000000-0.png' alt='\displaystyle  \nu_p : \Q^* \to \Z, \qquad p^t \frac{a}{b} \mapsto t ' title='\displaystyle  \nu_p : \Q^* \to \Z, \qquad p^t \frac{a}{b} \mapsto t ' class='latex-displaystyle' /> if <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' /> are not divisible by <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />. Moreover, set <img src='http://math.fontein.de/wp-content/latex/5a2/5a20423986d0246bd1b6e95d015538b6-T-000000-0.png' alt='\nu_p(0) := \infty' title='\nu_p(0) := \infty' class='latex-inline' />. Then, we can define the <i><img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />-adic absolute value</i> <img src='http://math.fontein.de/wp-content/latex/444/4441d4b1b1f1e1e9c862ef0e2dcc7d6b-T-000000-0.png' alt='\abs{\bullet}_p : \Q \to \Q' title='\abs{\bullet}_p : \Q \to \Q' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/6d7/6d7c3b721719052419f071174e29dc39-T-000000-0.png' alt='z \mapsto p^{-\nu_p(z)}' title='z \mapsto p^{-\nu_p(z)}' class='latex-inline' />; then <img src='http://math.fontein.de/wp-content/latex/f07/f07cb5dfb66b1e377ca87ca31fdf7a07-T-000000-0.png' alt='\abs{z}_p = 0' title='\abs{z}_p = 0' class='latex-inline' /> if, and only if, <img src='http://math.fontein.de/wp-content/latex/ed1/ed14ece1ef6f84c8335eac23432782be-T-000000-0.png' alt='z = 0' title='z = 0' class='latex-inline' />; we have that the <i>strict triangle inequality</i> <img src='http://math.fontein.de/wp-content/latex/14d/14dc2d4df58174f45791e03cc755533c-T-000000-0.png' alt='\displaystyle  \abs{x + y}_p \le \max\{ \abs{x}_p, \abs{y}_p \} \le \abs{x}_p + \abs{y}_p ' title='\displaystyle  \abs{x + y}_p \le \max\{ \abs{x}_p, \abs{y}_p \} \le \abs{x}_p + \abs{y}_p ' class='latex-displaystyle' /> is satisfied; and we have that <img src='http://math.fontein.de/wp-content/latex/f70/f7001e269c4a739a92dea2c4c4dd3cac-T-000000-0.png' alt='\abs{x y}_p = \abs{x}_p \abs{y}_p' title='\abs{x y}_p = \abs{x}_p \abs{y}_p' class='latex-inline' />; here, <img src='http://math.fontein.de/wp-content/latex/fb7/fb717614207c188348a58e6c7da0b896-T-000000-0.png' alt='x,y, z \in \Q' title='x,y, z \in \Q' class='latex-inline' /> are arbitrary. Such absolute values which satisfy the strict triangle inequality <img src='http://math.fontein.de/wp-content/latex/6f4/6f4aa3dbf7252416818d4d9e1fe02f18-T-000000-0.png' alt='\abs{x + y}_p \le \max\{ \abs{x}_p, \abs{y}_p \}' title='\abs{x + y}_p \le \max\{ \abs{x}_p, \abs{y}_p \}' class='latex-inline' /> are called <i>non-archimedean absolute values</i>.</p>

<blockquote class='remark'><div class='remarktitle'>Remark.</div> <div class='remarkmain'>
In fact, one can show that these <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />-adic absolute values together with the above Archimedean absolute value are <i>all</i> absolute values on <img src='http://math.fontein.de/wp-content/latex/6c0/6c0dbad9f0e6bfffef168814eae154b3-T-000000-0.png' alt='\Q' title='\Q' class='latex-inline' /> up to equivalence; here, we say that two absolute values <img src='http://math.fontein.de/wp-content/latex/07f/07feac75f076c2fc3347ce4d2bbcb84d-T-000000-0.png' alt='\abs{\bullet}_i, \abs{\bullet}_j' title='\abs{\bullet}_i, \abs{\bullet}_j' class='latex-inline' /> are equivalent if there exists some number <img src='http://math.fontein.de/wp-content/latex/230/230aab57abce22285fb273b1b2f1b0a4-T-000000-0.png' alt='t &gt; 0' title='t &gt; 0' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/9b6/9b6599ea352ee60ca71aeb91b549b61b-T-000000-0.png' alt='\abs{z}_i = \abs{z}_j^t' title='\abs{z}_i = \abs{z}_j^t' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/679/6791563f8b93143e4da6074372743fe5-T-000000-0.png' alt='z \in \Q' title='z \in \Q' class='latex-inline' />.
</div></blockquote>

<p>Now let us continue with the <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />-adic numbers. We can define Cauchy sequences and the notion of convergence as above, by replacing <img src='http://math.fontein.de/wp-content/latex/4ee/4ee32fb8b641e106466ce3ebbdfc05ba-T-000000-0.png' alt='d_\infty(x, y)' title='d_\infty(x, y)' class='latex-inline' /> by <img src='http://math.fontein.de/wp-content/latex/cca/ccab54a250156041148871099d23e199-T-000000-0.png' alt='d_p(x, y) := \abs{x - y}_p' title='d_p(x, y) := \abs{x - y}_p' class='latex-inline' />. As above, we obtain that <img src='http://math.fontein.de/wp-content/latex/6c0/6c0dbad9f0e6bfffef168814eae154b3-T-000000-0.png' alt='\Q' title='\Q' class='latex-inline' /> has a completion with respect to <img src='http://math.fontein.de/wp-content/latex/f73/f73b91059f62af22bf39989adc1845b8-T-000000-0.png' alt='d_p' title='d_p' class='latex-inline' /> which forms a field, denoted by <img src='http://math.fontein.de/wp-content/latex/36c/36c5b7067d61ab9f88fc85bc197d8f5c-T-000000-0.png' alt='\Q_p' title='\Q_p' class='latex-inline' />. This is the <i>field of <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />-adic numbers</i>. Also, <img src='http://math.fontein.de/wp-content/latex/f73/f73b91059f62af22bf39989adc1845b8-T-000000-0.png' alt='d_p' title='d_p' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/720/720213fb05c2b49299e9aeb57382ea83-T-000000-0.png' alt='\abs{\bullet}_p' title='\abs{\bullet}_p' class='latex-inline' /> extend onto <img src='http://math.fontein.de/wp-content/latex/36c/36c5b7067d61ab9f88fc85bc197d8f5c-T-000000-0.png' alt='\Q_p' title='\Q_p' class='latex-inline' />. As opposed to the case of the real numbers, the image of <img src='http://math.fontein.de/wp-content/latex/f73/f73b91059f62af22bf39989adc1845b8-T-000000-0.png' alt='d_p' title='d_p' class='latex-inline' /> resp. <img src='http://math.fontein.de/wp-content/latex/720/720213fb05c2b49299e9aeb57382ea83-T-000000-0.png' alt='\abs{\bullet}_p' title='\abs{\bullet}_p' class='latex-inline' /> do not change; the reason is that <img src='http://math.fontein.de/wp-content/latex/d30/d30c91433da022d11d8bf25a294d86a7-T-000000-0.png' alt='\nu_p' title='\nu_p' class='latex-inline' /> is a <i>discrete valuation</i>, i.e. attains only integers. Actually, this field <img src='http://math.fontein.de/wp-content/latex/36c/36c5b7067d61ab9f88fc85bc197d8f5c-T-000000-0.png' alt='\Q_p' title='\Q_p' class='latex-inline' /> has several interesting properties, which we want to collect.</p>

<blockquote class='theorem' id='padictheorem'><div class='theoremtitle'>Theorem.</div> <div class='theoremmain'>
<ol>
<li>For every <img src='http://math.fontein.de/wp-content/latex/fc1/fc186489b36791ec52b6cc712f575811-T-000000-0.png' alt='x, y \in \Q_p' title='x, y \in \Q_p' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/4f5/4f5e405fccbf4e003e47920ad9ec751f-T-000000-0.png' alt='\abs{x + y}_p \le \max\{ \abs{x}_p, \abs{y}_p \} \le \abs{x}_p + \abs{y}_p' title='\abs{x + y}_p \le \max\{ \abs{x}_p, \abs{y}_p \} \le \abs{x}_p + \abs{y}_p' class='latex-inline' />.</li>
<li>The set <img src='http://math.fontein.de/wp-content/latex/8a2/8a2bd157288a12c13ec0cee2af0cc1e6-T-000000-0.png' alt='\{ x \in \Q_p \mid \abs{x}_p \le 1 \}' title='\{ x \in \Q_p \mid \abs{x}_p \le 1 \}' class='latex-inline' /> is a subring of <img src='http://math.fontein.de/wp-content/latex/36c/36c5b7067d61ab9f88fc85bc197d8f5c-T-000000-0.png' alt='\Q_p' title='\Q_p' class='latex-inline' />; denote this subring by <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' />.</li>
<li>For any <img src='http://math.fontein.de/wp-content/latex/18d/18dd98faf096da5fc16e5778793e87bf-T-000000-0.png' alt='B \in \R_{&gt;0}' title='B \in \R_{&gt;0}' class='latex-inline' />, we have that <img src='http://math.fontein.de/wp-content/latex/5b8/5b888e6271d6340bec19d8947b237f39-T-000000-0.png' alt='\{ x \in \Q_p \mid \abs{x} \le B \}' title='\{ x \in \Q_p \mid \abs{x} \le B \}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/68c/68c00a2dc130183182678e95310f1ff4-T-000000-0.png' alt='\{ x \in \Q_p \mid \abs{x} &lt; B \}' title='\{ x \in \Q_p \mid \abs{x} &lt; B \}' class='latex-inline' /> are both open and closed in <img src='http://math.fontein.de/wp-content/latex/36c/36c5b7067d61ab9f88fc85bc197d8f5c-T-000000-0.png' alt='\Q_p' title='\Q_p' class='latex-inline' />. In particular, <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' /> is both open and closed.</li>
<li>We have that <img src='http://math.fontein.de/wp-content/latex/3e6/3e664d84f7dc203a82328a02204afafd-T-000000-0.png' alt='\displaystyle  \Z_p = \{ z \mid \exists (z_n)_n \text{ sequence in } \Z : \lim z_n = z \}. ' title='\displaystyle  \Z_p = \{ z \mid \exists (z_n)_n \text{ sequence in } \Z : \lim z_n = z \}. ' class='latex-displaystyle' /></li>
<li>The ring <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' /> is local with maximal ideal <img src='http://math.fontein.de/wp-content/latex/8e6/8e676b1d86459a399ab28b4af126b3b7-T-000000-0.png' alt='\frakm_p := \{ x \in \Q_p \mid \abs{x}_p &lt; 1 \}' title='\frakm_p := \{ x \in \Q_p \mid \abs{x}_p &lt; 1 \}' class='latex-inline' />, and <img src='http://math.fontein.de/wp-content/latex/114/114593790a9c3e9c3e07a74c497a8158-T-000000-0.png' alt='\Z_p / \frakm_p \cong \Z/p\Z' title='\Z_p / \frakm_p \cong \Z/p\Z' class='latex-inline' />. In fact, <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' /> is a <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Discrete_valuation_ring">discrete valuation ring</a>.</li>
<li>The series <img src='http://math.fontein.de/wp-content/latex/519/5191e801a4a97855667c4c8649cd4710-T-000000-0.png' alt='\sum_{n=0}^\infty a_n' title='\sum_{n=0}^\infty a_n' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/128/128c365445a7e3b85e20a7fcfa8c07b8-T-000000-0.png' alt='a_n \in \Q_p' title='a_n \in \Q_p' class='latex-inline' /> converges if, and only if, <img src='http://math.fontein.de/wp-content/latex/f54/f547256dc7224beacac5186880b4bf8d-T-000000-0.png' alt='\lim_{n\to\infty} a_n = 0' title='\lim_{n\to\infty} a_n = 0' class='latex-inline' />.</li>
<li>Every non-zero element <img src='http://math.fontein.de/wp-content/latex/346/346caa0f8bfa6800a6353eedac3b0e47-T-000000-0.png' alt='z \in \Q_p^*' title='z \in \Q_p^*' class='latex-inline' /> can be written uniquely in the form <img src='http://math.fontein.de/wp-content/latex/ab9/ab9cb8965e9c15f335b21e056ff42d7a-T-000000-0.png' alt='z = \sum_{n=k}^\infty a_n p^n' title='z = \sum_{n=k}^\infty a_n p^n' class='latex-inline' />, where <img src='http://math.fontein.de/wp-content/latex/637/6371a7823df1fb5590100cc30935942b-T-000000-0.png' alt='a_n \in \{ 0, \dots, p - 1 \}' title='a_n \in \{ 0, \dots, p - 1 \}' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/1ea/1ea9fb69f4c8fa118d07639b663541c0-T-000000-0.png' alt='k = \nu_p(z)' title='k = \nu_p(z)' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/43a/43afbb3421bd37915805c3a9ef2923be-T-000000-0.png' alt='a_k \neq 0' title='a_k \neq 0' class='latex-inline' />.</li>
<li>For every <img src='http://math.fontein.de/wp-content/latex/72e/72e07933327508be8d2ca29128a878d7-T-000000-0.png' alt='n \in \N' title='n \in \N' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/40d/40d4d9806599cd810109bd1e2a59110b-T-000000-0.png' alt='\Z_p / \frakm_p^n \cong \Z/p^n\Z' title='\Z_p / \frakm_p^n \cong \Z/p^n\Z' class='latex-inline' />.</li>
<li>If <img src='http://math.fontein.de/wp-content/latex/36c/36c5b7067d61ab9f88fc85bc197d8f5c-T-000000-0.png' alt='\Q_p' title='\Q_p' class='latex-inline' /> is equipped with the topology induced by the metric <img src='http://math.fontein.de/wp-content/latex/f73/f73b91059f62af22bf39989adc1845b8-T-000000-0.png' alt='d_p' title='d_p' class='latex-inline' />, then <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' /> is the maximal compact subring of <img src='http://math.fontein.de/wp-content/latex/36c/36c5b7067d61ab9f88fc85bc197d8f5c-T-000000-0.png' alt='\Q_p' title='\Q_p' class='latex-inline' />.</li>
</ol>
</div></blockquote>

<blockquote class='proof'><div class='prooftitle'>Proof.</div> <div class='proofmain'>
<ol>
<li>Let <img src='http://math.fontein.de/wp-content/latex/9ba/9bace90e9fee3007e06d68e13dbc6966-T-000000-0.png' alt='(x_n)_n' title='(x_n)_n' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/2a8/2a8fdd60191518fef0e3a684664df2a5-T-000000-0.png' alt='(y_n)_n' title='(y_n)_n' class='latex-inline' /> sequences in <img src='http://math.fontein.de/wp-content/latex/145/1458a437b3c6456f9ebf61d46c9ed13e-T-000000-0.png' alt='\Z' title='\Z' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/87f/87f9f1e17a0cd7097e2226449bae77c2-T-000000-0.png' alt='\lim x_n = x' title='\lim x_n = x' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/4b4/4b48c5e90caf66b0fa556af741a67c3c-T-000000-0.png' alt='\lim y_n = y' title='\lim y_n = y' class='latex-inline' />. Then, for every <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/632/632558f072d89ab395c9c91b6629cb6d-T-000000-0.png' alt='\max\{ \abs{x_n}_p, \abs{y_n}_p \} - \abs{x_n + y_n}_p \ge 0' title='\max\{ \abs{x_n}_p, \abs{y_n}_p \} - \abs{x_n + y_n}_p \ge 0' class='latex-inline' />. Now <img src='http://math.fontein.de/wp-content/latex/36c/36c5b7067d61ab9f88fc85bc197d8f5c-T-000000-0.png' alt='\Q_p' title='\Q_p' class='latex-inline' /> is a topological ring, and <img src='http://math.fontein.de/wp-content/latex/720/720213fb05c2b49299e9aeb57382ea83-T-000000-0.png' alt='\abs{\bullet}_p' title='\abs{\bullet}_p' class='latex-inline' /> is continuous, whence the result follows from applying <img src='http://math.fontein.de/wp-content/latex/461/461aa9d6c2d3ce33037fe9c448e98003-T-000000-0.png' alt='\lim_{n\to\infty}' title='\lim_{n\to\infty}' class='latex-inline' />.</li>
<li>From (a), we see that this set is closed under addition. That it is closed under multiplication is clear, and <img src='http://math.fontein.de/wp-content/latex/b67/b671224def328bb1af8d4a92b54bbf51-T-000000-0.png' alt='0, 1' title='0, 1' class='latex-inline' /> are contained in it as well.</li>
<li>Write <img src='http://math.fontein.de/wp-content/latex/052/0520904a3d3d61f3394ec45fa8008dcb-T-000000-0.png' alt='B = p^{-t + \varepsilon}' title='B = p^{-t + \varepsilon}' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/2aa/2aa22b37f6c59fd5a2fcf0fa0febd933-T-000000-0.png' alt='t \in \Z' title='t \in \Z' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/f04/f04f2ea797cc1cd55143e4f05117f956-T-000000-0.png' alt='0 \le \varepsilon &lt; 1' title='0 \le \varepsilon &lt; 1' class='latex-inline' />. Now <img src='http://math.fontein.de/wp-content/latex/976/976caacaf161080f82b5e380dc974b2f-T-000000-0.png' alt='\abs{x}_p \le B \Leftrightarrow \abs{x}_p \le p^{-t} \Leftrightarrow \abs{x}_p &lt; p^{-t + 1}' title='\abs{x}_p \le B \Leftrightarrow \abs{x}_p \le p^{-t} \Leftrightarrow \abs{x}_p &lt; p^{-t + 1}' class='latex-inline' />, and <img src='http://math.fontein.de/wp-content/latex/59d/59d3e914c9aa0f1f1686e67c3925d661-T-000000-0.png' alt='\displaystyle  \abs{x}_p &lt; B \Longleftrightarrow \begin{cases} \abs{x}_p \le B &amp; \text{if } \varepsilon &gt; 0, \\ \abs{x} \le p^{-t - 1} &amp; \text{if } \varepsilon = 0. \end{cases} ' title='\displaystyle  \abs{x}_p &lt; B \Longleftrightarrow \begin{cases} \abs{x}_p \le B &amp; \text{if } \varepsilon &gt; 0, \\ \abs{x} \le p^{-t - 1} &amp; \text{if } \varepsilon = 0. \end{cases} ' class='latex-displaystyle' /></li>
<li>Let <img src='http://math.fontein.de/wp-content/latex/911/911b45f62178a42a16d173a746266a9b-T-000000-0.png' alt='(z_n)_n' title='(z_n)_n' class='latex-inline' /> be a sequence of elements in <img src='http://math.fontein.de/wp-content/latex/145/1458a437b3c6456f9ebf61d46c9ed13e-T-000000-0.png' alt='\Z' title='\Z' class='latex-inline' /> which converges with respect to <img src='http://math.fontein.de/wp-content/latex/f73/f73b91059f62af22bf39989adc1845b8-T-000000-0.png' alt='d_p' title='d_p' class='latex-inline' />. Then <img src='http://math.fontein.de/wp-content/latex/c97/c97ab7d007a5f358a97f2ca0057d18f4-T-000000-0.png' alt='\abs{z_n}_p \le 1' title='\abs{z_n}_p \le 1' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/72e/72e07933327508be8d2ca29128a878d7-T-000000-0.png' alt='n \in \N' title='n \in \N' class='latex-inline' /> as <img src='http://math.fontein.de/wp-content/latex/75b/75b3b87b0c2bf8378d5238edf4c92402-T-000000-0.png' alt='\nu_p(z_n) \ge 0' title='\nu_p(z_n) \ge 0' class='latex-inline' />; as <img src='http://math.fontein.de/wp-content/latex/720/720213fb05c2b49299e9aeb57382ea83-T-000000-0.png' alt='\abs{\bullet}_p' title='\abs{\bullet}_p' class='latex-inline' /> is continuous, <img src='http://math.fontein.de/wp-content/latex/311/3114b7dc65fe64919971e97857538c79-T-000000-0.png' alt='\abs{\lim z_n}_p = \lim \abs{z_n}_p \le 1' title='\abs{\lim z_n}_p = \lim \abs{z_n}_p \le 1' class='latex-inline' />.<br />
Conversely, let <img src='http://math.fontein.de/wp-content/latex/e0d/e0d0bcb7f2a74439b442cbb61aff7dc7-T-000000-0.png' alt='z \in \Z_p' title='z \in \Z_p' class='latex-inline' /> and let <img src='http://math.fontein.de/wp-content/latex/911/911b45f62178a42a16d173a746266a9b-T-000000-0.png' alt='(z_n)_n' title='(z_n)_n' class='latex-inline' /> be a sequence of elements in <img src='http://math.fontein.de/wp-content/latex/6c0/6c0dbad9f0e6bfffef168814eae154b3-T-000000-0.png' alt='\Q' title='\Q' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/567/567d22d54a68dcd8e630694a038fd154-T-000000-0.png' alt='\lim z_n = z' title='\lim z_n = z' class='latex-inline' />. Now <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' /> is open; therefore, there exists some <img src='http://math.fontein.de/wp-content/latex/9f2/9f29abde1bb7db037da9d05ea02015db-T-000000-0.png' alt='n_0' title='n_0' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/c97/c97ab7d007a5f358a97f2ca0057d18f4-T-000000-0.png' alt='\abs{z_n}_p \le 1' title='\abs{z_n}_p \le 1' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/368/368b4ae0bf4d106cc3cf845e4d60b69d-T-000000-0.png' alt='n \ge n_0' title='n \ge n_0' class='latex-inline' />. Without loss of generality, we can assume that <img src='http://math.fontein.de/wp-content/latex/486/4868a005653e44cbe72a9b6f828db798-T-000000-0.png' alt='n_0 = 0' title='n_0 = 0' class='latex-inline' />, i.e. all <img src='http://math.fontein.de/wp-content/latex/059/059e75340a274fbea9a34c246670e73f-T-000000-0.png' alt='z_n' title='z_n' class='latex-inline' /> lie in <img src='http://math.fontein.de/wp-content/latex/804/804a7373fcfbe85bbd7ca03f91497775-T-000000-0.png' alt='\Z_p \cap \Q' title='\Z_p \cap \Q' class='latex-inline' />. Moreover, we can assume that <img src='http://math.fontein.de/wp-content/latex/946/94663c6f2eba5b8154ebdfeb4c74243e-T-000000-0.png' alt='z_n \neq 0' title='z_n \neq 0' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' />. We want to construct a sequence <img src='http://math.fontein.de/wp-content/latex/fc4/fc4cb246fb087abf0f810738a4096e1c-T-000000-0.png' alt='(a_n)_n' title='(a_n)_n' class='latex-inline' /> in <img src='http://math.fontein.de/wp-content/latex/145/1458a437b3c6456f9ebf61d46c9ed13e-T-000000-0.png' alt='\Z' title='\Z' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/7bc/7bc332191c463c111b9e38eb5f85e648-T-000000-0.png' alt='\lim a_n = \lim b_n' title='\lim a_n = \lim b_n' class='latex-inline' />. For that, write <img src='http://math.fontein.de/wp-content/latex/2e5/2e52bf319bfd6808dfe8dccb6d83f692-T-000000-0.png' alt='z_n = \frac{x_n}{y_n}' title='z_n = \frac{x_n}{y_n}' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/3c5/3c5cc8693b00929d842f6505193b2ce0-T-000000-0.png' alt='x_n, y_n \in \Z' title='x_n, y_n \in \Z' class='latex-inline' />, where <img src='http://math.fontein.de/wp-content/latex/0f7/0f7c93358031a9ffbee7bbe4c380cfbf-T-000000-0.png' alt='y_n' title='y_n' class='latex-inline' /> is not divisible by <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />. Let <img src='http://math.fontein.de/wp-content/latex/a11/a11448a5d00e36c510c0b855e003c7e5-T-000000-0.png' alt='\tilde{y}_n \in \{ 0, \dots, p^n - 1 \}' title='\tilde{y}_n \in \{ 0, \dots, p^n - 1 \}' class='latex-inline' /> be such that <img src='http://math.fontein.de/wp-content/latex/984/98470c03fb09ef38f7583bb1fb0e2790-T-000000-0.png' alt='y_n \tilde{y}_n \equiv 1 \pmod{p^n}' title='y_n \tilde{y}_n \equiv 1 \pmod{p^n}' class='latex-inline' /> and set <img src='http://math.fontein.de/wp-content/latex/c96/c96052ffab69cbd6fe0a247ac99f15cf-T-000000-0.png' alt='b_n := x_n \tilde{y}_n' title='b_n := x_n \tilde{y}_n' class='latex-inline' />; moreover, write <img src='http://math.fontein.de/wp-content/latex/347/3477ea096f57c0680a35f90bc22f276c-T-000000-0.png' alt='y_n \tilde{y}_n = 1 + c_n p^n' title='y_n \tilde{y}_n = 1 + c_n p^n' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/c00/c005b16cbdc0b63d3fb63203f9681026-T-000000-0.png' alt='c_n \in \Z' title='c_n \in \Z' class='latex-inline' />. Then <img src='http://math.fontein.de/wp-content/latex/dce/dce8cdcde884b54bd1b93fe4c4975eec-T-000000-0.png' alt='\displaystyle  b_n - a_n = b_n (1 - \tilde{y}_n y_n) = -b_n c_n p^n, ' title='\displaystyle  b_n - a_n = b_n (1 - \tilde{y}_n y_n) = -b_n c_n p^n, ' class='latex-displaystyle' /> whence <img src='' alt='Formula does not parse: \bas{b_n - a_n} \le p^{-n}' title='Formula does not parse: \bas{b_n - a_n} \le p^{-n}' class='latex-inline' />. Therefore, one obtains that <img src='http://math.fontein.de/wp-content/latex/f18/f1859a3a211cbf1d0ca9d1261b9a9562-T-000000-0.png' alt='\lim a_n = \lim b_n = z' title='\lim a_n = \lim b_n = z' class='latex-inline' />.</li>
<li>One quickly checks using 1. that <img src='http://math.fontein.de/wp-content/latex/105/105c81db991ac03a2b785da7adc79753-T-000000-0.png' alt='\frakm_p' title='\frakm_p' class='latex-inline' /> is closed under addition. It is clearly also closed under multiplication by elements of <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' />, and contains 0; therefore, it is an ideal. Now consider the map <img src='http://math.fontein.de/wp-content/latex/d62/d622ca4c3d1eb2ddc6fbd54a288fb8e8-T-000000-0.png' alt='\Z \to \Z_p / \frakm_p' title='\Z \to \Z_p / \frakm_p' class='latex-inline' />; clearly, <img src='http://math.fontein.de/wp-content/latex/bf4/bf47134062f65c3eebd549b1e9e9c509-T-000000-0.png' alt='p \in \frakm_p' title='p \in \frakm_p' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/f26/f264987aac6253467ff62a0eb8069502-T-000000-0.png' alt='p \Z' title='p \Z' class='latex-inline' /> is contained in the kernel of this map. But <img src='http://math.fontein.de/wp-content/latex/c4c/c4ca4238a0b923820dcc509a6f75849b-T-000000-0.png' alt='1' title='1' class='latex-inline' /> is not contained in the kernel, as <img src='http://math.fontein.de/wp-content/latex/693/693108a5e703615f78a753931da100d0-T-000000-0.png' alt='1 \not\in \frakm_p' title='1 \not\in \frakm_p' class='latex-inline' />; therefore, <img src='http://math.fontein.de/wp-content/latex/fb7/fb7849e727add8b0bb11611d5b7c68f9-T-000000-0.png' alt='\Z_p / \frakm_p' title='\Z_p / \frakm_p' class='latex-inline' /> contains a copy of <img src='http://math.fontein.de/wp-content/latex/5d2/5d2bfb2ad73a6ee844ff82a75935bcb5-T-000000-0.png' alt='\Z/p\Z' title='\Z/p\Z' class='latex-inline' />. To see that this is everything, let <img src='http://math.fontein.de/wp-content/latex/fc1/fc119b5de8fc2c770ca7205407100c39-T-000000-0.png' alt='x + \frakm_p \in \Z_p / \frakm_p' title='x + \frakm_p \in \Z_p / \frakm_p' class='latex-inline' />; let <img src='http://math.fontein.de/wp-content/latex/9ba/9bace90e9fee3007e06d68e13dbc6966-T-000000-0.png' alt='(x_n)_n' title='(x_n)_n' class='latex-inline' /> be a sequence in <img src='http://math.fontein.de/wp-content/latex/145/1458a437b3c6456f9ebf61d46c9ed13e-T-000000-0.png' alt='\Z' title='\Z' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/87f/87f9f1e17a0cd7097e2226449bae77c2-T-000000-0.png' alt='\lim x_n = x' title='\lim x_n = x' class='latex-inline' />. Let <img src='http://math.fontein.de/wp-content/latex/9f2/9f29abde1bb7db037da9d05ea02015db-T-000000-0.png' alt='n_0' title='n_0' class='latex-inline' /> be such that for all <img src='http://math.fontein.de/wp-content/latex/368/368b4ae0bf4d106cc3cf845e4d60b69d-T-000000-0.png' alt='n \ge n_0' title='n \ge n_0' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/e37/e37ed0e23c0119d78840e6ad4e1a0bf6-T-000000-0.png' alt='d_p(x_n, x) &lt; 1' title='d_p(x_n, x) &lt; 1' class='latex-inline' />; then <img src='http://math.fontein.de/wp-content/latex/d85/d854201d3d6c1f4c9fe46c8b1a996df8-T-000000-0.png' alt='x_n - x \in \frakm_p' title='x_n - x \in \frakm_p' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/0cd/0cd02cbac58960a12051b55f38c9af1e-T-000000-0.png' alt='x + \frakm_p = x_n + \frakm_p' title='x + \frakm_p = x_n + \frakm_p' class='latex-inline' />. But <img src='http://math.fontein.de/wp-content/latex/ae4/ae44a9150ff0a87120a1ef42ad703105-T-000000-0.png' alt='x_n + \frakm_p' title='x_n + \frakm_p' class='latex-inline' /> is contained in the copy of <img src='http://math.fontein.de/wp-content/latex/5d2/5d2bfb2ad73a6ee844ff82a75935bcb5-T-000000-0.png' alt='\Z/p\Z' title='\Z/p\Z' class='latex-inline' />.</li>
<li>Clearly, if the series converges, we must have that <img src='http://math.fontein.de/wp-content/latex/80a/80a8c31529e02549454b7665926716a5-T-000000-0.png' alt='\lim a_n = 0' title='\lim a_n = 0' class='latex-inline' />.<br />
Now, conversely, assume that <img src='http://math.fontein.de/wp-content/latex/80a/80a8c31529e02549454b7665926716a5-T-000000-0.png' alt='\lim a_n = 0' title='\lim a_n = 0' class='latex-inline' />. We show that <img src='http://math.fontein.de/wp-content/latex/da6/da6238b4c1ae1016b5c58b6354ceec3a-T-000000-0.png' alt='(b_n)_n' title='(b_n)_n' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/a8e/a8ef083c6bb21ea85c02e8e10f6c2fdd-T-000000-0.png' alt='b_n = \sum_{k=0}^n a_k' title='b_n = \sum_{k=0}^n a_k' class='latex-inline' /> is a Cauchy series. For that, let <img src='http://math.fontein.de/wp-content/latex/d74/d74ee6015ea3496d30f5596af4ffdeb0-T-000000-0.png' alt='\varepsilon &gt; 0' title='\varepsilon &gt; 0' class='latex-inline' /> be given. Choose <img src='http://math.fontein.de/wp-content/latex/8d9/8d9c307cb7f3c4a32822a51922d1ceaa-T-000000-0.png' alt='N' title='N' class='latex-inline' /> such that for all <img src='http://math.fontein.de/wp-content/latex/bb4/bb453b8f91c47deeaf9bd5d7849872ec-T-000000-0.png' alt='n \ge N' title='n \ge N' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/784/78479c0ac46d8885d358dc6f30144b16-T-000000-0.png' alt='\abs{a_n}_p &lt; \varepsilon' title='\abs{a_n}_p &lt; \varepsilon' class='latex-inline' />. Now, if <img src='http://math.fontein.de/wp-content/latex/3ee/3ee8c9cbfad10ed97b0c99dff35c7c21-T-000000-0.png' alt='n, m \ge N' title='n, m \ge N' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/13e/13ed9b2acb6793833a08e453d39dff14-T-000000-0.png' alt='n \ge m' title='n \ge m' class='latex-inline' />, we have that <img src='http://math.fontein.de/wp-content/latex/568/568041505c75de5d89b6c17da2fcefaf-T-000000-0.png' alt='\displaystyle  \abs{b_n - b_m}_p = \abs{\sum_{k=m}^n a_k}_p \le \max\{ \abs{a_m}_p, \dots, \abs{a_n}_p \} &lt; \varepsilon ' title='\displaystyle  \abs{b_n - b_m}_p = \abs{\sum_{k=m}^n a_k}_p \le \max\{ \abs{a_m}_p, \dots, \abs{a_n}_p \} &lt; \varepsilon ' class='latex-displaystyle' /> by 1., what we had to show.</li>
<li>First, for any choice of the <img src='http://math.fontein.de/wp-content/latex/8ce/8ce4b16b22b58894aa86c421e8759df3-T-000000-0.png' alt='k' title='k' class='latex-inline' />&#8216;s and <img src='http://math.fontein.de/wp-content/latex/825/825b3fd5bafbc46b9a560ea9f16b21dd-T-000000-0.png' alt='a_n' title='a_n' class='latex-inline' />&#8216;s, we obtain an element <img src='http://math.fontein.de/wp-content/latex/ab9/ab9cb8965e9c15f335b21e056ff42d7a-T-000000-0.png' alt='z = \sum_{n=k}^\infty a_n p^n' title='z = \sum_{n=k}^\infty a_n p^n' class='latex-inline' /> in <img src='http://math.fontein.de/wp-content/latex/36c/36c5b7067d61ab9f88fc85bc197d8f5c-T-000000-0.png' alt='\Q_p' title='\Q_p' class='latex-inline' />. Now assume that <img src='http://math.fontein.de/wp-content/latex/088/0886c21ae6281d50d891e33f997f1740-T-000000-0.png' alt='\sum_{n=k}^\infty a_n p^n = \sum_{n=k}^\infty b_n p^n' title='\sum_{n=k}^\infty a_n p^n = \sum_{n=k}^\infty b_n p^n' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/1e0/1e081345a465aa5e9a8e7f84f1148e8e-T-000000-0.png' alt='a_n, b_n \in \{ 0, \dots, p - 1 \}' title='a_n, b_n \in \{ 0, \dots, p - 1 \}' class='latex-inline' />. Assume that there exists some <img src='http://math.fontein.de/wp-content/latex/e35/e358efa489f58062f10dd7316b65649e-T-000000-0.png' alt='t' title='t' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/7c1/7c177c60ac5948f22cadca0b9440d69b-T-000000-0.png' alt='a_t \neq b_t' title='a_t \neq b_t' class='latex-inline' />, and further assume that <img src='http://math.fontein.de/wp-content/latex/e35/e358efa489f58062f10dd7316b65649e-T-000000-0.png' alt='t' title='t' class='latex-inline' /> is chosen to be minimal under this condition, i.e. <img src='http://math.fontein.de/wp-content/latex/9a5/9a5afe143aa50366f3717fccc9ea6fa0-T-000000-0.png' alt='a_n = b_n' title='a_n = b_n' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/845/84521690a748ea5ae453cd9a84ce873f-T-000000-0.png' alt='n &lt; t' title='n &lt; t' class='latex-inline' />. Then <img src='http://math.fontein.de/wp-content/latex/cc6/cc615f65c4a4e889b46e1057612b6271-T-000000-0.png' alt='0 = \sum_{n=t}^\infty (a_n - b_n) p^n' title='0 = \sum_{n=t}^\infty (a_n - b_n) p^n' class='latex-inline' />. Multiplying with <img src='http://math.fontein.de/wp-content/latex/962/96238170216e31e8c73eb11abd662420-T-000000-0.png' alt='p^{-t}' title='p^{-t}' class='latex-inline' /> gives <img src='http://math.fontein.de/wp-content/latex/97f/97fa99d9ac6c88bc22a74e9feff32d62-T-000000-0.png' alt='0 = z := \sum_{n=0}^\infty (a_{n+t} - b_{n+t}) p^n' title='0 = z := \sum_{n=0}^\infty (a_{n+t} - b_{n+t}) p^n' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/5e0/5e05122f04068f5df568d7b5833f70c5-T-000000-0.png' alt='a_t - b_t \in \{ -p + 1, \dots, -2, -1, 1, 2, \dots, p - 1 \}' title='a_t - b_t \in \{ -p + 1, \dots, -2, -1, 1, 2, \dots, p - 1 \}' class='latex-inline' />. Moreover, <img src='http://math.fontein.de/wp-content/latex/e0d/e0d0bcb7f2a74439b442cbb61aff7dc7-T-000000-0.png' alt='z \in \Z_p' title='z \in \Z_p' class='latex-inline' />, and <img src='http://math.fontein.de/wp-content/latex/ee5/ee5f9495196742596a7c7a4c78dd7503-T-000000-0.png' alt='z + \frakm_p = (a_t - b_t) + \frakm_p' title='z + \frakm_p = (a_t - b_t) + \frakm_p' class='latex-inline' />. But now <img src='http://math.fontein.de/wp-content/latex/675/67507da54df45c763aea2aae88f12711-T-000000-0.png' alt='a_t - b_t \not\in \frakm_p' title='a_t - b_t \not\in \frakm_p' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/f8b/f8b7fc0c11996d5b14b61c21c6fb1916-T-000000-0.png' alt='z + \frakm_p \neq 0 + \frakm_p' title='z + \frakm_p \neq 0 + \frakm_p' class='latex-inline' />. But by construction <img src='http://math.fontein.de/wp-content/latex/ed1/ed14ece1ef6f84c8335eac23432782be-T-000000-0.png' alt='z = 0' title='z = 0' class='latex-inline' />, a contradiction. Therefore, the representations <img src='http://math.fontein.de/wp-content/latex/e3b/e3b3d175382d91ac3164283110f52fb0-T-000000-0.png' alt='\sum_{n=k}^\infty a_n p^n' title='\sum_{n=k}^\infty a_n p^n' class='latex-inline' /> are unique.<br />
We have to show that every element in <img src='http://math.fontein.de/wp-content/latex/36c/36c5b7067d61ab9f88fc85bc197d8f5c-T-000000-0.png' alt='\Q_p' title='\Q_p' class='latex-inline' /> can be written in this way. For that, let <img src='http://math.fontein.de/wp-content/latex/346/346caa0f8bfa6800a6353eedac3b0e47-T-000000-0.png' alt='z \in \Q_p^*' title='z \in \Q_p^*' class='latex-inline' />; now <img src='http://math.fontein.de/wp-content/latex/054/0548175f07523b1776243ae5db392afb-T-000000-0.png' alt='z&#039; := z p^{\nu_p(z)}' title='z&#039; := z p^{\nu_p(z)}' class='latex-inline' /> satisfies <img src='http://math.fontein.de/wp-content/latex/99a/99a397803713e4e08d1aefabe7177cc0-T-000000-0.png' alt='\abs{z&#039;}_p = 1' title='\abs{z&#039;}_p = 1' class='latex-inline' />; in particular, <img src='http://math.fontein.de/wp-content/latex/74a/74a23f35d7ca8ed12892504b0b704ff2-T-000000-0.png' alt='z&#039; \in \Z_p \setminus \{ 0 \}' title='z&#039; \in \Z_p \setminus \{ 0 \}' class='latex-inline' />. We have to show that we can write <img src='http://math.fontein.de/wp-content/latex/ca4/ca412dbf4e28f977b85db5acc4cfa32c-T-000000-0.png' alt='z&#039; = \sum_{n=0}^\infty a_n p^n' title='z&#039; = \sum_{n=0}^\infty a_n p^n' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/9e5/9e56b89e01da91d295975397fb03d52b-T-000000-0.png' alt='a_0 \neq 0' title='a_0 \neq 0' class='latex-inline' />. For that, let <img src='http://math.fontein.de/wp-content/latex/911/911b45f62178a42a16d173a746266a9b-T-000000-0.png' alt='(z_n)_n' title='(z_n)_n' class='latex-inline' /> be a sequence in <img src='http://math.fontein.de/wp-content/latex/145/1458a437b3c6456f9ebf61d46c9ed13e-T-000000-0.png' alt='\Z' title='\Z' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/567/567d22d54a68dcd8e630694a038fd154-T-000000-0.png' alt='\lim z_n = z' title='\lim z_n = z' class='latex-inline' />; without loss of generality, we can assume that <img src='http://math.fontein.de/wp-content/latex/d75/d75ab91f94c256f278660aa86ef2825b-T-000000-0.png' alt='\abs{z - z_n}_p \le p^{-n-1}' title='\abs{z - z_n}_p \le p^{-n-1}' class='latex-inline' /> for every <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' />. Then we also have <img src='http://math.fontein.de/wp-content/latex/bd0/bd0532d27e6924913e165fcbe4a74df8-T-000000-0.png' alt='\abs{z_n - z_m}_p \le p^{-n-1}' title='\abs{z_n - z_m}_p \le p^{-n-1}' class='latex-inline' /> for every <img src='http://math.fontein.de/wp-content/latex/985/9856f83106c82c34de1010bf61297500-T-000000-0.png' alt='m \ge n' title='m \ge n' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/afb/afbbfff423b59597e3cb2496a24b6938-T-000000-0.png' alt='z_n \equiv z_m \pmod{p^{n+1}}' title='z_n \equiv z_m \pmod{p^{n+1}}' class='latex-inline' />. Therefore, we can choose <img src='http://math.fontein.de/wp-content/latex/637/6371a7823df1fb5590100cc30935942b-T-000000-0.png' alt='a_n \in \{ 0, \dots, p - 1 \}' title='a_n \in \{ 0, \dots, p - 1 \}' class='latex-inline' /> inductively such that <img src='http://math.fontein.de/wp-content/latex/88f/88f43a02310b577ab38a70a74a5cf92a-T-000000-0.png' alt='\sum_{t=0}^n a_t p^t \equiv z_n \pmod{p^{n+1}}' title='\sum_{t=0}^n a_t p^t \equiv z_n \pmod{p^{n+1}}' class='latex-inline' />, and we obtain that <img src='http://math.fontein.de/wp-content/latex/e49/e49c40dde0370ae6686303c6b4aa13b9-T-000000-0.png' alt='z = \lim z_n = \lim \sum_{t=0}^n a_t p^t = \sum_{n=0}^\infty a_n p^n' title='z = \lim z_n = \lim \sum_{t=0}^n a_t p^t = \sum_{n=0}^\infty a_n p^n' class='latex-inline' />. Finally, since <img src='http://math.fontein.de/wp-content/latex/1a1/1a1b99bcb9a32e4bbc773d56a12ee8b0-T-000000-0.png' alt='0 = \nu_p(\sum_{n=0}^\infty a_n p^n) = \min\{ n \mid a_n \neq 0 \}' title='0 = \nu_p(\sum_{n=0}^\infty a_n p^n) = \min\{ n \mid a_n \neq 0 \}' class='latex-inline' /> (which follows from the strict triangle inequality), it follows that <img src='http://math.fontein.de/wp-content/latex/9e5/9e56b89e01da91d295975397fb03d52b-T-000000-0.png' alt='a_0 \neq 0' title='a_0 \neq 0' class='latex-inline' />.</li>
<li>Clearly, <img src='http://math.fontein.de/wp-content/latex/e6b/e6b5966001e7cac03ea6038575a3ffb3-T-000000-0.png' alt='\frakm_p^n = \{ x \in \Q_p \mid \nu_p(x) \ge n \}' title='\frakm_p^n = \{ x \in \Q_p \mid \nu_p(x) \ge n \}' class='latex-inline' />; therefore, using 7., we see that every residue class in <img src='http://math.fontein.de/wp-content/latex/bf7/bf7e4b6bb27834b86b0061e297c1d251-T-000000-0.png' alt='\Z_p / \frakm_p^n' title='\Z_p / \frakm_p^n' class='latex-inline' /> is uniquely described by <img src='http://math.fontein.de/wp-content/latex/77c/77cbda043718430cb0ea800034775dbd-T-000000-0.png' alt='\sum_{t=0}^{n-1} a_n p^n + \frakm_p' title='\sum_{t=0}^{n-1} a_n p^n + \frakm_p' class='latex-inline' />, where <img src='http://math.fontein.de/wp-content/latex/637/6371a7823df1fb5590100cc30935942b-T-000000-0.png' alt='a_n \in \{ 0, \dots, p - 1 \}' title='a_n \in \{ 0, \dots, p - 1 \}' class='latex-inline' />. Hence, <img src='http://math.fontein.de/wp-content/latex/27e/27eb639834dd560708b50b1125727b0a-T-000000-0.png' alt='\abs{\Z_p / \frakm_p^n} = p^n' title='\abs{\Z_p / \frakm_p^n} = p^n' class='latex-inline' />. Now, as in the proof of 5., we see that <img src='http://math.fontein.de/wp-content/latex/e99/e9915a0c85db3cee1700871e0b2bf026-T-000000-0.png' alt='\Z/p^n\Z' title='\Z/p^n\Z' class='latex-inline' /> injects into <img src='http://math.fontein.de/wp-content/latex/bf7/bf7e4b6bb27834b86b0061e297c1d251-T-000000-0.png' alt='\Z_p / \frakm_p^n' title='\Z_p / \frakm_p^n' class='latex-inline' />, whence this injection is in fact a bijection. Thus <img src='http://math.fontein.de/wp-content/latex/40d/40d4d9806599cd810109bd1e2a59110b-T-000000-0.png' alt='\Z_p / \frakm_p^n \cong \Z/p^n\Z' title='\Z_p / \frakm_p^n \cong \Z/p^n\Z' class='latex-inline' />.</li>
<li>Let <img src='http://math.fontein.de/wp-content/latex/e1e/e1e1d3d40573127e9ee0480caf1283d6-T-000000-0.png' alt='R' title='R' class='latex-inline' /> be any compact subring of <img src='http://math.fontein.de/wp-content/latex/36c/36c5b7067d61ab9f88fc85bc197d8f5c-T-000000-0.png' alt='\Q_p' title='\Q_p' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/97b/97b68e4075e5734ea802aa8ef628662d-T-000000-0.png' alt='x \in R' title='x \in R' class='latex-inline' />. If <img src='http://math.fontein.de/wp-content/latex/dfa/dfad8472bc332e94c685bd0b0bc7e472-T-000000-0.png' alt='\abs{x}_p &gt; 1' title='\abs{x}_p &gt; 1' class='latex-inline' />, then <img src='http://math.fontein.de/wp-content/latex/e95/e9570eddbfcfdf52bcc4ab1c7bd04190-T-000000-0.png' alt='\abs{x^n}_p \to \infty' title='\abs{x^n}_p \to \infty' class='latex-inline' /> for <img src='http://math.fontein.de/wp-content/latex/9fc/9fcd9d5d39cca718980a307f659f2e54-T-000000-0.png' alt='n \to \infty' title='n \to \infty' class='latex-inline' />. Hence, <img src='http://math.fontein.de/wp-content/latex/e1e/e1e1d3d40573127e9ee0480caf1283d6-T-000000-0.png' alt='R' title='R' class='latex-inline' /> is unbounded, a contradiction.<br />
Hence, it is left to show that <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' /> is compact. For that, it suffices to show that any sequence in <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' /> has at least one accumulation point. Let <img src='http://math.fontein.de/wp-content/latex/9ba/9bace90e9fee3007e06d68e13dbc6966-T-000000-0.png' alt='(x_n)_n' title='(x_n)_n' class='latex-inline' /> be any sequence in <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' />. We claim that for any <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' />, there exists some <img src='http://math.fontein.de/wp-content/latex/31e/31e36bac4042d33851abded3021f3f32-T-000000-0.png' alt='z_n \in \Z' title='z_n \in \Z' class='latex-inline' /> such that <img src='http://math.fontein.de/wp-content/latex/55c/55c4dd878a0e6a7e1c78a77888f48f22-T-000000-0.png' alt='z_n + \frakm_p^n' title='z_n + \frakm_p^n' class='latex-inline' /> contains infinitely many elements of the sequence. For <img src='http://math.fontein.de/wp-content/latex/0e6/0e64ab01a3fb91403ec8e6c0e54dc736-T-000000-0.png' alt='n = 0' title='n = 0' class='latex-inline' /> this is clear for any choice of <img src='http://math.fontein.de/wp-content/latex/059/059e75340a274fbea9a34c246670e73f-T-000000-0.png' alt='z_n' title='z_n' class='latex-inline' />; hence, assume that this is the case for some <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' />. Now <img src='http://math.fontein.de/wp-content/latex/2b9/2b9e3455e33de9b1e9c8d151286fbfd0-T-000000-0.png' alt='z_n + \frakm_p^n = \bigcup_{i=0}^{p-1} (z_n + i p^n) + \frakm_p^{n+1}' title='z_n + \frakm_p^n = \bigcup_{i=0}^{p-1} (z_n + i p^n) + \frakm_p^{n+1}' class='latex-inline' />; now there must be some <img src='http://math.fontein.de/wp-content/latex/e89/e896ad5c13de80168efe8250b9a4d113-T-000000-0.png' alt='i \in \{ 0, \dots, p - 1 \}' title='i \in \{ 0, \dots, p - 1 \}' class='latex-inline' /> such that infinitely many of the <img src='http://math.fontein.de/wp-content/latex/5be/5bef92b1854f9c388d11bfbb1720c05d-T-000000-0.png' alt='x_n' title='x_n' class='latex-inline' />&#8216;s lie in <img src='http://math.fontein.de/wp-content/latex/a98/a983403c42dd1cbc349a65281eefdfd3-T-000000-0.png' alt='(z_n + i p^n) + \frakm_p^{n+1}' title='(z_n + i p^n) + \frakm_p^{n+1}' class='latex-inline' /> (otherwise, only finitely many can lie in <img src='http://math.fontein.de/wp-content/latex/55c/55c4dd878a0e6a7e1c78a77888f48f22-T-000000-0.png' alt='z_n + \frakm_p^n' title='z_n + \frakm_p^n' class='latex-inline' />); set <img src='http://math.fontein.de/wp-content/latex/ed7/ed75bba4a47c57c27e3dee06b5a1da4c-T-000000-0.png' alt='z_{n+1} := z_n + i p^n' title='z_{n+1} := z_n + i p^n' class='latex-inline' />. We see that <img src='http://math.fontein.de/wp-content/latex/911/911b45f62178a42a16d173a746266a9b-T-000000-0.png' alt='(z_n)_n' title='(z_n)_n' class='latex-inline' /> is a Cauchy sequence, whence <img src='http://math.fontein.de/wp-content/latex/5db/5db0786ceef2510af3d318e5ec8803ff-T-000000-0.png' alt='z = \lim z_n \in \Z_p' title='z = \lim z_n \in \Z_p' class='latex-inline' /> exists. Now by construction, <img src='http://math.fontein.de/wp-content/latex/fba/fbade9e36a3f36d3d676c1b808451dd7-T-000000-0.png' alt='z' title='z' class='latex-inline' /> is an accumulation point of <img src='http://math.fontein.de/wp-content/latex/9ba/9bace90e9fee3007e06d68e13dbc6966-T-000000-0.png' alt='(x_n)_n' title='(x_n)_n' class='latex-inline' />. Therefore, <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' /> is compact.</li>
</ol>
</div><div class='proofqed'>□</div></blockquote>

<p>Before we continue, we want to explore another construction of <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' /> which is completely algebraic. For that, we need the <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Projective_limit">projective limit</a> in the category of rings:</p>

<blockquote class='theorem'><div class='theoremtitle'>Definition.</div> <div class='theoremmain'>
Let <img src='http://math.fontein.de/wp-content/latex/80b/80bfb66421e082e6b3796bf79d01d207-T-000000-0.png' alt='(I, \le)' title='(I, \le)' class='latex-inline' /> be a <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Directed_set">directed set</a> and for every <img src='http://math.fontein.de/wp-content/latex/6fa/6fa78e29473bdce53401e1c2158c3eca-T-000000-0.png' alt='i \in I' title='i \in I' class='latex-inline' />, let <img src='http://math.fontein.de/wp-content/latex/c42/c42952440ffcf8129a1bedeac4773415-T-000000-0.png' alt='R_i' title='R_i' class='latex-inline' /> be a ring. Assume that for every <img src='http://math.fontein.de/wp-content/latex/cd1/cd1f249233b49224703fdaaca05b92f9-T-000000-0.png' alt='i, j \in I' title='i, j \in I' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/4f3/4f33631eeec864aeb1fb38fe42b2c1dd-T-000000-0.png' alt='i \le j' title='i \le j' class='latex-inline' /> there exists a homomorphism <img src='http://math.fontein.de/wp-content/latex/14d/14d7a01e9d0760e7b8cc696f13ef347c-T-000000-0.png' alt='\phi_{ij} : R_j \to R_i' title='\phi_{ij} : R_j \to R_i' class='latex-inline' /> such that for all <img src='http://math.fontein.de/wp-content/latex/e11/e11e7dc346a4f3f8196cc186c06f11d1-T-000000-0.png' alt='i, j, k' title='i, j, k' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/f2d/f2d53361061e81fd16b720e90eec189d-T-000000-0.png' alt='i \le j \le k' title='i \le j \le k' class='latex-inline' />, we have <img src='http://math.fontein.de/wp-content/latex/7a2/7a26a773d0e00a174677837f55cea669-T-000000-0.png' alt='\phi_{ik} = \phi_{ij} \circ \phi_{jk}' title='\phi_{ik} = \phi_{ij} \circ \phi_{jk}' class='latex-inline' />, and we have <img src='http://math.fontein.de/wp-content/latex/2da/2da0b7824387c1a81245ee45c992b922-T-000000-0.png' alt='\phi_{ii} = \id_{R_i}' title='\phi_{ii} = \id_{R_i}' class='latex-inline' />. Such a tuple <img src='http://math.fontein.de/wp-content/latex/c32/c3255d4c51bb0daf25230d0c274a1420-T-000000-0.png' alt='((I, \le), (R_i)_i, (\phi_{ij})_{ij})' title='((I, \le), (R_i)_i, (\phi_{ij})_{ij})' class='latex-inline' /> is called a <i>projective system</i>. <img src='http://math.fontein.de/wp-content/latex/547/547ddc5558316111831e4db89b147889-T-000000-0.png' alt='\displaystyle  \xymatrix{ R_k \ar[dd]_{\phi_{ik}} \ar[dr]^{\phi_{jk}} &amp; \\ &amp; R_j \ar[dl]^{\phi_{ij}} \\ R_i &amp; } ' title='\displaystyle  \xymatrix{ R_k \ar[dd]_{\phi_{ik}} \ar[dr]^{\phi_{jk}} &amp; \\ &amp; R_j \ar[dl]^{\phi_{ij}} \\ R_i &amp; } ' class='latex-displaystyle' /> A <i>projective limit</i> of <img src='http://math.fontein.de/wp-content/latex/c32/c3255d4c51bb0daf25230d0c274a1420-T-000000-0.png' alt='((I, \le), (R_i)_i, (\phi_{ij})_{ij})' title='((I, \le), (R_i)_i, (\phi_{ij})_{ij})' class='latex-inline' /> is a ring <img src='http://math.fontein.de/wp-content/latex/e1e/e1e1d3d40573127e9ee0480caf1283d6-T-000000-0.png' alt='R' title='R' class='latex-inline' /> together with homomorphisms <img src='http://math.fontein.de/wp-content/latex/71c/71c22948c5844cf5f0060109e81f6bd2-T-000000-0.png' alt='\pi_i : R \to R_i' title='\pi_i : R \to R_i' class='latex-inline' /> such that <img src='http://math.fontein.de/wp-content/latex/ebb/ebb10497756e1a907ee45e0fb242172f-T-000000-0.png' alt='\pi_j = \pi_i \circ \phi_{ij}' title='\pi_j = \pi_i \circ \phi_{ij}' class='latex-inline' /> if <img src='http://math.fontein.de/wp-content/latex/4f3/4f33631eeec864aeb1fb38fe42b2c1dd-T-000000-0.png' alt='i \le j' title='i \le j' class='latex-inline' />, which satisfies the following <i>universal property</i>:<br />
If <img src='http://math.fontein.de/wp-content/latex/e7d/e7df32a1c68b30bea84a21f5867910b5-T-000000-0.png' alt='R&#039;' title='R&#039;' class='latex-inline' /> is any other ring and <img src='http://math.fontein.de/wp-content/latex/baa/baa2bf5178b2ff81d38398b6b7f697a3-T-000000-0.png' alt='\pi&#039;_i : R \to R_i' title='\pi&#039;_i : R \to R_i' class='latex-inline' /> any other family of ring homomorphisms with <img src='http://math.fontein.de/wp-content/latex/ebb/ebb10497756e1a907ee45e0fb242172f-T-000000-0.png' alt='\pi_j = \pi_i \circ \phi_{ij}' title='\pi_j = \pi_i \circ \phi_{ij}' class='latex-inline' /> whenever <img src='http://math.fontein.de/wp-content/latex/4f3/4f33631eeec864aeb1fb38fe42b2c1dd-T-000000-0.png' alt='i \le j' title='i \le j' class='latex-inline' />, there exists a unique homomorphism <img src='http://math.fontein.de/wp-content/latex/ca0/ca0fce90cac977735919b69c0301e28f-T-000000-0.png' alt='\psi : R&#039; \to R' title='\psi : R&#039; \to R' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/bce/bce79c2d637b587abbff30adccecd4d1-T-000000-0.png' alt='\pi_i \circ \psi = \pi&#039;_i' title='\pi_i \circ \psi = \pi&#039;_i' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/6fa/6fa78e29473bdce53401e1c2158c3eca-T-000000-0.png' alt='i \in I' title='i \in I' class='latex-inline' />. <img src='http://math.fontein.de/wp-content/latex/40a/40a5ba8c419a0f6656fc7fe63eecdee6-T-000000-0.png' alt='\displaystyle  \xymatrix{ R&#039; \ar@{-&gt;}[r]^{\exists! \psi} \ar[dr]_{\pi&#039;_i} &amp; R \ar[d]^{\pi_i} \\ &amp; R_i } ' title='\displaystyle  \xymatrix{ R&#039; \ar@{-&gt;}[r]^{\exists! \psi} \ar[dr]_{\pi&#039;_i} &amp; R \ar[d]^{\pi_i} \\ &amp; R_i } ' class='latex-displaystyle' />
</div></blockquote>

<p>We have the following, classical result:</p>

<blockquote class='theorem'><div class='theoremtitle'>Theorem.</div> <div class='theoremmain'>
For every projective system <img src='http://math.fontein.de/wp-content/latex/c32/c3255d4c51bb0daf25230d0c274a1420-T-000000-0.png' alt='((I, \le), (R_i)_i, (\phi_{ij})_{ij})' title='((I, \le), (R_i)_i, (\phi_{ij})_{ij})' class='latex-inline' /> of rings, there exists a projective limit which is unique up to unique isomorphism; i.e., for any two projective limits <img src='http://math.fontein.de/wp-content/latex/ca9/ca956ec93b23599cd1eecac68e22a60b-T-000000-0.png' alt='(R, (\pi_i)_i)' title='(R, (\pi_i)_i)' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/2f5/2f5242a33c9571605697c01fee65d51c-T-000000-0.png' alt='(R&#039;, (\pi&#039;_i)_i)' title='(R&#039;, (\pi&#039;_i)_i)' class='latex-inline' /> there exists a unique isomorphism <img src='http://math.fontein.de/wp-content/latex/ca0/ca0fce90cac977735919b69c0301e28f-T-000000-0.png' alt='\psi : R&#039; \to R' title='\psi : R&#039; \to R' class='latex-inline' /> such that <img src='http://math.fontein.de/wp-content/latex/bce/bce79c2d637b587abbff30adccecd4d1-T-000000-0.png' alt='\pi_i \circ \psi = \pi&#039;_i' title='\pi_i \circ \psi = \pi&#039;_i' 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' />.
<br />
Moreover, a projective limit can be constructed as <img src='http://math.fontein.de/wp-content/latex/292/29231e2fa52f8ad48cc97b9da3825847-T-000000-0.png' alt='\displaystyle  R := \biggl\{ (r_i)_i \in \prod_{i \in I} R_i \;\biggm|\; \forall (i, j) \in {\le} : \psi_{ij}(r_j) = r_i \biggr\}, ' title='\displaystyle  R := \biggl\{ (r_i)_i \in \prod_{i \in I} R_i \;\biggm|\; \forall (i, j) \in {\le} : \psi_{ij}(r_j) = r_i \biggr\}, ' class='latex-displaystyle' /> where <img src='http://math.fontein.de/wp-content/latex/8b7/8b7d5fed535e485e329547d73a395ba2-T-000000-0.png' alt='\pi_i' title='\pi_i' class='latex-inline' /> is the restriction of the canonical projection <img src='http://math.fontein.de/wp-content/latex/a8f/a8f27ede17408d449318d4649bbe1267-T-000000-0.png' alt='\prod_{j \in I} R_j \to R_i' title='\prod_{j \in I} R_j \to R_i' class='latex-inline' /> to the subset <img src='http://math.fontein.de/wp-content/latex/e1e/e1e1d3d40573127e9ee0480caf1283d6-T-000000-0.png' alt='R' title='R' class='latex-inline' />.
</div><div class='theoremqed'>□</div></blockquote>

<blockquote class='theorem'><div class='theoremtitle'>Definition.</div> <div class='theoremmain'>
Let <img src='http://math.fontein.de/wp-content/latex/c32/c3255d4c51bb0daf25230d0c274a1420-T-000000-0.png' alt='((I, \le), (R_i)_i, (\phi_{ij})_{ij})' title='((I, \le), (R_i)_i, (\phi_{ij})_{ij})' class='latex-inline' /> be a projective system. Define the <i>projective limit</i> of it as any projective limit, and denote it by <img src='http://math.fontein.de/wp-content/latex/3fc/3fc0136518db2cf0605e16622e421014-T-000000-0.png' alt='\varprojlim_{i \in I} R_i' title='\varprojlim_{i \in I} R_i' class='latex-inline' />.
</div></blockquote>

We choose <img src='http://math.fontein.de/wp-content/latex/9e8/9e8af62eeb1e4d5a5178a4ffb1cd38db-T-000000-0.png' alt='I = \N' title='I = \N' class='latex-inline' /> with the usual order, and let <img src='http://math.fontein.de/wp-content/latex/afc/afc11e28774bdf8909b8fe846e64204f-T-000000-0.png' alt='R_n := \Z/p^n\Z' title='R_n := \Z/p^n\Z' class='latex-inline' />. Then, if <img src='http://math.fontein.de/wp-content/latex/f00/f002ddae9298f9c0b2059789d8fc4453-T-000000-0.png' alt='n \le m' title='n \le m' class='latex-inline' />, one has the projection <img src='http://math.fontein.de/wp-content/latex/f9d/f9d4ae8c7333c69181578a112ee94bce-T-000000-0.png' alt='\phi_{nm} : \Z/p^m\Z \to \Z/p^n\Z' title='\phi_{nm} : \Z/p^m\Z \to \Z/p^n\Z' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/8a1/8a11ced082d005bdfc9522e2d6e6c55c-T-000000-0.png' alt='x + p^m\Z \mapsto x + p^n\Z' title='x + p^m\Z \mapsto x + p^n\Z' class='latex-inline' />. Hence, we can define <img src='http://math.fontein.de/wp-content/latex/b75/b756a63e1fdd775b1b276ea1a7068a28-T-000000-0.png' alt='\hat{\Z}_p := \varprojlim_{n\in\N} R_n' title='\hat{\Z}_p := \varprojlim_{n\in\N} R_n' class='latex-inline' />. Now this definition coincides with the old one; this can be seen using <img src='http://math.fontein.de/wp-content/latex/b6e/b6e1a54cd75cd8ac923a0746c0163403-T-000000-0.png' alt='\displaystyle  \hat{\Z}_p = \{ (a_n)_n \mid a_n \in \{ 0, \dots, p^n - 1 \}, \; a_{n+1} \equiv a_n \pmod{p^n} \}; ' title='\displaystyle  \hat{\Z}_p = \{ (a_n)_n \mid a_n \in \{ 0, \dots, p^n - 1 \}, \; a_{n+1} \equiv a_n \pmod{p^n} \}; ' class='latex-displaystyle' /> then, the map <img src='http://math.fontein.de/wp-content/latex/7e6/7e6a54bd1f1bda4bdac7e5cd9606ebc1-T-000000-0.png' alt='\displaystyle  \Z_p \to \hat{\Z}_p, \qquad \sum_{n=0}^\infty a_n p^n \mapsto \biggl( \sum_{t=0}^{n-1} a_t p^t \biggr)_n ' title='\displaystyle  \Z_p \to \hat{\Z}_p, \qquad \sum_{n=0}^\infty a_n p^n \mapsto \biggl( \sum_{t=0}^{n-1} a_t p^t \biggr)_n ' class='latex-displaystyle' /> is obviously an isomorphism.

<h3>Hensel&#8217;s Lemma.</h3>

<p>Hensel&#8217;s Lemma can be formulated in a very algebraic way. All rings in this section are commutative and unitary.</p>

<blockquote class='theorem'><div class='theoremtitle'>Definition.</div> <div class='theoremmain'>
Let <img src='http://math.fontein.de/wp-content/latex/e1e/e1e1d3d40573127e9ee0480caf1283d6-T-000000-0.png' alt='R' title='R' class='latex-inline' /> be a ring and <img src='http://math.fontein.de/wp-content/latex/c46/c467360721e634eea5a2ce71fde0442b-T-000000-0.png' alt='\fraka' title='\fraka' class='latex-inline' /> an ideal of <img src='http://math.fontein.de/wp-content/latex/e1e/e1e1d3d40573127e9ee0480caf1283d6-T-000000-0.png' alt='R' title='R' class='latex-inline' />. We say that <img src='http://math.fontein.de/wp-content/latex/c46/c467360721e634eea5a2ce71fde0442b-T-000000-0.png' alt='\fraka' title='\fraka' class='latex-inline' /> is <i>nilpotent</i> if <img src='http://math.fontein.de/wp-content/latex/824/824c5509e4210a12c22e00acc5973221-T-000000-0.png' alt='\fraka^n = 0' title='\fraka^n = 0' class='latex-inline' /> for some <img src='http://math.fontein.de/wp-content/latex/72e/72e07933327508be8d2ca29128a878d7-T-000000-0.png' alt='n \in \N' title='n \in \N' class='latex-inline' />. We say that <img src='http://math.fontein.de/wp-content/latex/c46/c467360721e634eea5a2ce71fde0442b-T-000000-0.png' alt='\fraka' title='\fraka' class='latex-inline' /> is a <i>nilideal</i> if every <img src='http://math.fontein.de/wp-content/latex/4df/4df2ea79af4c8dfe10f803b5344fa18a-T-000000-0.png' alt='x \in \fraka' title='x \in \fraka' class='latex-inline' /> is nilpotent, i.e. if for every <img src='http://math.fontein.de/wp-content/latex/4df/4df2ea79af4c8dfe10f803b5344fa18a-T-000000-0.png' alt='x \in \fraka' title='x \in \fraka' class='latex-inline' /> there is some <img src='http://math.fontein.de/wp-content/latex/28d/28de7e439bc094183a3dcfa4098a4042-T-000000-0.png' alt='n_x \in \N' title='n_x \in \N' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/b66/b66c99969f2960825d69f97b42732966-T-000000-0.png' alt='x^{n_x} = 0' title='x^{n_x} = 0' class='latex-inline' />.
</div></blockquote>

<p>Note that in Noetherian rings, nilideals are already nilpotent, since ideals generated by finitely many nilpotent elements are always nilpotent. (Note that our rings are commutative. Otherwise it won&#8217;t work.)</p>

<blockquote class='theorem'><div class='theoremtitle'>Proposition (Hensel's Lemma).</div> <div class='theoremmain'>
Let <img src='http://math.fontein.de/wp-content/latex/e1e/e1e1d3d40573127e9ee0480caf1283d6-T-000000-0.png' alt='R' title='R' class='latex-inline' /> be a ring and <img src='http://math.fontein.de/wp-content/latex/c46/c467360721e634eea5a2ce71fde0442b-T-000000-0.png' alt='\fraka' title='\fraka' class='latex-inline' /> a nilideal in <img src='http://math.fontein.de/wp-content/latex/e1e/e1e1d3d40573127e9ee0480caf1283d6-T-000000-0.png' alt='R' title='R' class='latex-inline' />. Let <img src='http://math.fontein.de/wp-content/latex/672/67272ed7a06957da1ac0041d2ace19cb-T-000000-0.png' alt='f \in R[x]' title='f \in R[x]' class='latex-inline' /> and <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/1f8/1f857d51b66acf1feaa63807db0048b2-T-000000-0.png' alt='f(a) \in \fraka' title='f(a) \in \fraka' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/cb7/cb791d4d6b2b94fbdb0739d4e2ea515b-T-000000-0.png' alt='f&#039;(a) + \fraka \in (R / \fraka)^*' title='f&#039;(a) + \fraka \in (R / \fraka)^*' class='latex-inline' />. Then there exists a unique <img src='http://math.fontein.de/wp-content/latex/4ad/4ad45bd0c68aa6b0312c18c976af4b96-T-000000-0.png' alt='b \in R' title='b \in R' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/e82/e823e0d3c14927da652034b2b948a68b-T-000000-0.png' alt='a - b \in \fraka' title='a - b \in \fraka' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/4d8/4d8add8a510431e63d8d04fcd94fb0c0-T-000000-0.png' alt='f(b) = 0' title='f(b) = 0' class='latex-inline' />.
</div></blockquote>

<blockquote class='proof'><div class='prooftitle'>Proof (Part I).</div> <div class='proofmain'>
First, assume that both <img src='http://math.fontein.de/wp-content/latex/92e/92eb5ffee6ae2fec3ad71c777531578f-T-000000-0.png' alt='b' title='b' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/276/2765802181072b3aa2be59dae8c72b0d-T-000000-0.png' alt='b&#039;' title='b&#039;' class='latex-inline' /> satisfy <img src='http://math.fontein.de/wp-content/latex/adf/adfeb45fa3ca25780869af0dd6c3d5e7-T-000000-0.png' alt='a - b, a - b&#039; \in \fraka' title='a - b, a - b&#039; \in \fraka' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/04e/04e217b1da40dcd438c161467399198a-T-000000-0.png' alt='f(b) = 0 = f(b&#039;)' title='f(b) = 0 = f(b&#039;)' class='latex-inline' />. Using <img src='http://math.fontein.de/wp-content/latex/8fb/8fbe052e4863b3febdabc13d0aa79754-T-000000-0.png' alt='t := b&#039; - b' title='t := b&#039; - b' class='latex-inline' />, we see that <img src='http://math.fontein.de/wp-content/latex/7d9/7d9a1ba9b6128860d1cc218b36f10df8-T-000000-0.png' alt=' 0 ={} &amp; f(b&#039;) = f(b + t) = f(b) + f&#039;(b) t + e t^2 \\ {}={} &amp; (b&#039; - b) ( f&#039;(b) + e (b&#039; - b) ) ' title=' 0 ={} &amp; f(b&#039;) = f(b + t) = f(b) + f&#039;(b) t + e t^2 \\ {}={} &amp; (b&#039; - b) ( f&#039;(b) + e (b&#039; - b) ) ' class='latex-displaystyle' /> for some <img src='http://math.fontein.de/wp-content/latex/218/218cf5dd1b33cbb6d74f6c52da3aba1b-T-000000-0.png' alt='e \in R' title='e \in R' class='latex-inline' /> using <a href="http://math.fontein.de/forward.php?r=http://math.fontein.de/2009/08/12/the-hasse-derivative/">Taylor expansion</a>. Since <img src='http://math.fontein.de/wp-content/latex/c29/c2937d9326c1a5b8629ae1d2652999d1-T-000000-0.png' alt='f&#039;(b) + e (b&#039; - b) + \fraka = f&#039;(b) + \fraka = f&#039;(a) + \fraka' title='f&#039;(b) + e (b&#039; - b) + \fraka = f&#039;(b) + \fraka = f&#039;(a) + \fraka' class='latex-inline' /> is a unit in <img src='http://math.fontein.de/wp-content/latex/909/9093b25e1a01c0a02e8b96bd343e0dad-T-000000-0.png' alt='R / \fraka' title='R / \fraka' class='latex-inline' />, there exist some <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' />, <img src='http://math.fontein.de/wp-content/latex/da6/da6f022d7c4c7a6520d57ce06757dce9-T-000000-0.png' alt='c \in \fraka' title='c \in \fraka' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/8b2/8b2cfebaf43f078819c8c2818a29c1dd-T-000000-0.png' alt='a (f&#039;(b) + e (b&#039; - b)) = 1 + c' title='a (f&#039;(b) + e (b&#039; - b)) = 1 + c' class='latex-inline' />. How <img src='http://math.fontein.de/wp-content/latex/4a8/4a8a08f09d37b73795649038408b5f33-T-000000-0.png' alt='c' title='c' class='latex-inline' /> is nilpotent, whence <img src='http://math.fontein.de/wp-content/latex/90c/90cb77d208211c6d0d00f01e796a75c3-T-000000-0.png' alt='(1 + c) \sum_{n=0}^\infty (-c)^n = 1' title='(1 + c) \sum_{n=0}^\infty (-c)^n = 1' class='latex-inline' />, i.e. <img src='http://math.fontein.de/wp-content/latex/292/292cbbe08a7b7d5920c1091e623aac4e-T-000000-0.png' alt='1 + c \in R^*' title='1 + c \in R^*' class='latex-inline' />. But this means that <img src='http://math.fontein.de/wp-content/latex/af3/af360b3a7033fa1a9588a40fa371be07-T-000000-0.png' alt='f&#039;(b) + e (b&#039; - b) \in R^*' title='f&#039;(b) + e (b&#039; - b) \in R^*' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/0cf/0cfe3158e42603ea69fe39e862cc36f3-T-000000-0.png' alt='b&#039; - b = 0' title='b&#039; - b = 0' class='latex-inline' />. This shows uniqueness.
<br />
Moreover, we want to show that it suffices to require that <img src='http://math.fontein.de/wp-content/latex/c46/c467360721e634eea5a2ce71fde0442b-T-000000-0.png' alt='\fraka' title='\fraka' class='latex-inline' /> is nilpotent. Cosider the subring <img src='http://math.fontein.de/wp-content/latex/e7d/e7df32a1c68b30bea84a21f5867910b5-T-000000-0.png' alt='R&#039;' title='R&#039;' class='latex-inline' /> of <img src='http://math.fontein.de/wp-content/latex/e1e/e1e1d3d40573127e9ee0480caf1283d6-T-000000-0.png' alt='R' title='R' class='latex-inline' /> which is the smallest (unitary) subring containing the coefficients of <img src='http://math.fontein.de/wp-content/latex/8fa/8fa14cdd754f91cc6554c9e71929cce7-T-000000-0.png' alt='f' title='f' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/0cc/0cc175b9c0f1b6a831c399e269772661-T-000000-0.png' alt='a' title='a' class='latex-inline' />, and some fixed <img src='http://math.fontein.de/wp-content/latex/4ad/4ad45bd0c68aa6b0312c18c976af4b96-T-000000-0.png' alt='b \in R' title='b \in R' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/158/158422ead6886c4376524e348f99d709-T-000000-0.png' alt='f&#039;(a) b - 1 \in \fraka' title='f&#039;(a) b - 1 \in \fraka' class='latex-inline' />. This ring is clearly finitely generated, whence Noetherian, and <img src='http://math.fontein.de/wp-content/latex/66c/66ca57b423ef6b4c45868374b765a845-T-000000-0.png' alt='\fraka&#039; := \fraka \cap R&#039;' title='\fraka&#039; := \fraka \cap R&#039;' class='latex-inline' /> is a nilideal in <img src='http://math.fontein.de/wp-content/latex/e7d/e7df32a1c68b30bea84a21f5867910b5-T-000000-0.png' alt='R&#039;' title='R&#039;' class='latex-inline' /> as well. Since <img src='http://math.fontein.de/wp-content/latex/e7d/e7df32a1c68b30bea84a21f5867910b5-T-000000-0.png' alt='R&#039;' title='R&#039;' class='latex-inline' /> is Noetherian, <img src='http://math.fontein.de/wp-content/latex/036/0360c166c2a6799084e447737863139b-T-000000-0.png' alt='\fraka&#039;' title='\fraka&#039;' class='latex-inline' /> is in fact nilpotent. Moreover, <img src='http://math.fontein.de/wp-content/latex/855/85538f26585779f4f795ceee1fe2b436-T-000000-0.png' alt='f&#039;(a) + \fraka&#039; \in (R&#039; / \fraka&#039;)^*' title='f&#039;(a) + \fraka&#039; \in (R&#039; / \fraka&#039;)^*' class='latex-inline' /> since <img src='http://math.fontein.de/wp-content/latex/a0f/a0fbcf304f23b7ddeecbae712e0f3f10-T-000000-0.png' alt='f&#039;(a) b - 1 \in \fraka&#039;' title='f&#039;(a) b - 1 \in \fraka&#039;' class='latex-inline' />. Hence, it suffices to prove the lemma for <img src='http://math.fontein.de/wp-content/latex/8f7/8f764aba80c172200061b72635553260-T-000000-0.png' alt='(R&#039;, \fraka&#039;)' title='(R&#039;, \fraka&#039;)' class='latex-inline' /> instead of <img src='http://math.fontein.de/wp-content/latex/c3c/c3c1a721896625a3768fc75a5948537a-T-000000-0.png' alt='(R, \fraka)' title='(R, \fraka)' class='latex-inline' />.
</div><div class='proofqed'>□</div></blockquote>

<p>We will complete the proof later. First, let us discuss some implications of this result. Consider the ring <img src='http://math.fontein.de/wp-content/latex/f1f/f1f42ab634efbc52b8b6503688296810-T-000000-0.png' alt='R = \Z/p^n\Z' title='R = \Z/p^n\Z' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/536/5365cb2e46e34a75220f23a23e454ef1-T-000000-0.png' alt='\fraka = p^m R' title='\fraka = p^m R' class='latex-inline' />, where <img src='http://math.fontein.de/wp-content/latex/128/1282dbcdc9771c92690c92b70668b383-T-000000-0.png' alt='m &gt; 0' title='m &gt; 0' class='latex-inline' />. Then clearly <img src='http://math.fontein.de/wp-content/latex/c46/c467360721e634eea5a2ce71fde0442b-T-000000-0.png' alt='\fraka' title='\fraka' class='latex-inline' /> is nilpotent in <img src='http://math.fontein.de/wp-content/latex/e1e/e1e1d3d40573127e9ee0480caf1283d6-T-000000-0.png' alt='R' title='R' class='latex-inline' />, whence we can apply Hensel&#8217;s lemma to this situation. Assume that <img src='http://math.fontein.de/wp-content/latex/7b3/7b340fe52ad32b22cee36cca38fd9acc-T-000000-0.png' alt='f \in \Z[x]' title='f \in \Z[x]' class='latex-inline' /> is a polynomial and <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' /> with <img src='http://math.fontein.de/wp-content/latex/076/076f5aaa995d7ccb6fd62eb5d3475ea9-T-000000-0.png' alt='f(a) \equiv 0 \pmod{p^m}' title='f(a) \equiv 0 \pmod{p^m}' class='latex-inline' />; if then <img src='http://math.fontein.de/wp-content/latex/718/7182bba951b7f47fe421d6fdef1fbdb0-T-000000-0.png' alt='f&#039;(a) \not\equiv 0 \pmod{p}' title='f&#039;(a) \not\equiv 0 \pmod{p}' class='latex-inline' />, there exists a <i>unique</i> <img src='http://math.fontein.de/wp-content/latex/4ad/4ad45bd0c68aa6b0312c18c976af4b96-T-000000-0.png' alt='b \in R' title='b \in R' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/4d8/4d8add8a510431e63d8d04fcd94fb0c0-T-000000-0.png' alt='f(b) = 0' title='f(b) = 0' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/6ae/6ae9217f117f25f4228d68b69c54cd8a-T-000000-0.png' alt='b \equiv a \pmod{p^m}' title='b \equiv a \pmod{p^m}' class='latex-inline' />. Doing this construction for <img src='http://math.fontein.de/wp-content/latex/f3f/f3fa7ed3e0e30cc639e9ce8cb1dff9ca-T-000000-0.png' alt='m = 1' title='m = 1' class='latex-inline' /> and all <img src='http://math.fontein.de/wp-content/latex/72e/72e07933327508be8d2ca29128a878d7-T-000000-0.png' alt='n \in \N' title='n \in \N' class='latex-inline' />, we obtain a sequence <img src='http://math.fontein.de/wp-content/latex/da6/da6238b4c1ae1016b5c58b6354ceec3a-T-000000-0.png' alt='(b_n)_n' title='(b_n)_n' class='latex-inline' /> of elements with <img src='http://math.fontein.de/wp-content/latex/4c2/4c209c2a85a126eb6e29207bb44ab7d7-T-000000-0.png' alt='b_n \in \{ 0, \dots, p^n - 1 \}' title='b_n \in \{ 0, \dots, p^n - 1 \}' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/300/300fe412fb1951aa906f217b3e3864e2-T-000000-0.png' alt='b_{n+1} \equiv b_n \pmod{p^n}' title='b_{n+1} \equiv b_n \pmod{p^n}' class='latex-inline' />, i.e. we obtain an element of <img src='http://math.fontein.de/wp-content/latex/ef1/ef1d544b587076c29c9b2c917e0ae1be-T-000000-0.png' alt='\hat{\Z}_p = \Z_p' title='\hat{\Z}_p = \Z_p' class='latex-inline' />!</p>

<p>In particular, let <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' /> be any element with <img src='http://math.fontein.de/wp-content/latex/641/6412da660254b577198e9a0becae9c11-T-000000-0.png' alt='p \nmid a' title='p \nmid a' class='latex-inline' />. Consider <img src='http://math.fontein.de/wp-content/latex/aac/aacfff2e7198782fd00f9c4daacce48f-T-000000-0.png' alt='f := a x - 1 \in \Z[x]' title='f := a x - 1 \in \Z[x]' class='latex-inline' />. Now there exists some <img src='http://math.fontein.de/wp-content/latex/8a6/8a65c6f6ebfad59b6e03d540e40bc9de-T-000000-0.png' alt='b, c \in \Z' title='b, c \in \Z' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/11f/11f7f9fa81649c7a53bd057eea9de106-T-000000-0.png' alt='a b + c p = 1' title='a b + c p = 1' class='latex-inline' />; therefore, <img src='http://math.fontein.de/wp-content/latex/b70/b7003d2a238b78e1c65c2e521029c305-T-000000-0.png' alt='f(b) \equiv 0 \pmod{p}' title='f(b) \equiv 0 \pmod{p}' class='latex-inline' />. But this implies that there exists a unique <img src='http://math.fontein.de/wp-content/latex/e0d/e0d0bcb7f2a74439b442cbb61aff7dc7-T-000000-0.png' alt='z \in \Z_p' title='z \in \Z_p' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/c6f/c6f4d5e7fbb824691732cf89bf8f0543-T-000000-0.png' alt='f(z) = 0' title='f(z) = 0' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/cf0/cf0deb4814652a5a4f241114dc1235e4-T-000000-0.png' alt='z \equiv b \pmod{p}' title='z \equiv b \pmod{p}' class='latex-inline' />. (Since <img src='http://math.fontein.de/wp-content/latex/92e/92eb5ffee6ae2fec3ad71c777531578f-T-000000-0.png' alt='b' title='b' class='latex-inline' /> is unique modulo <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />, it follows that <img src='http://math.fontein.de/wp-content/latex/fba/fbade9e36a3f36d3d676c1b808451dd7-T-000000-0.png' alt='z' title='z' class='latex-inline' /> is uniquely defined by <img src='http://math.fontein.de/wp-content/latex/c6f/c6f4d5e7fbb824691732cf89bf8f0543-T-000000-0.png' alt='f(z) = 0' title='f(z) = 0' class='latex-inline' />, i.e. by <img src='http://math.fontein.de/wp-content/latex/3d0/3d09cccca8b73a600e6e2c5eaa74688c-T-000000-0.png' alt='a z = 1' title='a z = 1' class='latex-inline' />.) Hence, we have shown that any integer <img src='http://math.fontein.de/wp-content/latex/0cc/0cc175b9c0f1b6a831c399e269772661-T-000000-0.png' alt='a' title='a' class='latex-inline' /> is invertible in <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' /> if <img src='http://math.fontein.de/wp-content/latex/641/6412da660254b577198e9a0becae9c11-T-000000-0.png' alt='p \nmid a' title='p \nmid a' class='latex-inline' />. But how to compute <img src='http://math.fontein.de/wp-content/latex/fba/fbade9e36a3f36d3d676c1b808451dd7-T-000000-0.png' alt='z' title='z' class='latex-inline' />? We will discuss this later; for now, note that we can use the <a href="http://math.fontein.de/forward.php?r=http://math.fontein.de/2009/11/18/euclidean-domains-and-the-extended-euclidean-algorithm/">Extended Euclidean Algorithm</a> to find <img src='http://math.fontein.de/wp-content/latex/e22/e227903ed7cee909b24315ca0a654714-T-000000-0.png' alt='b_n, c_n \in \Z' title='b_n, c_n \in \Z' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/e9d/e9d2132e21818d240eea09e6723c0292-T-000000-0.png' alt='a b_n + c_n p^n = 1' title='a b_n + c_n p^n = 1' class='latex-inline' />; then <img src='http://math.fontein.de/wp-content/latex/8b3/8b3ed7e74a209b1a2a42f3b8ca2eea02-T-000000-0.png' alt='b_n \equiv z \pmod{p^n}' title='b_n \equiv z \pmod{p^n}' class='latex-inline' />, i.e. we can approximate <img src='http://math.fontein.de/wp-content/latex/fba/fbade9e36a3f36d3d676c1b808451dd7-T-000000-0.png' alt='z' title='z' class='latex-inline' /> up to arbitrary precision.</p>

<p>What about <img src='http://math.fontein.de/wp-content/latex/5da/5daefc23580029877af588d392ce86b1-T-000000-0.png' alt='p \mid a' title='p \mid a' class='latex-inline' />? In that case, <img src='http://math.fontein.de/wp-content/latex/511/51173374e93acff6ccc131e585babfc6-T-000000-0.png' alt='\frac{1}{a} \not\in \Z_p' title='\frac{1}{a} \not\in \Z_p' class='latex-inline' />: if <img src='http://math.fontein.de/wp-content/latex/0cc/0cc175b9c0f1b6a831c399e269772661-T-000000-0.png' alt='a' title='a' class='latex-inline' /> would have an inverse in <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' />, say <img src='http://math.fontein.de/wp-content/latex/073/073490dad8039a9468d60a45b11883d2-T-000000-0.png' alt='b \in \Z_p' title='b \in \Z_p' class='latex-inline' />, then we would have <img src='http://math.fontein.de/wp-content/latex/783/783a86ddac4407dfe9ae234acb9c06b4-T-000000-0.png' alt='0 \equiv a \cdot b \equiv 1 \pmod{p}' title='0 \equiv a \cdot b \equiv 1 \pmod{p}' class='latex-inline' />, a contradiction. Therefore, we get:</p>

<blockquote class='theorem'><div class='theoremtitle'>Proposition.</div> <div class='theoremmain'>
We have that <img src='http://math.fontein.de/wp-content/latex/aa8/aa8676791db95c37545806efc7c7cc2f-T-000000-0.png' alt='\displaystyle  \Z_p \cap \Q = \biggl\{ \frac{a}{b} \in \Q \;\biggm|\; a, b \in \Z, \; p \nmid b \biggr\}. ' title='\displaystyle  \Z_p \cap \Q = \biggl\{ \frac{a}{b} \in \Q \;\biggm|\; a, b \in \Z, \; p \nmid b \biggr\}. ' class='latex-displaystyle' />
</div><div class='theoremqed'>□</div></blockquote>

<h3>Newton Iteration.</h3>

<p>In the last section, we ignored two points: first, how to prove existence in Hensel&#8217;s lemma, and second, how to compute this element in a constructive way. We want to fix this now. For this, we describe how <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Newton's_method">Newton&#8217;s method</a> works in arbitrary rings!</p>

<p>Let <img src='http://math.fontein.de/wp-content/latex/672/67272ed7a06957da1ac0041d2ace19cb-T-000000-0.png' alt='f \in R[x]' title='f \in R[x]' class='latex-inline' /> be a polynomial, <img src='http://math.fontein.de/wp-content/latex/a8a/a8a08060b9afede96bcdfae679f639cb-T-000000-0.png' alt='\fraka \subseteq R' title='\fraka \subseteq R' class='latex-inline' /> a nilpotent ideal, and <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/1f8/1f857d51b66acf1feaa63807db0048b2-T-000000-0.png' alt='f(a) \in \fraka' title='f(a) \in \fraka' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/cb7/cb791d4d6b2b94fbdb0739d4e2ea515b-T-000000-0.png' alt='f&#039;(a) + \fraka \in (R / \fraka)^*' title='f&#039;(a) + \fraka \in (R / \fraka)^*' class='latex-inline' />. Fix some <img src='http://math.fontein.de/wp-content/latex/7de/7de2075689beb3ce1df17b3532bd30ab-T-000000-0.png' alt='\hat{a} \in R' title='\hat{a} \in R' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/778/7781ac1ef0831eb5a851428b2f0ff5f2-T-000000-0.png' alt='f&#039;(a) \hat{a} - 1 \in \fraka' title='f&#039;(a) \hat{a} - 1 \in \fraka' class='latex-inline' />, and consider the sequence <img src='http://math.fontein.de/wp-content/latex/b86/b86761a93147b08f5b9c61f17a3ab099-T-000000-0.png' alt='\displaystyle  x_0 := a, \qquad x_{n+1} := x_n - \hat{a} f(x_n), \quad n \in \N. ' title='\displaystyle  x_0 := a, \qquad x_{n+1} := x_n - \hat{a} f(x_n), \quad n \in \N. ' class='latex-displaystyle' /> We claim that <img src='http://math.fontein.de/wp-content/latex/325/325d670ac436b5b821b05b1587e501c9-T-000000-0.png' alt='f(x_n) \in \fraka^{n+1}' title='f(x_n) \in \fraka^{n+1}' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/72e/72e07933327508be8d2ca29128a878d7-T-000000-0.png' alt='n \in \N' title='n \in \N' class='latex-inline' />; since <img src='http://math.fontein.de/wp-content/latex/c46/c467360721e634eea5a2ce71fde0442b-T-000000-0.png' alt='\fraka' title='\fraka' class='latex-inline' /> is nilpotent, this means that the sequence becomes stationary eventually and gives a root of <img src='http://math.fontein.de/wp-content/latex/8fa/8fa14cdd754f91cc6554c9e71929cce7-T-000000-0.png' alt='f' title='f' class='latex-inline' />. Moreover, we claim that <img src='http://math.fontein.de/wp-content/latex/766/7663d820962e31167b4b023e2ee3e16a-T-000000-0.png' alt='x_n - x_{n-1} \in \fraka^n' title='x_n - x_{n-1} \in \fraka^n' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/8dc/8dc548a6db36e0772c98cd347e8303f2-T-000000-0.png' alt='x_n - a \in \fraka' title='x_n - a \in \fraka' class='latex-inline' /> for all <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' />.</p>

<p>Assume that this is true for some <img src='http://math.fontein.de/wp-content/latex/7b8/7b8b965ad4bca0e41ab51de7b31363a1-T-000000-0.png' alt='n' title='n' class='latex-inline' />, i.e. we have <img src='http://math.fontein.de/wp-content/latex/325/325d670ac436b5b821b05b1587e501c9-T-000000-0.png' alt='f(x_n) \in \fraka^{n+1}' title='f(x_n) \in \fraka^{n+1}' class='latex-inline' />. Then <img src='http://math.fontein.de/wp-content/latex/0a0/0a06d9a349701ff60a28ec8c8f7b42d4-T-000000-0.png' alt='x_{n+1} = x_n - \hat{a} f(x_n)' title='x_{n+1} = x_n - \hat{a} f(x_n)' class='latex-inline' />. Now <img src='http://math.fontein.de/wp-content/latex/325/325d670ac436b5b821b05b1587e501c9-T-000000-0.png' alt='f(x_n) \in \fraka^{n+1}' title='f(x_n) \in \fraka^{n+1}' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/17e/17e6f0ff1ee85449a32217e9e10824a7-T-000000-0.png' alt='x_{n+1} - x_n \in \fraka^{n+1}' title='x_{n+1} - x_n \in \fraka^{n+1}' class='latex-inline' />. To show that <img src='http://math.fontein.de/wp-content/latex/e94/e9401c21afd6ceb6b27bb02bbf1e033f-T-000000-0.png' alt='f(x_{n+1}) \in \fraka^{n+2}' title='f(x_{n+1}) \in \fraka^{n+2}' class='latex-inline' />, we again use the <a href="http://math.fontein.de/forward.php?r=http://math.fontein.de/2009/08/12/the-hasse-derivative/">Taylor expansion</a>; by it, <img src='http://math.fontein.de/wp-content/latex/5bf/5bf3915ea3c09624417252f729280845-T-000000-0.png' alt=' f(x_{n+1}) ={} &amp; f(x_n - \hat{a} f(x_n)) \\ {}={} &amp; f(x_n) - f&#039;(x_n) (\hat{a} f(x_n)) + e \hat{a}^2 f(x_n)^2 \\ {}={} &amp; f(x_n) (1 - f&#039;(x_n) \hat{a}) + e \hat{a}^2 f(x_n)^2 ' title=' f(x_{n+1}) ={} &amp; f(x_n - \hat{a} f(x_n)) \\ {}={} &amp; f(x_n) - f&#039;(x_n) (\hat{a} f(x_n)) + e \hat{a}^2 f(x_n)^2 \\ {}={} &amp; f(x_n) (1 - f&#039;(x_n) \hat{a}) + e \hat{a}^2 f(x_n)^2 ' class='latex-displaystyle' /> for some <img src='http://math.fontein.de/wp-content/latex/218/218cf5dd1b33cbb6d74f6c52da3aba1b-T-000000-0.png' alt='e \in R' title='e \in R' class='latex-inline' />. Now <img src='http://math.fontein.de/wp-content/latex/ba1/ba1a2f2b7758826b7febcfef12df2da8-T-000000-0.png' alt='1 - f&#039;(x_n) \hat{a} \in \fraka' title='1 - f&#039;(x_n) \hat{a} \in \fraka' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/e19/e19ca1b2c5cbf63a06c27e1852347c40-T-000000-0.png' alt='f(x_n) (1 - f&#039;(x_n) \hat{a}) \in \fraka^{n+2}' title='f(x_n) (1 - f&#039;(x_n) \hat{a}) \in \fraka^{n+2}' class='latex-inline' />. Moreover, <img src='http://math.fontein.de/wp-content/latex/b3c/b3c9654e8ecef3d676d65d384aa7bfa0-T-000000-0.png' alt='f(x_n)^2 \in (\fraka^{n+1})^2 \subseteq \fraka^{n + 2}' title='f(x_n)^2 \in (\fraka^{n+1})^2 \subseteq \fraka^{n + 2}' class='latex-inline' />. Combining this gives <img src='http://math.fontein.de/wp-content/latex/e94/e9401c21afd6ceb6b27bb02bbf1e033f-T-000000-0.png' alt='f(x_{n+1}) \in \fraka^{n+2}' title='f(x_{n+1}) \in \fraka^{n+2}' class='latex-inline' />.</p>

<p>Therefore, the proof of Hensel&#8217;s lemma is completed. Moreover, we obtained an algorithm to refine an approximation of <img src='http://math.fontein.de/wp-content/latex/ebb/ebb14a3ab875b742dbaf9c4948098988-T-000000-0.png' alt='\frac{1}{a} \in \Z_p' title='\frac{1}{a} \in \Z_p' class='latex-inline' /> without using the Extended Euclidean Algorithm: as soon as <img src='http://math.fontein.de/wp-content/latex/729/72916bd16690b2472e55667e0f5058ba-T-000000-0.png' alt='\hat{a} \in \Z' title='\hat{a} \in \Z' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/dcb/dcb1728119724aef43b2648f26e662d6-T-000000-0.png' alt='a \hat{a} \equiv 1 \pmod{p}' title='a \hat{a} \equiv 1 \pmod{p}' class='latex-inline' /> is known, we can compute <img src='http://math.fontein.de/wp-content/latex/07e/07ea9eb1f4232484e23c7ec7420df172-T-000000-0.png' alt='\frac{1}{a}' title='\frac{1}{a}' class='latex-inline' /> modulo <img src='http://math.fontein.de/wp-content/latex/02b/02b94fb0b98d35adfe83213a19cb9f5f-T-000000-0.png' alt='\frakm_p^n' title='\frakm_p^n' class='latex-inline' /> by applying the Newton iteration <img src='http://math.fontein.de/wp-content/latex/f89/f896a46795e777d08441208a0b1b51e2-T-000000-0.png' alt='x \mapsto x - \hat{a} f(x) = x - \hat{a} (a x - 1) = x (1 - \hat{a} a) + \hat{a} a' title='x \mapsto x - \hat{a} f(x) = x - \hat{a} (a x - 1) = x (1 - \hat{a} a) + \hat{a} a' class='latex-inline' /> only <img src='http://math.fontein.de/wp-content/latex/f69/f69fdffb82267fca1be8c6913635b318-T-000000-0.png' alt='n - 1' title='n - 1' class='latex-inline' /> times. Moreover, we can start with some intermediate result, say <img src='http://math.fontein.de/wp-content/latex/07e/07ea9eb1f4232484e23c7ec7420df172-T-000000-0.png' alt='\frac{1}{a}' title='\frac{1}{a}' class='latex-inline' /> modulo <img src='http://math.fontein.de/wp-content/latex/3cb/3cb905ad7f180e0e504be78f938286c0-T-000000-0.png' alt='p^m' title='p^m' class='latex-inline' />, to compute <img src='http://math.fontein.de/wp-content/latex/07e/07ea9eb1f4232484e23c7ec7420df172-T-000000-0.png' alt='\frac{1}{a}' title='\frac{1}{a}' class='latex-inline' /> modulo <img src='http://math.fontein.de/wp-content/latex/9d0/9d0408f6baa8986c76a4899544d28251-T-000000-0.png' alt='p^n' title='p^n' class='latex-inline' /> (with <img src='http://math.fontein.de/wp-content/latex/640/640d785f3813b991e3c77c559b2c2729-T-000000-0.png' alt='n &gt; m' title='n &gt; m' class='latex-inline' />) in at most <img src='http://math.fontein.de/wp-content/latex/88a/88a21e6a3e2ebbd7deb5212b0baa4058-T-000000-0.png' alt='n - m' title='n - m' class='latex-inline' /> iterations (which each need one multiplication and one addition modulo <img src='http://math.fontein.de/wp-content/latex/9d0/9d0408f6baa8986c76a4899544d28251-T-000000-0.png' alt='p^n' title='p^n' class='latex-inline' />). This is considerably faster than applying the Extended Euclidean Algorithm for <img src='http://math.fontein.de/wp-content/latex/0cc/0cc175b9c0f1b6a831c399e269772661-T-000000-0.png' alt='a' title='a' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/9d0/9d0408f6baa8986c76a4899544d28251-T-000000-0.png' alt='p^n' title='p^n' class='latex-inline' />.</p>

<h3>So, What About <img src='http://math.fontein.de/wp-content/latex/033/033b571c237d78ae1c9908427fdf52ce-T-000000-0.png' alt='\frac{a}{b}' title='\frac{a}{b}' class='latex-inline' /> in <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' />?</h3>

<p>Assume that <img src='http://math.fontein.de/wp-content/latex/933/9335f7cea02bc4611e973fd1c3cc239c-T-000000-0.png' alt='p \nmid b' title='p \nmid b' class='latex-inline' />; then we know that <img src='http://math.fontein.de/wp-content/latex/cdc/cdc0b813452f42fdb82c82377c0ff93e-T-000000-0.png' alt='\frac{a}{b} \in \Z_p' title='\frac{a}{b} \in \Z_p' class='latex-inline' />. Consider the polynomial <img src='http://math.fontein.de/wp-content/latex/cc8/cc8737b096b204d107e9de79136b9e49-T-000000-0.png' alt='f := b x - a \in \Z[x]' title='f := b x - a \in \Z[x]' class='latex-inline' />; clearly, <img src='http://math.fontein.de/wp-content/latex/520/5208c012acf692b7a3142f3389b39272-T-000000-0.png' alt='f(\frac{a}{b}) = 0' title='f(\frac{a}{b}) = 0' class='latex-inline' /> in <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' />, and <img src='http://math.fontein.de/wp-content/latex/db0/db0a579134b487e7ae3df80be5fabfd0-T-000000-0.png' alt='f&#039;(\frac{a}{b}) = b' title='f&#039;(\frac{a}{b}) = b' class='latex-inline' /> is a unit in <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' />. Therefore, we can use the methods from above to compute <img src='http://math.fontein.de/wp-content/latex/cdc/cdc0b813452f42fdb82c82377c0ff93e-T-000000-0.png' alt='\frac{a}{b} \in \Z_p' title='\frac{a}{b} \in \Z_p' class='latex-inline' />.</p>

<p>First, we need an approximation of <img src='http://math.fontein.de/wp-content/latex/033/033b571c237d78ae1c9908427fdf52ce-T-000000-0.png' alt='\frac{a}{b}' title='\frac{a}{b}' class='latex-inline' /> modulo <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />. For that, use the Extended Euclidean Algorithm to compute <img src='http://math.fontein.de/wp-content/latex/f9d/f9d70d4ed7d5b5eb8cf3c5cb09334a68-T-000000-0.png' alt='c, c&#039; \in \Z' title='c, c&#039; \in \Z' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/72c/72ccfc5b001e99c6b4e7f93b3b0d346b-T-000000-0.png' alt='b c + p c&#039; = 1' title='b c + p c&#039; = 1' class='latex-inline' />; then <img src='http://math.fontein.de/wp-content/latex/d54/d54ec4f539bf8e761d51d04ab96958da-T-000000-0.png' alt='a c' title='a c' class='latex-inline' /> satisfies <img src='http://math.fontein.de/wp-content/latex/d71/d71abfe57464d4bc9b28e06a585cc461-T-000000-0.png' alt='(a c) b \equiv a \pmod{p}' title='(a c) b \equiv a \pmod{p}' class='latex-inline' />, i.e. <img src='http://math.fontein.de/wp-content/latex/8e9/8e937ea8369b4e5370c28b72b6eb02e9-T-000000-0.png' alt='\frac{a}{b} + \frakm_p = a c + \frakm_p' title='\frac{a}{b} + \frakm_p = a c + \frakm_p' class='latex-inline' />.</p>

<p>Set <img src='http://math.fontein.de/wp-content/latex/5d4/5d45512fed932e98a7252b6061f5ec8d-T-000000-0.png' alt='a_0 := a c \mod p' title='a_0 := a c \mod p' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/508/508660542695353b0c4ab4c190bd51bf-T-000000-0.png' alt='\displaystyle  a_{n+1} := a_n - c (b a_n - a) \mod p^{n+2} = a_n (1 - c b) + c a \mod p^{n+2}, ' title='\displaystyle  a_{n+1} := a_n - c (b a_n - a) \mod p^{n+2} = a_n (1 - c b) + c a \mod p^{n+2}, ' class='latex-displaystyle' /> <img src='http://math.fontein.de/wp-content/latex/4b1/4b152567a12fdbcd2200b4dc72f4a7ca-T-000000-0.png' alt='n \ge 0' title='n \ge 0' class='latex-inline' />. Then, by the above, <img src='http://math.fontein.de/wp-content/latex/748/748fc6262bc02150406f7ac6f78ddf98-T-000000-0.png' alt='a_n + \frakm_p^{n+1} = \frac{a}{b} + \frakm_p^{n+1}' title='a_n + \frakm_p^{n+1} = \frac{a}{b} + \frakm_p^{n+1}' class='latex-inline' />. Hence, this allows to approximate <img src='http://math.fontein.de/wp-content/latex/033/033b571c237d78ae1c9908427fdf52ce-T-000000-0.png' alt='\frac{a}{b}' title='\frac{a}{b}' class='latex-inline' /> up to an error of <img src='http://math.fontein.de/wp-content/latex/02b/02b94fb0b98d35adfe83213a19cb9f5f-T-000000-0.png' alt='\frakm_p^n' title='\frakm_p^n' class='latex-inline' /> in <img src='http://math.fontein.de/wp-content/latex/f69/f69fdffb82267fca1be8c6913635b318-T-000000-0.png' alt='n - 1' title='n - 1' class='latex-inline' /> iterations; we only need to perform the Extended Euclidean Algorithm once (to get a starting value), and from that, we can refine the approximation by applying a linear map.</p>

<p>As an example, let us consider <img src='http://math.fontein.de/wp-content/latex/93b/93b05c90d14a117ba52da1d743a43ab1-T-000000-0.png' alt='\frac{1}{2}' title='\frac{1}{2}' class='latex-inline' /> in <img src='http://math.fontein.de/wp-content/latex/fe9/fe99f9248526d29e02041645786f7878-T-000000-0.png' alt='\Z_5' title='\Z_5' class='latex-inline' />, i.e. <img src='http://math.fontein.de/wp-content/latex/fd3/fd352b68bf83391284e044021cab0339-T-000000-0.png' alt='a = 1' title='a = 1' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/403/4037375406929e1b4ed5510af3f57e61-T-000000-0.png' alt='b = 2' title='b = 2' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/baf/baf76a26a7c488db7524f567bf7ac76a-T-000000-0.png' alt='p = 5' title='p = 5' class='latex-inline' />. Clearly, <img src='http://math.fontein.de/wp-content/latex/2ec/2ecebd2ea31b201d085b03d66b5321e9-T-000000-0.png' alt='3 \cdot 2 - 1 \cdot 5 = 1' title='3 \cdot 2 - 1 \cdot 5 = 1' class='latex-inline' />, whence we get <img src='http://math.fontein.de/wp-content/latex/116/1162c19bafdb0fedf20c6cb27eb83e96-T-000000-0.png' alt='c = 3' title='c = 3' class='latex-inline' />. Hence, <img src='http://math.fontein.de/wp-content/latex/6ee/6ee45a831243d83e653a653b0756c17d-T-000000-0.png' alt='a_0 = 3' title='a_0 = 3' class='latex-inline' />. Now <img src='http://math.fontein.de/wp-content/latex/104/104bf4f0bef29c9d2aa2010054e029e5-T-000000-0.png' alt='1 - c b = -5' title='1 - c b = -5' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/faa/faad61e7f0963ff25c9714d91a3db312-T-000000-0.png' alt='c a = 3' title='c a = 3' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/e3d/e3d46d0a634cd22b2e25c2c5df04ba06-T-000000-0.png' alt='a_{n+1} = 3 - 5 a_n \mod 5^{n+2}' title='a_{n+1} = 3 - 5 a_n \mod 5^{n+2}' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/72e/72e07933327508be8d2ca29128a878d7-T-000000-0.png' alt='n \in \N' title='n \in \N' class='latex-inline' />. We rapidly get <img src='http://math.fontein.de/wp-content/latex/aa5/aa533e152422349f7a275ecd78069493-T-000000-0.png' alt=' a_0 ={} &amp; 3, \\ a_1 ={} &amp; 13 = 2 \cdot 5 + 3, \\ a_2 ={} &amp; 63 = 2 \cdot 5^2 + 2 \cdot 5 + 3, \\ a_3 ={} &amp; 313 = 2 \cdot 5^3 + 2 \cdot 5^2 + 2 \cdot 5 + 3, \\ a_4 ={} &amp; 1563 = 3 + 2 \cdot \sum_{n=1}^4 5^n, \\ a_5 ={} &amp; 7813 = 3 + 2 \cdot \sum_{n=1}^5 5^n, \\ a_6 ={} &amp; 39063 = 3 + 2 \cdot \sum_{n=1}^6 5^n, \\ a_7 ={} &amp; 195313 = 3 + 2 \cdot \sum_{n=1}^7 5^n, \\ a_8 ={} &amp; 976563 = 3 + 2 \cdot \sum_{n=1}^8 5^n, \\ a_9 ={} &amp; 4882813 = 3 + 2 \cdot \sum_{n=1}^9 5^n, \\ a_{10} ={} &amp; 24414063 = 3 + 2 \cdot \sum_{n=1}^{10} 5^n, \\ \vdots\;\; &amp; ' title=' a_0 ={} &amp; 3, \\ a_1 ={} &amp; 13 = 2 \cdot 5 + 3, \\ a_2 ={} &amp; 63 = 2 \cdot 5^2 + 2 \cdot 5 + 3, \\ a_3 ={} &amp; 313 = 2 \cdot 5^3 + 2 \cdot 5^2 + 2 \cdot 5 + 3, \\ a_4 ={} &amp; 1563 = 3 + 2 \cdot \sum_{n=1}^4 5^n, \\ a_5 ={} &amp; 7813 = 3 + 2 \cdot \sum_{n=1}^5 5^n, \\ a_6 ={} &amp; 39063 = 3 + 2 \cdot \sum_{n=1}^6 5^n, \\ a_7 ={} &amp; 195313 = 3 + 2 \cdot \sum_{n=1}^7 5^n, \\ a_8 ={} &amp; 976563 = 3 + 2 \cdot \sum_{n=1}^8 5^n, \\ a_9 ={} &amp; 4882813 = 3 + 2 \cdot \sum_{n=1}^9 5^n, \\ a_{10} ={} &amp; 24414063 = 3 + 2 \cdot \sum_{n=1}^{10} 5^n, \\ \vdots\;\; &amp; ' class='latex-displaystyle' /> Hence, it seems that <img src='http://math.fontein.de/wp-content/latex/5c2/5c2a1d15956eaa94226a2943fc7c81b2-T-000000-0.png' alt='\displaystyle  a_n = 3 + 2 \cdot \sum_{i=1}^n 5^i = 3 + 2 \cdot 5 \cdot \sum_{i=0}^{n-1} 5^i = 3 + \tfrac{5}{2} (5^n - 1), ' title='\displaystyle  a_n = 3 + 2 \cdot \sum_{i=1}^n 5^i = 3 + 2 \cdot 5 \cdot \sum_{i=0}^{n-1} 5^i = 3 + \tfrac{5}{2} (5^n - 1), ' class='latex-displaystyle' /> i.e. we have <img src='http://math.fontein.de/wp-content/latex/7d9/7d9a7e4cb0fcb974eba914ba58d6dfad-T-000000-0.png' alt='\displaystyle  \frac{1}{2} = 3 + \sum_{n=1}^\infty 2 \cdot 5^n \in \Z_5. ' title='\displaystyle  \frac{1}{2} = 3 + \sum_{n=1}^\infty 2 \cdot 5^n \in \Z_5. ' class='latex-displaystyle' /> And indeed: <img src='http://math.fontein.de/wp-content/latex/720/720f4e476bd209584cfef53dc990e7e6-T-000000-0.png' alt='\displaystyle  2 \cdot \biggl( 3 + \sum_{n=1}^\infty 2 \cdot 5^n \biggr) = 2 + 4 \cdot \sum_{n=0}^\infty 5^n = 1 ' title='\displaystyle  2 \cdot \biggl( 3 + \sum_{n=1}^\infty 2 \cdot 5^n \biggr) = 2 + 4 \cdot \sum_{n=0}^\infty 5^n = 1 ' class='latex-displaystyle' /> since <img src='http://math.fontein.de/wp-content/latex/429/429daae79d62127038292e4be9063ed2-T-000000-0.png' alt='\displaystyle  -1 = (p - 1) \sum_{n=0}^\infty p^n \in \Z_p. ' title='\displaystyle  -1 = (p - 1) \sum_{n=0}^\infty p^n \in \Z_p. ' class='latex-displaystyle' /> Note that <img src='http://math.fontein.de/wp-content/latex/499/49968cd6db3c7940af22465028678375-T-000000-0.png' alt='-1 = (p - 1) \sum_{n=0}^\infty p^n' title='-1 = (p - 1) \sum_{n=0}^\infty p^n' class='latex-inline' /> follows from the fact that <img src='http://math.fontein.de/wp-content/latex/9d0/9d033a7f39feba6ad8c4e1565050bf74-T-000000-0.png' alt='\nu_p(p) &lt; 0' title='\nu_p(p) &lt; 0' class='latex-inline' />, whence <img src='http://math.fontein.de/wp-content/latex/313/3131a03473ca38f4937e2a1217326ab2-T-000000-0.png' alt='\sum_{n=0}^\infty p^n' title='\sum_{n=0}^\infty p^n' class='latex-inline' /> converges in <img src='http://math.fontein.de/wp-content/latex/1d8/1d845fd5c95058f0c19a8af900c11e16-T-000000-0.png' alt='\Z_p' title='\Z_p' class='latex-inline' /> (see the <a href="http://math.fontein.de/forward.php?r=#padictheorem">theorem</a>); this is a <a href="http://math.fontein.de/forward.php?r=http://en.wikipedia.org/wiki/Geometric_series">geometric series</a>, whence its value is <img src='http://math.fontein.de/wp-content/latex/5cf/5cf5a7599bc70cd8075a638991914659-T-000000-0.png' alt='\frac{1}{1 - p}' title='\frac{1}{1 - p}' class='latex-inline' />. Hence, if we multiply by <img src='http://math.fontein.de/wp-content/latex/551/55109794a7fc43ffe9e370cde37d469b-T-000000-0.png' alt='p - 1' title='p - 1' class='latex-inline' />, we obtain <img src='http://math.fontein.de/wp-content/latex/6bb/6bb61e3b7bce0931da574d19d1d82c88-T-000000-0.png' alt='-1' title='-1' class='latex-inline' />.</p>

<p>Finally, let us consider another example, namely <img src='http://math.fontein.de/wp-content/latex/797/797147fe6a9fead4a50b9c7e7a7ca505-T-000000-0.png' alt='\frac{432}{1234}' title='\frac{432}{1234}' class='latex-inline' /> in <img src='http://math.fontein.de/wp-content/latex/0c8/0c881fcdc71f127d02716b2ef757fdb2-T-000000-0.png' alt='\Z_{17}' title='\Z_{17}' class='latex-inline' />, i.e. <img src='http://math.fontein.de/wp-content/latex/4fa/4fa6a74582875e13cfde882161de03a6-T-000000-0.png' alt='a = 432' title='a = 432' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/399/3997276e936d96a3ae80e939c34b00b5-T-000000-0.png' alt='b = 1234' title='b = 1234' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/194/194293d7815ffa996e9aaa3a6672299e-T-000000-0.png' alt='p = 17' title='p = 17' class='latex-inline' />; then <img src='http://math.fontein.de/wp-content/latex/325/3251c60a3f94681e05ec293d3da2cb4d-T-000000-0.png' alt='(-5) b + 363 p = 1' title='(-5) b + 363 p = 1' class='latex-inline' />, i.e. <img src='http://math.fontein.de/wp-content/latex/686/686c0c39552c7d70546718f2c2d7146f-T-000000-0.png' alt='c = -5' title='c = -5' class='latex-inline' />. Hence, we obtain <img src='http://math.fontein.de/wp-content/latex/7fc/7fca6d69d105e75f97194e433f00889e-T-000000-0.png' alt='a_0 := a c \mod p = 16' title='a_0 := a c \mod p = 16' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/333/3332d9f976d2c8635a4ef794e39b9a0c-T-000000-0.png' alt='\displaystyle  a_{n+1} = (1 - c b) a_n + c a \mod 17^{n+2} = 6171 a_n - 2160 \mod 17^{n+2}, ' title='\displaystyle  a_{n+1} = (1 - c b) a_n + c a \mod 17^{n+2} = 6171 a_n - 2160 \mod 17^{n+2}, ' class='latex-displaystyle' /> <img src='http://math.fontein.de/wp-content/latex/72e/72e07933327508be8d2ca29128a878d7-T-000000-0.png' alt='n \in \N' title='n \in \N' class='latex-inline' />. We then obtain <img src='http://math.fontein.de/wp-content/latex/242/2424af0008d6080ad72a10013a89326e-T-000000-0.png' alt=' a_0 ={} &amp; 16, \\ a_1 ={} &amp; 50 = 16 + 2 \cdot 17, \\ a_2 ={} &amp; 1784 = 16 + 2 \cdot 17 + 6 \cdot 17^2, \\ a_3 ={} &amp; 65653 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3, \\ a_4 ={} &amp; 483258 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3 + 5 \cdot 17^4, \\ a_5 ={} &amp; 13261971 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3 + 5 \cdot 17^4 \\ {}+{} &amp; 9 \cdot 17^5, \\ a_6 ={} &amp; 182224954 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3 + 5 \cdot 17^4 \\ {}+{} &amp; 9 \cdot 17^5 + 7 \cdot 17^6, \\ a_7 ={} &amp; 1413240973 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3 + 5 \cdot 17^4 \\ {}+{} &amp; 9 \cdot 17^5 + 7 \cdot 17^6 + 3 \cdot 17^7, \\ a_8 ={} &amp; 64195057942 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3 + 5 \cdot 17^4 \\ {}+{} &amp; 9 \cdot 17^5 + 7 \cdot 17^6 + 3 \cdot 17^7 + 9 \cdot 17^8, \\ a_9 ={} &amp; 1012898069918 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3 + 5 \cdot 17^4 \\ {}+{} &amp; 9 \cdot 17^5 + 7 \cdot 17^6 + 3 \cdot 17^7 + 9 \cdot 17^8 + 8 \cdot 17^9, \\ a_{10} ={} &amp; 13108861472612 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3 + 5 \cdot 17^4 \\ {}+{} &amp; 9 \cdot 17^5 + 7 \cdot 17^6 + 3 \cdot 17^7 + 9 \cdot 17^8 + 8 \cdot 17^9 + 6 \cdot 17^{10}, \\ \vdots\;\; &amp; ' title=' a_0 ={} &amp; 16, \\ a_1 ={} &amp; 50 = 16 + 2 \cdot 17, \\ a_2 ={} &amp; 1784 = 16 + 2 \cdot 17 + 6 \cdot 17^2, \\ a_3 ={} &amp; 65653 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3, \\ a_4 ={} &amp; 483258 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3 + 5 \cdot 17^4, \\ a_5 ={} &amp; 13261971 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3 + 5 \cdot 17^4 \\ {}+{} &amp; 9 \cdot 17^5, \\ a_6 ={} &amp; 182224954 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3 + 5 \cdot 17^4 \\ {}+{} &amp; 9 \cdot 17^5 + 7 \cdot 17^6, \\ a_7 ={} &amp; 1413240973 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3 + 5 \cdot 17^4 \\ {}+{} &amp; 9 \cdot 17^5 + 7 \cdot 17^6 + 3 \cdot 17^7, \\ a_8 ={} &amp; 64195057942 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3 + 5 \cdot 17^4 \\ {}+{} &amp; 9 \cdot 17^5 + 7 \cdot 17^6 + 3 \cdot 17^7 + 9 \cdot 17^8, \\ a_9 ={} &amp; 1012898069918 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3 + 5 \cdot 17^4 \\ {}+{} &amp; 9 \cdot 17^5 + 7 \cdot 17^6 + 3 \cdot 17^7 + 9 \cdot 17^8 + 8 \cdot 17^9, \\ a_{10} ={} &amp; 13108861472612 = 16 + 2 \cdot 17 + 6 \cdot 17^2 + 13 \cdot 17^3 + 5 \cdot 17^4 \\ {}+{} &amp; 9 \cdot 17^5 + 7 \cdot 17^6 + 3 \cdot 17^7 + 9 \cdot 17^8 + 8 \cdot 17^9 + 6 \cdot 17^{10}, \\ \vdots\;\; &amp; ' class='latex-displaystyle' /> This can be continued a long time, without seeing any pattern.</p>

<p>One would expect that the sequence of digits evenutally gets (eventually) periodic, as it happens with the decimal expansion of rational numbers. For that, assume that we know <img src='http://math.fontein.de/wp-content/latex/1a1/1a1e49a190f1cb8e4073364f621b4194-T-000000-0.png' alt='\frac{a}{b} = p^t \frac{a&#039;}{b&#039;}' title='\frac{a}{b} = p^t \frac{a&#039;}{b&#039;}' class='latex-inline' />, where <img src='http://math.fontein.de/wp-content/latex/6d2/6d262c0cf4e4071f9863bbefe3f4dbca-T-000000-0.png' alt='a&#039;, b&#039;' title='a&#039;, b&#039;' class='latex-inline' /> are coprime and not divisible by <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />, and <img src='http://math.fontein.de/wp-content/latex/1a6/1a6f0f972924dfdbf59e867acb7ddb82-T-000000-0.png' alt='b&#039; &gt; 0' title='b&#039; &gt; 0' class='latex-inline' />. Now let <img src='http://math.fontein.de/wp-content/latex/ee5/ee5e5c003694e7cd5ae404923c665edb-T-000000-0.png' alt='\ell' title='\ell' class='latex-inline' /> be the order of <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' /> in the multiplicative group <img src='http://math.fontein.de/wp-content/latex/6ad/6adc0d117f9c6ea470e1f10281c67a7c-T-000000-0.png' alt='\Z/b&#039;\Z' title='\Z/b&#039;\Z' class='latex-inline' />; hence, it is the smallest non-negative rational number with <img src='http://math.fontein.de/wp-content/latex/d1a/d1a60cdfe39416384cdf5e5e8c675dbf-T-000000-0.png' alt='b&#039; \mid (p^\ell - 1)' title='b&#039; \mid (p^\ell - 1)' class='latex-inline' />. Then <img src='http://math.fontein.de/wp-content/latex/0a4/0a442ed41c69d0f30ec8dde044471c2b-T-000000-0.png' alt='\frac{a}{b} = p^t a&#039; \frac{p^\ell - 1}{b&#039;} \frac{1}{p^\ell - 1}' title='\frac{a}{b} = p^t a&#039; \frac{p^\ell - 1}{b&#039;} \frac{1}{p^\ell - 1}' class='latex-inline' />. Now, <img src='http://math.fontein.de/wp-content/latex/739/739fd59ee646e2bc9c0659e5e5204d2d-T-000000-0.png' alt='\displaystyle  \frac{1}{p^\ell - 1} = -\sum_{n=0}^\infty p^{\ell n} ' title='\displaystyle  \frac{1}{p^\ell - 1} = -\sum_{n=0}^\infty p^{\ell n} ' class='latex-displaystyle' /> by the geometric series (as above), whence <img src='http://math.fontein.de/wp-content/latex/94e/94ef833b5e304cd41d91f58fae8c30c6-T-000000-0.png' alt='\displaystyle  \frac{a}{b} = a&#039; \frac{p^\ell - 1}{b&#039;} \cdot \sum_{n=0}^\infty p^{\ell n + t}. ' title='\displaystyle  \frac{a}{b} = a&#039; \frac{p^\ell - 1}{b&#039;} \cdot \sum_{n=0}^\infty p^{\ell n + t}. ' class='latex-displaystyle' /> Moreover, write <img src='http://math.fontein.de/wp-content/latex/e39/e39f7aaa68568fd6dc3332cfdfee4b46-T-000000-0.png' alt='\frac{a&#039;}{b&#039;} = \frac{a&#039;&#039;}{b&#039;} + a&#039;&#039;&#039;' title='\frac{a&#039;}{b&#039;} = \frac{a&#039;&#039;}{b&#039;} + a&#039;&#039;&#039;' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/14b/14b5a17f7944643d05cd1ff76d75ada2-T-000000-0.png' alt='a&#039;&#039;&#039; \in \Z' title='a&#039;&#039;&#039; \in \Z' class='latex-inline' /> such that <img src='http://math.fontein.de/wp-content/latex/2e5/2e5fdd808717a1d51964fe4abc4b7485-T-000000-0.png' alt='0 \le a&#039;&#039; &lt; b&#039;' title='0 \le a&#039;&#039; &lt; b&#039;' class='latex-inline' />. Then <img src='http://math.fontein.de/wp-content/latex/7b2/7b2d869b4405aaf1bcb7d8d10c28b44c-T-000000-0.png' alt='a&#039; \frac{p^\ell - 1}{b&#039;} = \frac{a&#039;&#039; (p^\ell - 1)}{b&#039;} + a&#039;&#039;&#039; (p^\ell - 1)' title='a&#039; \frac{p^\ell - 1}{b&#039;} = \frac{a&#039;&#039; (p^\ell - 1)}{b&#039;} + a&#039;&#039;&#039; (p^\ell - 1)' class='latex-inline' />, and <img src='http://math.fontein.de/wp-content/latex/e59/e59943d6383b8b1c147d9b85cddff577-T-000000-0.png' alt='0 \le \frac{a&#039;&#039; (p^\ell - 1)}{b&#039;} &lt; p^\ell' title='0 \le \frac{a&#039;&#039; (p^\ell - 1)}{b&#039;} &lt; p^\ell' class='latex-inline' />. Set <img src='http://math.fontein.de/wp-content/latex/ace/acef3c84e20c464567b0efdf9303bc72-T-000000-0.png' alt='x := \frac{a&#039;&#039; (p^\ell - 1)}{b&#039;}' title='x := \frac{a&#039;&#039; (p^\ell - 1)}{b&#039;}' class='latex-inline' />; then, if we write <img src='http://math.fontein.de/wp-content/latex/f80/f809bee90276d669d8d18db9573b7504-T-000000-0.png' alt='x = \sum_{i=0}^{\ell - 1} x_i p^i' title='x = \sum_{i=0}^{\ell - 1} x_i p^i' class='latex-inline' />, we see that <img src='http://math.fontein.de/wp-content/latex/daa/daa4ef5e4438bb1c67aa27e02360cfe5-T-000000-0.png' alt='\displaystyle  \frac{a}{b} = a&#039;&#039;&#039; + \sum_{n=0}^\infty \sum_{i=0}^{\ell - 1} a_i p^{\ell n + i + t} = a&#039;&#039;&#039; + \sum_{n=0}^\infty a_{\ell \mod n} p^{\ell + t}. ' title='\displaystyle  \frac{a}{b} = a&#039;&#039;&#039; + \sum_{n=0}^\infty \sum_{i=0}^{\ell - 1} a_i p^{\ell n + i + t} = a&#039;&#039;&#039; + \sum_{n=0}^\infty a_{\ell \mod n} p^{\ell + t}. ' class='latex-displaystyle' /> We are left to consider the <img src='http://math.fontein.de/wp-content/latex/020/0201c5548cce34ff8a8e38c4867832ee-T-000000-0.png' alt='a&#039;&#039;&#039;' title='a&#039;&#039;&#039;' class='latex-inline' /> part. In case <img src='http://math.fontein.de/wp-content/latex/98a/98a5837c5b47ae24858aee7cebd11d13-T-000000-0.png' alt='a&#039;&#039;&#039; &gt; 0' title='a&#039;&#039;&#039; &gt; 0' class='latex-inline' />, the <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />-adic expansion of <img src='http://math.fontein.de/wp-content/latex/020/0201c5548cce34ff8a8e38c4867832ee-T-000000-0.png' alt='a&#039;&#039;&#039;' title='a&#039;&#039;&#039;' class='latex-inline' /> has finite length, whence adding it does not change the periodicity of <img src='http://math.fontein.de/wp-content/latex/033/033b571c237d78ae1c9908427fdf52ce-T-000000-0.png' alt='\frac{a}{b}' title='\frac{a}{b}' class='latex-inline' />. But what if <img src='http://math.fontein.de/wp-content/latex/455/455ee54da50311f379d1b3b5cc08b77c-T-000000-0.png' alt='a&#039;&#039;&#039; &lt; 0' title='a&#039;&#039;&#039; &lt; 0' class='latex-inline' />?</p>

<blockquote class='theorem'><div class='theoremtitle'>Lemma.</div> <div class='theoremmain'>
Let <img src='http://math.fontein.de/wp-content/latex/f86/f86da26412d7dfd12a6fa4a694a2f6f6-T-000000-0.png' alt='x = \sum_{n=0}^\infty a_n p^n \in \Z_p' title='x = \sum_{n=0}^\infty a_n p^n \in \Z_p' class='latex-inline' />, where <img src='http://math.fontein.de/wp-content/latex/3d1/3d1a8d63b6ece82fa876cf5332cdb7ad-T-000000-0.png' alt='0 \le a_n &lt; p' title='0 \le a_n &lt; p' class='latex-inline' />. Then <img src='http://math.fontein.de/wp-content/latex/cfa/cfaa3561007f0595cd6620ef5327ca3b-T-000000-0.png' alt='\displaystyle  -x = 1 + \sum_{n=0}^\infty (p - 1 - a_n) p^n. ' title='\displaystyle  -x = 1 + \sum_{n=0}^\infty (p - 1 - a_n) p^n. ' class='latex-displaystyle' />
</div></blockquote>

<blockquote class='proof'><div class='prooftitle'>Proof.</div> <div class='proofmain'>
Clearly, <img src='http://math.fontein.de/wp-content/latex/ad8/ad8f7f56ef00674f160a38db44270ba3-T-000000-0.png' alt='\displaystyle  \sum_{n=0}^\infty a_n p^n + \sum_{n=0}^\infty (p - 1 - a_n) p^n = (p - 1) \sum_{n=0}^\infty p^n = -1 \in \Z_p, ' title='\displaystyle  \sum_{n=0}^\infty a_n p^n + \sum_{n=0}^\infty (p - 1 - a_n) p^n = (p - 1) \sum_{n=0}^\infty p^n = -1 \in \Z_p, ' class='latex-displaystyle' /> whence adding <img src='http://math.fontein.de/wp-content/latex/c4c/c4ca4238a0b923820dcc509a6f75849b-T-000000-0.png' alt='1' title='1' class='latex-inline' /> results in the statement.
</div><div class='proofqed'>□</div></blockquote>

<p>Therefore, the <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />-adic expansion of <img src='http://math.fontein.de/wp-content/latex/020/0201c5548cce34ff8a8e38c4867832ee-T-000000-0.png' alt='a&#039;&#039;&#039;' title='a&#039;&#039;&#039;' class='latex-inline' /> is periodic if <img src='http://math.fontein.de/wp-content/latex/455/455ee54da50311f379d1b3b5cc08b77c-T-000000-0.png' alt='a&#039;&#039;&#039; &lt; 0' title='a&#039;&#039;&#039; &lt; 0' class='latex-inline' />, with almost all <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />-adic digits being <img src='http://math.fontein.de/wp-content/latex/551/55109794a7fc43ffe9e370cde37d469b-T-000000-0.png' alt='p - 1' title='p - 1' class='latex-inline' />. Now, we can conclude with the fact that the sum of two periodic <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />-adic expansions is periodic.</p>

<p>Conversely, assume that <img src='http://math.fontein.de/wp-content/latex/41c/41c4bf0e8411316fd54505203e0e3e39-T-000000-0.png' alt='x = x&#039; + \sum_{n=0}^\infty a_{n \mod m} p^n \in \Z_p' title='x = x&#039; + \sum_{n=0}^\infty a_{n \mod m} p^n \in \Z_p' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/70b/70b503c33ee2b44cc326509d1b2b92e8-T-000000-0.png' alt='x&#039; \in \Z' title='x&#039; \in \Z' class='latex-inline' /> and <img src='http://math.fontein.de/wp-content/latex/3bc/3bc5b894720792a29a943b7906f6d357-T-000000-0.png' alt='a_0, \dots, a_{m-1} \in \{ 0, \dots, p - 1 \}' title='a_0, \dots, a_{m-1} \in \{ 0, \dots, p - 1 \}' class='latex-inline' />; we claim that <img src='http://math.fontein.de/wp-content/latex/189/1893b4b391e2ccdd61fe3e50aff8efff-T-000000-0.png' alt='x \in \Q' title='x \in \Q' class='latex-inline' />. Clearly, without loss of generality, we can assume that <img src='http://math.fontein.de/wp-content/latex/dc4/dc42de8781e2fc71f34c3bfe5d7ce51b-T-000000-0.png' alt='x&#039; = 0' title='x&#039; = 0' class='latex-inline' />. But then, if we set <img src='http://math.fontein.de/wp-content/latex/181/1810f64ea1639f41fa21b897efc45e93-T-000000-0.png' alt='x&#039;&#039; := \sum_{i=0}^{m-1} a_i p^i \in \Z' title='x&#039;&#039; := \sum_{i=0}^{m-1} a_i p^i \in \Z' class='latex-inline' />, <img src='http://math.fontein.de/wp-content/latex/f7e/f7edb2a9ee327247faf5539958eb65c5-T-000000-0.png' alt='\displaystyle  x = \sum_{n=0}^\infty \sum_{i=0}^{m-1} a_i p^{m n + i} = x&#039;&#039; \cdot \sum_{n=0}^\infty p^{m n} = \frac{x&#039;&#039;}{1 - p^m} \in \Q. ' title='\displaystyle  x = \sum_{n=0}^\infty \sum_{i=0}^{m-1} a_i p^{m n + i} = x&#039;&#039; \cdot \sum_{n=0}^\infty p^{m n} = \frac{x&#039;&#039;}{1 - p^m} \in \Q. ' class='latex-displaystyle' /> Hence, we proved:</p>

<blockquote class='theorem'><div class='theoremtitle'>Proposition.</div> <div class='theoremmain'>
An element <img src='http://math.fontein.de/wp-content/latex/fc9/fc96f31e767f3b451c72cc4f657255aa-T-000000-0.png' alt='x = \sum_{n=t}^\infty a_n p^n \in \Q_p' title='x = \sum_{n=t}^\infty a_n p^n \in \Q_p' class='latex-inline' /> with <img src='http://math.fontein.de/wp-content/latex/3d1/3d1a8d63b6ece82fa876cf5332cdb7ad-T-000000-0.png' alt='0 \le a_n &lt; p' title='0 \le a_n &lt; p' class='latex-inline' /> lies in <img src='http://math.fontein.de/wp-content/latex/6c0/6c0dbad9f0e6bfffef168814eae154b3-T-000000-0.png' alt='\Q' title='\Q' class='latex-inline' /> if, and only if, there exists some <img src='http://math.fontein.de/wp-content/latex/b59/b59f809105e686637ea5659c090315f0-T-000000-0.png' alt='m, m&#039; \in \N' title='m, m&#039; \in \N' class='latex-inline' /> such that for all <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' />, <img src='http://math.fontein.de/wp-content/latex/f47/f47bf2ed95a4e9432763fe733a34d2c6-T-000000-0.png' alt='a_{m&#039; + i} = a_{m&#039; + i + m}' title='a_{m&#039; + i} = a_{m&#039; + i + m}' class='latex-inline' />.
</div><div class='theoremqed'>□</div></blockquote>

<p>Finally, note that the order of 17 in <img src='http://math.fontein.de/wp-content/latex/d55/d553c4209b4bc39a6ee81a28588b3417-T-000000-0.png' alt='\Z/1234\Z' title='\Z/1234\Z' class='latex-inline' /> is <img src='http://math.fontein.de/wp-content/latex/355/3555577c53ef78775ea63f5307cce7dc-T-000000-0.png' alt='\phi(1234) = 616' title='\phi(1234) = 616' class='latex-inline' />; hence, the period length of <img src='http://math.fontein.de/wp-content/latex/797/797147fe6a9fead4a50b9c7e7a7ca505-T-000000-0.png' alt='\frac{432}{1234}' title='\frac{432}{1234}' class='latex-inline' /> is probably 616. We would have had to compute a high amount of <img src='http://math.fontein.de/wp-content/latex/838/83878c91171338902e0fe0fb97a8c47a-T-000000-0.png' alt='p' title='p' class='latex-inline' />-adic digits of <img src='http://math.fontein.de/wp-content/latex/797/797147fe6a9fead4a50b9c7e7a7ca505-T-000000-0.png' alt='\frac{432}{1234}' title='\frac{432}{1234}' class='latex-inline' /> to see this.</p>]]></content:encoded>
			<wfw:commentRss>http://math.fontein.de/2010/02/06/how-to-compute-the-5-adic-expansion-of-12-or-hensels-lemma-and-non-analytic-newton-iteration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

