<?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="Luhn algorithm - Page 4 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Luhn_algorithm&amp;p=3">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Luhn_algorithm&amp;p=5">3.Next</a>
</p>
<p>Sum all the resulting digits (including the ones that were not doubled).<br/>
# The check digit is calculated by , where s is the sum from step 4.  This is the smallest number (possibly zero) that must be added to  to make a multiple of 10.<br/>
# Other valid formulas giving the same value are , , and . Note that the formula  will not work in all environments due to differences in how negative numbers are handled by the <a href="page.php?w=modulo">modulo</a> operation.</p>

<p><big> Example for computing check digit </big></p>
<p>Assume an example of</p><p>
<a accesskey="1" href="page.php?w=Luhn_algorithm&amp;p=3">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Luhn_algorithm&amp;p=5">3.Next</a>
</p>

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

</card>
</wml>
