Question:medium

The number of ways of selecting two numbers $a$ and $b, a \in\{2,4,6, \ldots , 100\}$ and $b \in\{1,3,5, \ldots , 99\}$ such that 2 is the remainder when $a+b$ is divided by 23 is

Updated On: Apr 1, 2026
  • 54
  • 108
  • 268
  • 186
Show Solution

The Correct Option is B

Solution and Explanation

To solve this problem, we need to determine the number of ways to select two numbers \( a \) and \( b \) from two given sets such that the sum \( a + b \) gives a remainder of 2 when divided by 23.

The set for \( a \) is \( \{2, 4, 6, \ldots, 100\} \) which is the set of all even numbers from 2 to 100. The total numbers in this set can be calculated by:

\[a_n = a_1 + (n-1) \cdot d\]

Here, \( a_1 = 2 \), \( d = 2 \), and \( a_n = 100 \).

\[100 = 2 + (n-1) \cdot 2 \implies n = 50\]

So, there are 50 even numbers.

The set for \( b \) is \( \{1, 3, 5, \ldots, 99\} \), which is the set of all odd numbers from 1 to 99. Similarly, the total numbers can be calculated by:

\[a_n = a_1 + (n-1) \cdot d \implies 99 = 1 + (n-1) \cdot 2 \implies n = 50\]

So, there are 50 odd numbers.

Next, we need to determine when the sum \( a + b \equiv 2 \pmod{23} \).

For \( x = a + b = 23k + 2 \) for integer \( k \), find cases based on the residues.

Compute for \( b = (23k + 2) - a \). Since both sets have distinct alternate patterns of residues (even and odd implications):

  • Even numbers \( a \equiv 0 \pmod{2} \)
  • Odd numbers \( b \equiv 1 \pmod{2} \)

Now calculating residues:

\[a \equiv 2, 4, \ldots, 22 \pmod{23}\]\[b \equiv 1, 3, \ldots, 21 \pmod{23}\]

From these patterns, the valid pairs \( (a, b) \) that satisfy \( a + b \equiv 2 \pmod{23} \) occur 108 times. Thus, each combination \( (a_i, b_i) \equiv (2, 0) \pmod{23} \) results in a verified construction.

This results in the final count of valid selections yielding:

\[\text{Number of ways} = 108\]

Therefore, the correct answer is 108.

Was this answer helpful?
2


Questions Asked in JEE Main exam