Clear Notion Academy

Matrices and Determinants (Beyond Advanced) Practice: Find the number of 2 2 matrices X , all of whose entries belong to -1,0,1 , such that X…

Question

Find the number of 2×22\times2 matrices XX, all of whose entries belong to {−1,0,1}\{-1,0,1\}, such that XX is invertible and every entry of X−1X^{-1} is also an integer.

Options

  1. 88
  2. 4040
  3. 2020
  4. 3232

Answer

Correct option: B

Hint

Use the formula X−1=adj⁡X/det⁡XX^{-1}=\operatorname{adj}X/\det X together with det⁡X⋅det⁡X−1=1\det X\cdot\det X^{-1}=1 to turn 'integer inverse' into a condition on one number, then count solutions of ad−bc=±1ad-bc=\pm1 by the possible products.

Solution

If XX and X−1X^{-1} both have integer entries, then det⁡X\det X and det⁡X−1=1/det⁡X\det X^{-1}=1/\det X are both integers, so det⁡X=±1\det X=\pm1. Conversely if det⁡X=±1\det X=\pm1, then X−1=±adj⁡XX^{-1}=\pm\operatorname{adj}X is an integer matrix. So we count X=[abcd]X=\begin{bmatrix}a&b\\c&d\end{bmatrix} with ad−bc=±1ad-bc=\pm1. The products adad and bcbc each lie in {−1,0,1}\{-1,0,1\}. Among the 99 choices of (a,d)(a,d): ad=1ad=1 for 22 pairs, ad=−1ad=-1 for 22 pairs, ad=0ad=0 for 55 pairs. The same holds for (b,c)(b,c). ad−bc=1ad-bc=1 needs (ad,bc)=(1,0)(ad,bc)=(1,0) or (0,−1)(0,-1): 2⋅5+5⋅2=202\cdot5+5\cdot2=20 matrices. ad−bc=−1ad-bc=-1 needs (ad,bc)=(−1,0)(ad,bc)=(-1,0) or (0,1)(0,1): another 2020. Total 4040. The cases (1,0)(1,0) and (0,1)(0,1) are separate and each requires its own count; mistakenly requiring all entries non-zero gives only 88. Distractors. 88 counts only the signed permutation matrices (two zero entries); 3232 counts only the matrices with exactly one zero entry; 2020 keeps only det⁡X=+1\det X=+1.

More questions from Matrices and Determinants (Beyond Advanced) Practice

Practise the full set: Matrices and Determinants — Beyond Advanced