Q. Let be a matrix of order , whose entries are from the set . If the sum of all the entries of is a prime number , then the number of such matrices is :

 2214  157 JEE MainJEE Main 2022Matrices Report Error

Answer: 180

Solution:

Let
Case-(i)

No. of ways ...(1)
Case-(ii)

No. of ways ...(2)
Case-(iii)

No. of ways total ways when , - total ways when a, b, c, d
No of ways

Hence total no. of ways