QlarIITy

MathematicsJEE Main 2023 · 6 AprilInteger

LetA={1,2,3,4,…,10}A = \{1, 2, 3, 4, \ldots, 10\}and B={0,1,2,3,4}B = \{0, 1, 2, 3, 4\}. The number of elements in the relationR={(a,b)∈A×A:2(a−b)2+3(a−b)∈B}R = \{(a, b) \in A \times A : 2(a - b)^2 + 3(a - b) \in B\}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 that depends on the difference of two coordinates is counted difference by difference.

Concept refresher. In a set of nn consecutive integers the number of ordered pairs (a,b)(a, b) with a−b=da - b = d is

N=n−∣d∣N = n - |d|

for ∣d∣<n|d| < n.

Picture the situation. With d=a−bd = a - b the condition is that 2d2+3d2d^2 + 3d is one of 0, 1, 2, 3, 4. This is a quadratic in the integer dd, which exceeds 4 as soon as ∣d∣|d| is at all large. So only a few values of dd can work, and each gives a known number of pairs in A×AA \times A.

Approach. Find the differences that give a value in the set and count the pairs for each.

  1. Step 1: The allowed differences

    The expression 2d2+3d2d^2 + 3d is 0 for d=0d = 0, 5 for d=1d = 1, −1-1 for d=−1d = -1, 2 for d=−2d = -2 and 9 for d=−3d = -3; for other values it is larger still. So only d=0d = 0 and d=−2d = -2 give a value in BB.

  2. Step 2: The pairs

    The difference 0 gives the 10 pairs (a,a)(a, a), and the difference −2-2 gives the 8 pairs (a,a+2)(a, a + 2) with aa from 1 to 8. So RR has 18 elements.

Answer. 18

Sanity check. For d=2d = 2 the expression is 14 and for d=−4d = -4 it is 20, confirming that no other difference works.

Common wrong answers

  • 27: Accepting d=−1d = -1, whose value −1-1 is not in BB, adds 9 pairs and gives 27.

Key takeaway

The trap. A negative value of the expression is not in a set of non-negative numbers.

How toppers think. They test the few small differences and stop when the expression exceeds the largest allowed value.

Remember. 10+8=1810 + 8 = 18

More on Relations