Let A=[aij], aij∈Z∩[0,4], 1≤i,j≤2. The number of matrices A such that the sum of all entries is a prime number p∈(2,13) is ________ . [2023]
(204)
As given a+b+c+d=3 or 5 or 7 or 11
If sum = 3, then
Coefficient of x3 in (1+x+x2+…+x4)4 is (1-x5)4(1-x)-4
∴ C3=C364+3-1=20
If sum = 5, coefficient of x5 is (1-4x5)(1-x)-4 ∴ C54+5-1-4=C58-4=52
If sum = 7, then coefficient of x7 is
(1-4x5)(1-x)-4⇒C710-4×C25=80
If sum = 11
(1-4x5+6x10)(1-x)-4⇒C114+11-1-4C64+6-1+6C14+1-1 =C1114-4 C69+24=364-336+24=52
∴Total matrices=20+52+80+52=204