Question
Question: Consider two matrices $A = \begin{bmatrix} x_1 & x_2 & x_3 \\ 0 & x_2 & x_1 \\ 0 & 0 & x_3 \end{bmat...
Consider two matrices A=x100x2x20x3x1x3 and B=y1y3y20y2y100y3, where each of xi,yj∈{−1,0,1}∀i,j=1,2,3, and if N is the number of possible ordered pair of matrices A and B for which det A = det B. Then the value of 131N, is

3
Solution
The given matrices are A=x100x2x20x3x1x3 and B=y1y3y20y2y100y3, where each of xi,yj∈{−1,0,1} for i,j=1,2,3.
The determinant of matrix A is given by the product of its diagonal elements since it is an upper triangular matrix: det A = x1⋅x2⋅x3.
The determinant of matrix B is given by the product of its diagonal elements since it is a lower triangular matrix: det B = y1⋅y2⋅y3.
We are looking for the number of possible ordered pairs of matrices (A, B) for which det A = det B. This condition is x1x2x3=y1y2y3.
The elements xi and yj can each take values from the set S={−1,0,1}. There are 33=27 possible combinations for the triplet (x1,x2,x3) and 33=27 possible combinations for the triplet (y1,y2,y3). The total number of possible ordered pairs of matrices (A, B) is 27×27=729.
Let Px=x1x2x3 and Py=y1y2y3. Since xi,yj∈{−1,0,1}, the possible values for Px and Py are {−1,0,1}.
We need to count the number of triplets (x1,x2,x3) with elements from {−1,0,1} that result in each possible product value k∈{−1,0,1}. Let C(k) be this number.
Case 1: x1x2x3=1. For the product to be 1, none of the xi can be 0. So xi∈{−1,1}. The product is 1 if there is an even number of -1's.
- Zero -1's: (1, 1, 1). There is (03)=1 such triplet.
- Two -1's: (-1, -1, 1), (-1, 1, -1), (1, -1, -1). There are (23)=3 such triplets. So, C(1)=1+3=4.
Case 2: x1x2x3=−1. For the product to be -1, none of the xi can be 0. So xi∈{−1,1}. The product is -1 if there is an odd number of -1's.
- One -1: (-1, 1, 1), (1, -1, 1), (1, 1, -1). There are (13)=3 such triplets.
- Three -1's: (-1, -1, -1). There is (33)=1 such triplet. So, C(−1)=3+1=4.
Case 3: x1x2x3=0. The product is 0 if at least one xi is 0. The total number of triplets is 33=27. The number of triplets with no 0 is 23=8 (each element is -1 or 1). These 8 triplets give products 1 or -1. So, the number of triplets with at least one 0 is 27−8=19. C(0)=19.
Check: C(1)+C(−1)+C(0)=4+4+19=27. This is correct.
We need to find the number of pairs of triplets ((x1,x2,x3),(y1,y2,y3)) such that x1x2x3=y1y2y3. This equality holds if the common product is 1, -1, or 0. Let N be the number of such pairs. N=(Number of pairs where Px=Py=1)+(Number of pairs where Px=Py=−1)+(Number of pairs where Px=Py=0).
Number of pairs where Px=Py=1: The number of choices for (x1,x2,x3) is C(1)=4. The number of choices for (y1,y2,y3) is C(1)=4. The number of pairs is C(1)×C(1)=4×4=16.
Number of pairs where Px=Py=−1: The number of choices for (x1,x2,x3) is C(−1)=4. The number of choices for (y1,y2,y3) is C(−1)=4. The number of pairs is C(−1)×C(−1)=4×4=16.
Number of pairs where Px=Py=0: The number of choices for (x1,x2,x3) is C(0)=19. The number of choices for (y1,y2,y3) is C(0)=19. The number of pairs is C(0)×C(0)=19×19=361.
The total number of ordered pairs of matrices (A, B) for which det A = det B is the sum: N=16+16+361=32+361=393.
The question asks for the value of 131N. 131N=131393. Dividing 393 by 131: 393=3×131. So, 131393=3.
The final answer is 3.
Explanation of the solution:
- Calculate the determinants of matrices A and B. Since A is upper triangular and B is lower triangular, det A = x1x2x3 and det B = y1y2y3.
- The condition det A = det B becomes x1x2x3=y1y2y3.
- The elements xi,yj belong to {−1,0,1}. The possible values for the product of three elements from this set are {−1,0,1}.
- Count the number of triplets (x1,x2,x3) from {−1,0,1}3 whose product is 1, -1, and 0. Let these counts be C(1),C(−1),C(0) respectively.
- C(1)=4 (triplets are (1,1,1) and permutations of (-1,-1,1))
- C(−1)=4 (triplets are (-1,-1,-1) and permutations of (-1,1,1))
- C(0)=19 (total triplets 27, non-zero products 8, so 27−8=19)
- The number of pairs of triplets ((x1,x2,x3),(y1,y2,y3)) such that their products are equal is the sum of the number of pairs where both products are 1, both are -1, and both are 0.
- Number of pairs with product 1 = C(1)×C(1)=4×4=16.
- Number of pairs with product -1 = C(−1)×C(−1)=4×4=16.
- Number of pairs with product 0 = C(0)×C(0)=19×19=361.
- The total number of ordered pairs of matrices (A, B) is N=16+16+361=393.
- Calculate the required value 131N=131393=3.
The final answer is 3.