 permutation <var>p</var> as a
product of adjacent transpositions is even, or 1 if that number is odd.
</p>
<p>See also <code><a href="#perm_005fdecomp">perm_decomp</a></code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(&quot;combinatorics&quot;)$
(%i2) perm_parity ([4, 6, 3, 1, 7, 5, 2, 8]);
(%o2)                            0
</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