The number of matrices A, which can be formed using the elements of the set such that the sum of all the diagonal elements of is 5, is ______
Answer: 312
Solution
Writing , the diagonal entries of are and , so their sum is the sum of the squares of all six entries. The requirement is that six numbers chosen from have squares adding to . The available squares are , so the only ways to reach are and . For , choose the position of the entry ( ways, signs) and the position of the entry among the rest ( ways, signs), giving . For five entries and one , choose the position of the ( ways) and a sign for each of the five entries (), giving . The number of such matrices is .
JEE Main · 2026 · 24 Jan 2026 · Shift 1 · Integer answer