<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Modular exponentiation - Page 8 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=modular_exponentiation&amp;p=7">1.Previous</a><br />
<a accesskey="3" href="page.php?w=modular_exponentiation&amp;p=9">3.Next</a>
</p>
<p> a small integer.</p>

<p>The example , , and  is presented again.  The algorithm performs the iteration thirteen times:<br/>
: <br/>
: <br/>
: <br/>
: <br/>
: <br/>
: <br/>
: <br/>
: <br/>
: <br/>
: <br/>
: <br/>
: <br/>
: </p>

<p>The final answer for  is therefore 445, as in the direct method.</p>

<p>Like the first method, this requires  multiplications to complete.  However, since the numbers used in these calculations are much smaller than the numbers used in the first algorithm's calculations, the computation time decreases by a factor</p><p>
<a accesskey="1" href="page.php?w=modular_exponentiation&amp;p=7">1.Previous</a><br />
<a accesskey="3" href="page.php?w=modular_exponentiation&amp;p=9">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
