QlarIITy

MathematicsJEE Main 2026 · 5 AprilInteger

Let A={1,4,7}A = \{1, 4, 7\} and B={2,3,8}B = \{2, 3, 8\}. Then the number of elements, in the relationR={((a1,b1),(a2,b2))∈((A×B)×(A×B)):a1+b2 divides a2+b1}\begin{aligned} &R = \{((a_1, b_1), (a_2, b_2)) \\[4pt] &\in ((A \times B) \times (A \times B)) : \\[4pt] &a_1 + b_2 \text{ divides } a_2 + b_1\} \end{aligned}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 condition on a1+b2a_1 + b_2 and a2+b1a_2 + b_1 splits the four choices into two independent sums.

Concept refresher. An element of (A×B)×(A×B)(A \times B) \times (A \times B) is a choice of a1,a2∈Aa_1, a_2 \in A and b1,b2∈Bb_1, b_2 \in B, so there are 9×9=819 \times 9 = 81 elements. A relation is the subset of these elements that satisfy its condition. By the multiplication principle, if a condition involves two independent parts, the count is the number of allowed pairs of parts, each part counted with its number of ways.

Approach. Regroup the four choices into the two sums the condition uses, list all nine sums with repetition, and count the ordered pairs in which the first sum divides the second.

  1. Step 1: Regroup the choices

    The condition uses s=a1+b2s = a_1 + b_2 and t=a2+b1t = a_2 + b_1. The pair (a1,b2)(a_1, b_2) and the pair (a2,b1)(a_2, b_1) are chosen independently, and each choice of the four letters gives exactly one element, so the count is the number of ordered pairs (s,t)(s, t) of sums, with repetition, such that ss divides tt.

  2. Step 2: List the sums

    With a∈{1,4,7}a \in \{1, 4, 7\} and b∈{2,3,8}b \in \{2, 3, 8\}, the nine sums are

    3,4,9 (a=1)6,7,12 (a=4)9,10,15 (a=7)\begin{aligned} &3, 4, 9 \ (a = 1) \\[4pt] &6, 7, 12 \ (a = 4) \\[4pt] &9, 10, 15 \ (a = 7) \end{aligned}

    so 99 appears twice and every other sum once.

  3. Step 3: Count the divisor pairs

    For each first sum ss, count the sums tt in the list that it divides:

    s=3:3,6,9,9,12,15→6s=4:4,12→2s=6:6,12→2s=9 (twice):9,9→2×2=4s=7,10,12,15:itself→4\begin{aligned} s = 3 &: 3, 6, 9, 9, 12, 15 \to 6 \\[4pt] s = 4 &: 4, 12 \to 2 \\[4pt] s = 6 &: 6, 12 \to 2 \\[4pt] s = 9 \ (\text{twice}) &: 9, 9 \to 2 \times 2 = 4 \\[4pt] s = 7, 10, 12, 15 &: \text{itself} \to 4 \end{aligned}

    Adding, 6+2+2+4+4=186 + 2 + 2 + 4 + 4 = 18.

Answer. 18

Sanity check. The pairs with s=ts = t number 7+2⋅2=117 + 2 \cdot 2 = 11, one for each single sum and four for the repeated 99; the pairs with ss a proper divisor of tt are 3∣6,9,9,12,153 \mid 6, 9, 9, 12, 15 and 4∣124 \mid 12, 6∣126 \mid 12, which is 77; and 11+7=1811 + 7 = 18.

Common wrong answers

  • 14: Counting the distinct sums 3,4,6,7,9,10,12,153, 4, 6, 7, 9, 10, 12, 15 only once each gives 5+2+2+1+1+1+1+1=145 + 2 + 2 + 1 + 1 + 1 + 1 + 1 = 14; but 99 arises twice, as 1+81 + 8 and 7+27 + 2, which adds 44 more pairs.
  • 11: Counting only the pairs with a1+b2=a2+b1a_1 + b_2 = a_2 + b_1 gives 7+2⋅2=117 + 2 \cdot 2 = 11; a sum also divides its larger multiples, such as 33 dividing 1212.
  • 7: Counting only proper divisors, ss dividing a larger tt, gives 18−11=718 - 11 = 7; equal sums also satisfy the condition, since every number divides itself.

Key takeaway

The trap. Listing the sums as a set and losing the repeated value 99.

How toppers think. They regroup the variables by how the condition uses them before counting anything.

Remember. By the multiplication principle, independent choices are counted as ordered pairs, each with its multiplicity.

More on Relations