<?xml version="1.0"?>
<div class="add">

<b>let </b><font color="Maroon" title="c1">p</font>, <font color="Maroon" title="c2">q</font> be   <a href="newton.html#NM1" title="NEWTON:NM.1">Prime</a>;<br/>



<b>assume </b><a NAME="E1:59"/><i><font color="Green" title="E42">A1</font></i>: 
( <font color="Maroon" title="c1">p</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 2 &amp; <font color="Maroon" title="c2">q</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 2 &amp; <font color="Maroon" title="c1">p</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a> <font color="Maroon" title="c2">q</font> &amp; <font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 4 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 3 &amp; <font color="Maroon" title="c2">q</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 4 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 3 )
 ;<br/>

<a NAME="E2:59"/><b>then </b><i><font color="Green" title="E43">A2</font></i>: 
( <font color="Maroon" title="c1">p</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default">4 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p2">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 3 &amp; <font color="Maroon" title="c2">q</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default">4 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p2">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 3 )
 
<b>by </b><i><a class="ref" href="nat_d.html#T2" title="NAT_D:th.2">NAT_D:2</a></i>;<br/>
<a NAME="E3:59"/>
( <font color="Maroon" title="c1">p</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 1 &amp; <font color="Maroon" title="c2">q</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 1 )
 
