Let be any matrix with entries from the set .The maximum number of such matrices, for which the sum of diagonal elements of is seven, is
Finding the maximum number of matrix:
Let
Given the sum of diagonal elements of is seven,
Case I: Seven and Two
Case II: One and Three and five
Therefore, total Case I Case II
Hence, the maximum number of such matrices, for which the sum of diagonal elements of is seven, is .