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

<b>let </b><font color="Maroon" title="c1">a</font>, <font color="Maroon" title="c2">b</font>, <font color="Maroon" title="c3">m</font> be   <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a>;<br/>





<b>assume </b><a NAME="E1:8"/><i><font color="Green" title="E9">A1</font></i>: 
( <font color="Maroon" title="c1">a</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="card_1.html#NK1" title="CARD_1:NK.1">0</a>  &amp; <font color="Maroon" title="c2">b</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="card_1.html#NK1" title="CARD_1:NK.1">0</a>  &amp; <font color="Maroon" title="c3">m</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="card_1.html#NK1" title="CARD_1:NK.1">0</a>  &amp; <font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c3">m</font> <a href="int_2.html#R2" title="INT_2:pred.2">are_relative_prime</a>  &amp; <font color="Maroon" title="c2">b</font>,<font color="Maroon" title="c3">m</font> <a href="int_2.html#R2" title="INT_2:pred.2">are_relative_prime</a>  )
 ;<br/>

<a NAME="E2:8"/><b>then </b>
<font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">b</font>,<font color="Maroon" title="c3">m</font> <a href="int_2.html#R2" title="INT_2:pred.2">are_relative_prime</a> 
 
<b>by </b><i><a class="ref" href="euler_1.html#T15" title="EULER_1:th.15">EULER_1:15</a></i>;<br/>
<a NAME="E3:8"/><b>then </b><i><font color="Green" title="E10">A2</font></i>: 
<span class="p1">(<span class="default"><font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">b</font></span>)</span> <a href="nat_d.html#K8" title="NAT_D:func.8">hcf</a> <font color="Maroon" title="c3">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1
 
<b>by </b><i><a class="ref" href="int_2.html#D6" title="INT_2:def.6">INT_2:def 6</a></i>;<br/>
<b>consider </b><font color="Maroon" title="c4">t</font> being   <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a><b> such that </b><br/><a NAME="E5:8"/><i><font color="Green" title="E11">A3</font></i>: 
<font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">b</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><font color="Maroon" title="c3">m</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c4">t</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">b</font></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">m</font></span>)</span>
 <b>and </b><br/><a NAME="E6:8"/>
<span class="p1">(<span class="default"><font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">b</font></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">m</font> <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> <font color="Maroon" title="c3">m</font>
 <b>by </b><i><a class="txt" href="euler_2.html#E1:8"><i><font color="Green" title="E9">A1</font></i></a>, <a class="ref" href="nat_d.html#D2" title="NAT_D:def.2">NAT_D:def 2</a></i>;<br/>
<a NAME="E7:8"/>
<font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">b</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a> <font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <a href="card_1.html#NK1" title="CARD_1:NK.1">0</a> 
 
<b>by </b><i><a class="txt" href="euler_2.html#E1:8"><i><font color="Green" title="E9">A1</font></i></a>, <a class="ref" href="xcmplx_1.html#T5" title="XCMPLX_1:th.5">XCMPLX_1:5</a></i>;<br/>
<a NAME="E8:8"/><b>then </b><i><font color="Green" title="E12">A4</font></i>: 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">b</font></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> <font color="Maroon" title="c4">t</font></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c3">m</font></span>)</span></span>)</span> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c3">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">b</font></span>)</span> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c3">m</font>
 
<b>by </b><i><a class="txt" href="euler_2.html#E1:8"><i><font color="Green" title="E9">A1</font></i></a>, <a class="ref" href="euler_1.html#T17" title="EULER_1:th.17">EULER_1:17</a></i>;<br/>
<a NAME="E9:8"/><i><font color="Green" title="E13">A5</font></i>: 
<span class="p1">(<span class="default"><font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">b</font></span>)</span> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c3">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1
 
<b>by </b><i><a class="txt" href="euler_2.html#E3:8"><i><font color="Green" title="E10">A2</font></i></a>, <a class="txt" href="euler_2.html#E1"><i><font color="Green" title="E1">Lm1</font></i></a></i>;<br/>
<a NAME="E10:8"/>
(  <a href="int_2.html#K1" title="INT_2:func.1">abs</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">b</font></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">m</font></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">b</font></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">m</font> &amp;  <a href="int_2.html#K1" title="INT_2:func.1">abs</a> <font color="Maroon" title="c3">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c3">m</font> )
 
<b>by </b><i><a class="ref" href="absvalue.html#D1" title="ABSVALUE:def.1">ABSVALUE:def 1</a></i>;<br/>
<a NAME="E11:8"/><b>then </b>
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">b</font></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">m</font></span>)</span> <a href="nat_d.html#K8" title="NAT_D:func.8">hcf</a> <font color="Maroon" title="c3">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1
 
<b>by </b><i><a class="txt" href="euler_2.html#E5:8"><i><font color="Green" title="E11">A3</font></i></a>, <a class="txt" href="euler_2.html#E8:8"><i><font color="Green" title="E12">A4</font></i></a>, <a class="txt" href="euler_2.html#E9:8"><i><font color="Green" title="E13">A5</font></i></a>, <a class="ref" href="int_2.html#D3" title="INT_2:def.3">INT_2:def 3</a></i>;<br/>
<b>hence </b><a NAME="E12:8"/>
<font color="Maroon" title="c3">m</font>,<span class="p1">(<span class="default"><font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">b</font></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">m</font> <a href="int_2.html#R2" title="INT_2:pred.2">are_relative_prime</a> 
 <b>by </b><i><a class="ref" href="int_2.html#D6" title="INT_2:def.6">INT_2:def 6</a></i>;<br/>


</div>
