Q. Total number of possible matrices of order with each entry or is

 1795  229 Matrices Report Error

Solution:

Required number of matrices