M:=<<2|9|4>,<7|5|3>,<6|1|8>>: with(LinearAlgebra): Determinant(M); Permanent(M);