JEE Challenger
More from Sequences and Series

Union of Two Arithmetic Progressions Term Sets

Let XX denote the set containing the initial 20182018 terms of the arithmetic progression 1,6,11,…1, 6, 11, \dots, and YY denote the set containing the initial 20182018 terms of the arithmetic progression 9,16,23,…9, 16, 23, \dots. Determine the number of distinct elements present in the set X∪YX \cup Y.

Official Numerical Answer3748

Step-by-Step Solution

To find the number of distinct elements in the set X∪YX \cup Y, we can use the Principle of Inclusion-Exclusion: n(X∪Y)=n(X)+n(Y)−n(X∩Y)n(X \cup Y) = n(X) + n(Y) - n(X \cap Y)

Step 1: Analyze set XX

Set XX consists of the first 20182018 terms of the arithmetic progression with:

  • First term, a1=1a_1 = 1
  • Common difference, d1=6−1=5d_1 = 6 - 1 = 5
  • Total number of elements, n(X)=2018n(X) = 2018

The general term of this AP is given by: xk=1+(k−1)⋅5=5k−4,for k=1,2,…,2018x_k = 1 + (k - 1) \cdot 5 = 5k - 4, \quad \text{for } k = 1, 2, \dots, 2018

The maximum element in set XX is: xmax⁡=1+(2018−1)⋅5=1+2017⋅5=10086x_{\max} = 1 + (2018 - 1) \cdot 5 = 1 + 2017 \cdot 5 = 10086

Step 2: Analyze set YY

Set YY consists of the first 20182018 terms of the arithmetic progression with:

  • First term, a2=9a_2 = 9
  • Common difference, d2=16−9=7d_2 = 16 - 9 = 7
  • Total number of elements, n(Y)=2018n(Y) = 2018

The general term of this AP is given by: ym=9+(m−1)⋅7=7m+2,for m=1,2,…,2018y_m = 9 + (m - 1) \cdot 7 = 7m + 2, \quad \text{for } m = 1, 2, \dots, 2018

The maximum element in set YY is: ymax⁡=9+(2018−1)⋅7=9+2017⋅7=14128y_{\max} = 9 + (2018 - 1) \cdot 7 = 9 + 2017 \cdot 7 = 14128

Step 3: Find the number of common elements, n(X∩Y)n(X \cap Y)

The elements in X∩YX \cap Y form a new arithmetic progression:

  • The first common term is 1616 (since x4=5(4)−4=16x_4 = 5(4) - 4 = 16 and y2=7(2)+2=16y_2 = 7(2) + 2 = 16).
  • The common difference of the common terms is D=lcm⁡(d1,d2)=lcm⁡(5,7)=35D = \operatorname{lcm}(d_1, d_2) = \operatorname{lcm}(5, 7) = 35.

Thus, the common elements are of the form: zt=16+35t,for t=0,1,2,…z_t = 16 + 35t, \quad \text{for } t = 0, 1, 2, \dots

Since the maximum possible value for a common element cannot exceed the smaller maximum of the two sets: max⁡(X∩Y)≤min⁡(xmax⁡,ymax⁡)=10086\max(X \cap Y) \le \min(x_{\max}, y_{\max}) = 10086

Setting up the inequality: 16+35t≤1008616 + 35t \le 10086 35t≤1007035t \le 10070 t≤1007035=287.714…t \le \frac{10070}{35} = 287.714\dots

Since tt must be a non-negative integer, tt can take values from 00 to 287287.

The total number of common elements is: n(X∩Y)=287−0+1=288n(X \cap Y) = 287 - 0 + 1 = 288

Step 4: Calculate n(X∪Y)n(X \cup Y)

Using the Inclusion-Exclusion formula: n(X∪Y)=2018+2018−288=3748n(X \cup Y) = 2018 + 2018 - 288 = 3748