Maxima Function
permanent (M, n)
Computes the permanent of the matrix M. A permanent is like a determinant but with no sign changes.