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

 1874  282 Matrices Report Error

Solution:

Required number of matrices