QlarIITy

MathematicsJEE Main 2022 · 27 JuneInteger

Let AA be a matrix of order 2×22 \times 2, whose entries are from the set {0,1,2,3,4,5}\{0, 1, 2, 3, 4, 5\}. If the sum of all the entries of AA is a prime number pp, 2<p<82 < p < 8, then the number of such matrices AA 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. A count of bounded whole-number solutions is found by removing the solutions that break the bound.

Concept refresher. The number of ways to write nn as an ordered sum of rr whole numbers, each at least zero, is

N=n+r−1Cr−1N = {}^{n + r - 1}C_{r - 1}

Picture the situation. The four entries are whole numbers from 0 to 5. The primes strictly between 2 and 8 are 3, 5 and 7. For each, the number of matrices is the number of ways to write that prime as an ordered sum of four whole numbers, none more than 5.

Approach. For each of the three primes count the ordered sums, correcting for the upper limit.

  1. Step 1: The sums 3 and 5

    For these sums no entry can exceed 5, so the counts are 6C3=20{}^{6}C_3 = 20 and 8C3=56{}^{8}C_3 = 56.

  2. Step 2: The sum 7

    There are 10C3=120{}^{10}C_3 = 120 solutions. If one chosen entry is at least 6, taking 6 from it leaves a sum of 1, with 4 solutions; the 4 choices of entry give 16. So the count is 120−16=104120 - 16 = 104.

  3. Step 3: The total

    Adding the counts for the three prime sums gives 20+56+104=18020 + 56 + 104 = 180 matrices.

Answer. 180

Sanity check. The 16 excluded matrices for the sum 7 are those with an entry 7, of which there are 4, and those with an entry 6 and an entry 1, of which there are 12.

Common wrong answers

  • 196: Not removing the solutions with an entry of 6 or 7 for the sum 7 gives 20+56+120=19620 + 56 + 120 = 196.

Key takeaway

The trap. The upper limit matters only for sums larger than the limit itself.

How toppers think. They check which sums can break the bound before applying any correction.

Remember. N=n+r−1Cr−1N = {}^{n + r - 1}C_{r - 1}

More on Types of Matrices