FUNCTION: BnCode2Palin - palindromic permutation corresponding to a code
CALLING SEQUENCE:
- BnCode2Palin(code)
- BN[BnCode2Palin](code)
-
PARAMETERS:
- code = any list denoting a code
SYNOPSIS:
- The BnCode2Palin function calculates the palindromic permutation w
corresponding to a code. This permutation belongs to the symmetric
group of degree 2*n, where n is the degree of the hyperoctahedral group
B(n), and satisfies the symmetries:
w[i] + w[2*n-i+1] = 2*n+1, i=1..n
- Whenever there is a conflict between the function name BnCode2Palin and
another name used in the same session, use the long form
BN['BnCode2Palin'].
EXAMPLES:
> with(BN):
> BnCode2Palin([1, 1, 3]);
[4, 2, 6, 1, 5, 3]
SEE ALSO: BnPalin2Code TYP[IsBnPalin]