QlarIITy

MathematicsJEE Main 2026 · 24 JanuaryInteger

The number of 3×23 \times 2 matrices AA, which can be formed using the elements of the set {−2,−1,0,1,2}\{-2, -1, 0, 1, 2\} such that the sum of all the diagonal elements of ATAA^{T}A is 55, is ______

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. tr⁡(ATA)\operatorname{tr}(A^{T}A) is the sum of the squares of all the entries of AA.

Concept refresher. For any m×nm \times n matrix A=[aij]A = [a_{ij}], the jj-th diagonal entry of ATAA^{T}A is ∑iaij2\sum_{i} a_{ij}^2, so

tr⁡(ATA)=∑i,jaij2\operatorname{tr}(A^{T}A) = \sum_{i, j} a_{ij}^2

the sum of the squares of all the entries. Counting by cases: choose the positions of the entries, then their signs, and multiply.

Approach. Rewrite the condition as a sum of six squares, list the possible patterns of squares, and count positions and signs for each.

  1. Step 1: Rewrite the trace

    AA is 3×23 \times 2, so ATAA^{T}A is 2×22 \times 2, and its diagonal entries are the sums of squares of the two columns. The condition becomes

    ∑i=13∑j=12aij2=5\sum_{i = 1}^{3}\sum_{j = 1}^{2} a_{ij}^2 = 5

    with every aij∈{−2,−1,0,1,2}a_{ij} \in \{-2, -1, 0, 1, 2\}, so each square is 00, 11 or 44.

  2. Step 2: List the patterns

    Six squares from {0,1,4}\{0, 1, 4\} add to 55 in exactly two ways, since 4+4>54 + 4 > 5:

    5=1+1+1+1+1+05=4+1+0+0+0+0\begin{aligned} 5 &= 1 + 1 + 1 + 1 + 1 + 0 \\[4pt] 5 &= 4 + 1 + 0 + 0 + 0 + 0 \end{aligned}
  3. Step 3: Count each pattern

    For the first, choose the zero entry (66 ways) and a sign for each of the five ±1\pm 1 entries (252^5). For the second, place the ±2\pm 2 (66 ways) and the ±1\pm 1 (55 ways) and choose two signs (44):

    6⋅32+6⋅5⋅4=192+120=3126 \cdot 32 + 6 \cdot 5 \cdot 4 = 192 + 120 = 312

Answer. 312

Sanity check. A direct count over all 56=156255^6 = 15625 matrices with entries from the set finds exactly 312312 with ∑aij2=5\sum a_{ij}^2 = 5. Example: AA with rows (2,1)(2, 1), (0,0)(0, 0), (0,0)(0, 0) has ATAA^{T}A with diagonal 44 and 11, trace 55.

Common wrong answers

  • 192: Counting only five entries equal to ±1\pm 1 and one 00 gives 6⋅25=1926 \cdot 2^5 = 192; the case of one ±2\pm 2, one ±1\pm 1 and four zeros adds 6⋅5⋅4=1206 \cdot 5 \cdot 4 = 120.
  • 120: Counting only one ±2\pm 2, one ±1\pm 1 and four zeros gives 120120; the case of five entries ±1\pm 1 and one 00 adds 192192.
  • 252: Choosing the places of the ±2\pm 2 and the ±1\pm 1 as 6C2=15{}^6C_2 = 15 unordered pairs gives 15⋅4=6015 \cdot 4 = 60 and a total of 252252; the two entries are different, so there are 6⋅5=306 \cdot 5 = 30 placements.

Key takeaway

The trap. Counting only one of the two patterns, or forgetting the two signs of each nonzero entry.

How toppers think. They list the patterns of squares first, then multiply positions by signs for each pattern.

Remember. For any real matrix AA, the trace of ATAA^{T}A is the sum of the squares of all its entries.

More on Types of Matrices