<b>by </b><i><a class="ref" href="int_2.html#D5" title="INT_2:def.5">INT_2:def 5</a></i>;<br/>
<a NAME="E4:59"/><b>then </b>
( <font color="Maroon" title="c1">p</font> <a href="binarith.html#K3" title="BINARITH:func.3">-'</a> 1 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c1">p</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> 1 &amp; <font color="Maroon" title="c2">q</font> <a href="binarith.html#K3" title="BINARITH:func.3">-'</a> 1 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">q</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> 1 )
 
<b>by </b><i><a class="ref" href="binarith.html#T50" title="BINARITH:th.50">BINARITH:50</a></i>;<br/>
<a NAME="E5:59"/><b>then </b>
( <font color="Maroon" title="c1">p</font> <a href="binarith.html#K3" title="BINARITH:func.3">-'</a> 1 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p3">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1</span>)</span> &amp; <font color="Maroon" title="c2">q</font> <a href="binarith.html#K3" title="BINARITH:func.3">-'</a> 1 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p3">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1</span>)</span> )
 
<b>by </b><i><a class="txt" href="int_5.html#E2:59"><i><font color="Green" title="E43">A2</font></i></a></i>;<br/>
<a NAME="E6:59"/><b>then </b>
( <span class="p1">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="binarith.html#K3" title="BINARITH:func.3">-'</a> 1</span>)</span> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 2 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p2">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1 &amp; <span class="p1">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="binarith.html#K3" title="BINARITH:func.3">-'</a> 1</span>)</span> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 2 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p2">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1 )
 
<b>by </b><i><a class="ref" href="nat_d.html#T18" title="NAT_D:th.18">NAT_D:18</a></i>;<br/>
<b>then </b><i><font color="Green" title="E44">A3</font></i>: <span class="p1">(<span class="default"><a href="int_5.html#K2" title="INT_5:func.2">Lege</a> <font color="Maroon" title="c1">p</font>,<font color="Maroon" title="c2">q</font></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p1">(<span class="default"><a href="int_5.html#K2" title="INT_5:func.2">Lege</a> <font color="Maroon" title="c2">q</font>,<font color="Maroon" title="c1">p</font></span>)</span> = 
<span class="p1">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p4">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1</span>)</span> <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p4">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1</span>)</span></span>)</span>
<b>by </b><i><a class="txt" href="int_5.html#E1:59"><i><font color="Green" title="E42">A1</font></i></a>, <a class="ref" href="int_5.html#T49" target="_self" title="INT_5:th.49">Th49</a></i>
<br/>.= 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p4">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1</span>)</span></span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p3">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1</span>)</span>
<b>by </b><i><a class="ref" href="newton.html#T14" title="NEWTON:th.14">NEWTON:14</a></i>
<br/>.= 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p3">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p4">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span></span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p3">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1</span>)</span>
<b>by </b><i><a class="ref" href="newton.html#T11" title="NEWTON:th.11">NEWTON:11</a></i>
<br/>.= 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><span class="p4">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> 2</span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p3">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span></span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p3">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1</span>)</span>
<b>by </b><i><a class="ref" href="newton.html#T14" title="NEWTON:th.14">NEWTON:14</a></i>
<br/>.= 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default">1 <a href="newton.html#K16" title="NEWTON:func.16">|^</a> 2</span>)</span> <a href="newton.html#K16" title="NEWTON:func.16">|^</a> <span class="p3">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span></span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p3">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1</span>)</span>
<b>by </b><i><a class="ref" href="wsierp_1.html#T2" title="WSIERP_1:th.2">WSIERP_1:2</a></i>
<br/>.= 
<span class="p1">(<span class="default"><span class="p2">(<span class="default">1 <a href="newton.html#K16" title="NEWTON:func.16">|^</a> <span class="p3">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span></span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p3">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1</span>)</span>
<b>by </b><i><a class="ref" href="newton.html#T100" title="NEWTON:th.100">NEWTON:100</a>, <a class="ref" href="square_1.html#T59" title="SQUARE_1:th.59">SQUARE_1:59</a></i>
<br/>.= 
<span class="p1">(<span class="default">1 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span></span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p3">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1</span>)</span>
<b>by </b><i><a class="ref" href="newton.html#T15" title="NEWTON:th.15">NEWTON:15</a></i>
<br/>.= 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p2">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p3">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p1">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span>
<b>by </b><i><a class="ref" href="newton.html#T11" title="NEWTON:th.11">NEWTON:11</a></i>
<br/>.= 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> 2</span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p2">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p1">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span>
<b>by </b><i><a class="ref" href="newton.html#T14" title="NEWTON:th.14">NEWTON:14</a></i>
<br/>.= 
<span class="p1">(<span class="default"><span class="p2">(<span class="default">1 <a href="newton.html#K16" title="NEWTON:func.16">|^</a> 2</span>)</span> <a href="newton.html#K16" title="NEWTON:func.16">|^</a> <span class="p2">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p1">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span>
<b>by </b><i><a class="ref" href="wsierp_1.html#T2" title="WSIERP_1:th.2">WSIERP_1:2</a></i>
<br/>.= 
<span class="p1">(<span class="default">1 <a href="newton.html#K16" title="NEWTON:func.16">|^</a> <span class="p2">(<span class="default"><font color="Maroon" title="c2">q</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p1">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span>
<b>by </b><i><a class="ref" href="newton.html#T100" title="NEWTON:th.100">NEWTON:100</a>, <a class="ref" href="square_1.html#T59" title="SQUARE_1:th.59">SQUARE_1:59</a></i>
<br/>.= 
1 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p1">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span>
<b>by </b><i><a class="ref" href="newton.html#T15" title="NEWTON:th.15">NEWTON:15</a></i>
;<br/>
<div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="59_2"><b>per </b></a><a class="txt" onclick="hs(this)" href="javascript:()"><b>cases </b></a><span class="hide"><a NAME="E1:59_2"/>
(  <a href="int_5.html#K2" title="INT_5:func.2">Lege</a> <font color="Maroon" title="c1">p</font>,<font color="Maroon" title="c2">q</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1 or  <a href="int_5.html#K2" title="INT_5:func.2">Lege</a> <font color="Maroon" title="c1">p</font>,<font color="Maroon" title="c2">q</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1 )
 </span><b>by </b><i><a class="ref" href="int_5.html#T25" target="_self" title="INT_5:th.25">Th25</a></i>;<br/><div class="add"><div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="59_2_1"><b>suppose </b></a><a NAME="E1:59_2_1"/>
 <a href="int_5.html#K2" title="INT_5:func.2">Lege</a> <font color="Maroon" title="c1">p</font>,<font color="Maroon" title="c2">q</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1
 ;<br/><div class="add"><b>hence </b><a NAME="E2:59_2_1"/>
 <a href="int_5.html#K2" title="INT_5:func.2">Lege</a> <font color="Maroon" title="c1">p</font>,<font color="Maroon" title="c2">q</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> <span class="p1">(<span class="default"><a href="int_5.html#K2" title="INT_5:func.2">Lege</a> <font color="Maroon" title="c2">q</font>,<font color="Maroon" title="c1">p</font></span>)</span>
 <b>by </b><i><a class="txt" href="int_5.html#E7:59"><i><font color="Green" title="E44">A3</font></i></a></i>;<br/></div><b>end;</b></div><div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="59_2_2"><b>suppose </b></a><a NAME="E1:59_2_2"/>
 <a href="int_5.html#K2" title="INT_5:func.2">Lege</a> <font color="Maroon" title="c1">p</font>,<font color="Maroon" title="c2">q</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1
 ;<br/><div class="add"><b>hence </b><a NAME="E2:59_2_2"/>
 <a href="int_5.html#K2" title="INT_5:func.2">Lege</a> <font color="Maroon" title="c1">p</font>,<font color="Maroon" title="c2">q</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> <span class="p1">(<span class="default"><a href="int_5.html#K2" title="INT_5:func.2">Lege</a> <font color="Maroon" title="c2">q</font>,<font color="Maroon" title="c1">p</font></span>)</span>
 <b>by </b><i><a class="txt" href="int_5.html#E7:59"><i><font color="Green" title="E44">A3</font></i></a></i>;<br/></div><b>end;</b></div></div><b>end;</b></div>

</div>
