JEE Challenger
More from Matrices

Matrices with Trace Not Divisible and Determinant Divisible by Prime

Comprehension Passage

Let pp be an odd prime number and TpT_p be the following set of 2×22 \times 2 matrices :

Tp={A=abca:a,b,c∈{0,1,2,…,p−1}}T_p = \left\{ A = \begin{array}{cc} a & b \\ c & a \end{array} : a, b, c \in \{0, 1, 2, \dots, p-1\} \right\}

The number of AA in TpT_p such that the trace of AA is not divisible by pp but det⁡(A)\det (A) is divisible by pp is
[Note : The trace of a matrix is the sum of its diagonal entries.]

Options

A

(p−1)(p2−p+1)(p - 1)(p^2 - p + 1)

B

p3−(p−1)2p^3 - (p - 1)^2

C

(p−1)2(p - 1)^2

Correct
D

(p−1)(p2−2)(p - 1)(p^2 - 2)

Step-by-Step Solution

To find the number of matrices A∈TpA \in T_p such that the trace of AA is not divisible by pp but det⁡(A)\det(A) is divisible by pp, we analyze the given conditions step-by-step.

The set TpT_p consists of matrices of the form:

A=(abca),where a,b,c∈{0,1,2,…,p−1}A = \begin{pmatrix} a & b \\ c & a \end{pmatrix}, \quad \text{where } a, b, c \in \{0, 1, 2, \dots, p-1\}
  1. Condition 1: trace(A)\text{trace}(A) is not divisible by pp
    The trace of AA is given by:
    trace(A)=a+a=2a\text{trace}(A) = a + a = 2a
    Since pp is an odd prime, gcd⁡(2,p)=1\gcd(2, p) = 1. Thus, trace(A)\text{trace}(A) is divisible by pp if and only if aa is divisible by pp.
    Since a∈{0,1,2,…,p−1}a \in \{0, 1, 2, \dots, p-1\}, the condition that trace(A)\text{trace}(A) is not divisible by pp is equivalent to:
    a≠0a \neq 0
    Therefore, there are p−1p - 1 choices for aa, namely a∈{1,2,…,p−1}a \in \{1, 2, \dots, p-1\}.

  2. Condition 2: det⁡(A)\det(A) is divisible by pp
    The determinant of AA is:
    det⁡(A)=a2−bc\det(A) = a^2 - bc
    The condition that det⁡(A)\det(A) is divisible by pp translates to the modular congruence:
    a2−bc≡0(modp)  ⟹  bc≡a2(modp)a^2 - bc \equiv 0 \pmod p \implies bc \equiv a^2 \pmod p

  3. Counting the number of pairs (b,c)(b, c) for a fixed a≠0a \neq 0:
    Since a∈{1,2,…,p−1}a \in \{1, 2, \dots, p-1\}, we have a≢0(modp)a \not\equiv 0 \pmod p, which implies a2≢0(modp)a^2 \not\equiv 0 \pmod p.
    Therefore, bc≡a2(modp)bc \equiv a^2 \pmod p means:

    • bb cannot be 00, because if b=0b = 0, then bc=0≢a2(modp)bc = 0 \not\equiv a^2 \pmod p. Thus, b∈{1,2,…,p−1}b \in \{1, 2, \dots, p-1\}.
    • For each of the p−1p - 1 possible choices of b∈{1,2,…,p−1}b \in \{1, 2, \dots, p-1\}, the element bb is invertible modulo the prime pp. Its modular inverse b−1(modp)b^{-1} \pmod p exists uniquely in {1,2,…,p−1}\{1, 2, \dots, p-1\}.
    • Hence, for every fixed bb, there exists a unique c∈{1,2,…,p−1}c \in \{1, 2, \dots, p-1\} given by:
      c≡a2⋅b−1(modp)c \equiv a^2 \cdot b^{-1} \pmod p
    • Thus, for any fixed a∈{1,2,…,p−1}a \in \{1, 2, \dots, p-1\}, there are exactly p−1p - 1 pairs of (b,c)(b, c) that satisfy the congruence.
  4. Total Number of Matrices:
    Since there are p−1p - 1 choices for aa and for each choice of aa, there are p−1p - 1 pairs of (b,c)(b, c), the total number of such matrices AA is:
    Total=(p−1)×(p−1)=(p−1)2\text{Total} = (p - 1) \times (p - 1) = (p - 1)^2

Hence, the correct option is C.