<?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="Lehmer code - Page 4 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Lehmer_code&amp;p=3">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Lehmer_code&amp;p=5">3.Next</a>
</p>
<p>are smaller than it, a number between 0 and , allowing for  different values.</p>

<p>A pair of indices (i,j) with  and  is called an inversion of ?, and L(?)<sub>i</sub> counts the number of inversions (i,j) with i fixed and varying j. It follows that  is the total number of inversions of ?, which is also the number of adjacent transpositions that are needed to transform the permutation into the identity permutation. Other properties of the Lehmer code include that the <a href="page.php?w=lexicographical_order">lexicographical order</a> of the</p><p>
<a accesskey="1" href="page.php?w=Lehmer_code&amp;p=3">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Lehmer_code&amp;p=5">3.Next</a>
</p>

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

</card>
</wml>
