 <b>perm_lex_rank</b><i> (<var>p</var>)</i>
<a name="IDX1475"></a>
</dt>
<dd><p>Finds the position of permutation <var>p</var>, an integer from 1 to the
degree <var>n</var> of the permutation, in the sequence of permutations in
lexicographic order.
</p>
<p>See also <code><a href="#perm_005flex_005funrank">perm_lex_unrank</a></code> and <code><a href="#perms_005flex">perms_lex</a></code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(&quot;combinatorics&quot;)$
(%i2) perm_lex_rank ([4, 6, 3, 1, 7, 5,