Question: how to permutate all combination of matrix of each element can only be 0,1,2

how to permutate all combination of matrix of each element can only be 0,1,2

although it can be done in other language, and copy to maple

how to do this in maple with combinat package?

Please Wait...