1, 2, 3], [4, 1, 3, 2], 
[4, 2, 1, 3], [4, 2, 3, 1], [4, 3, 1, 2], [4, 3, 2, 1]]
(%i3) perms_lex (4, 12);
(%o3)                     [[2, 4, 3, 1]]
(%i4) perms_lex (4, 12, 14);
(%o4)       [[2, 4, 3, 1], [3, 1, 2, 4], [3, 1, 4, 2]]
</pre>
<div class=categorybox>

<p>Categories:&nbsp;&nbsp;<a href="maxima_107.html#Category_003a-Package-combinatorics">Package combinatorics</a>
</div>
</p>
</dd></dl>

<p><a name="permult"></a>
<a name="Item_003a-permult"></a>
</p><dl>
<dt><u>Function:</u> <b>permult</b><i> (<va