QlarIITy

MathematicsJEE Main 2023 · 25 JanuaryInteger

Let xx and yy be distinct integers where 1≤x≤251 \leq x \leq 25 and 1≤y≤251 \leq y \leq 25. Then, the number of ways of choosing xx and yy, such that x+yx + y is divisible by 5 , 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. Divisibility of a sum depends only on the remainders of its terms.

Concept refresher. If xx and yy leave remainders rr and ss on division by 5, then x+yx + y is divisible by 5 exactly when

r+s=0 or 5r + s = 0 \text{ or } 5

Picture the situation. Among the numbers from 1 to 25 each remainder on division by 5 occurs exactly five times. The question names xx and yy separately, so the choice x=1x = 1, y=4y = 4 is different from x=4x = 4, y=1y = 1. The count is therefore of ordered pairs with xx and yy different.

Approach. Count the ordered pairs for each pairing of remainders and add.

  1. Step 1: Remainders

    The sum is divisible by 5 when the remainders of xx and yy are 0 and 0, 1 and 4, 4 and 1, 2 and 3, or 3 and 2. Each remainder class has 5 numbers.

  2. Step 2: Count

    For remainders 0 and 0, xx and yy are different multiples of 5, giving 5×4=205 \times 4 = 20 choices. Each of the other four pairings gives 5×5=255 \times 5 = 25 choices. The total is 20+4×25=12020 + 4 \times 25 = 120.

Answer. 120

Sanity check. For each xx exactly 5 values of yy make the sum divisible by 5, giving 125 pairs; the 5 pairs with x=yx = y, both multiples of 5, are removed, leaving 120.

Common wrong answers

  • 60: Counting unordered pairs gives 60; xx and yy are named separately, so their order matters.
  • 125: Allowing x=yx = y when both are multiples of 5 gives 125.

Key takeaway

The trap. When both numbers come from the same class they must still be different.

How toppers think. They check by fixing the first number and counting the partners it allows.

Remember. Remainders add to 0 or 5.

More on Combinations