><a name="perm_005frank"></a>
<a name="Item_003a-perm_005frank"></a>
</p><dl>
<dt><u>Function:</u> <b>perm_rank</b><i> (<var>p</var>)</i>
<a name="IDX1479"></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_005funrank">perm_unrank</a></code> and <code><a href="#perms">perms</a></code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) lo