arthham

JEE Advanced 2018 · Sequences and Series

Let XX be the set consisting of the first 20182018 terms of the arithmetic progression 1,6,11,…,1, 6, 11, \ldots, and YY be the set consisting of the first 20182018 terms of the arithmetic progression 9,16,23,….9, 16, 23, \ldots . Then, the number of elements in the set X∪YX \cup Y is ______.

Answer: 37483748

Watch this solved on the board The full walkthrough, written out a line at a time with narration explaining each step as it appears. Pause anywhere and ask why a line is there. Free to watch

Or read the worked solution below. Jump to the steps ↓

Written solution

Given: X={first 2018 terms of 1,6,11,…}\text{Given: } X = \{\text{first } 2018 \text{ terms of } 1, 6, 11, \ldots\} Y={first 2018 terms of 9,16,23,…}Y = \{\text{first } 2018 \text{ terms of } 9, 16, 23, \ldots\} To find: ∣X∪Y∣\text{To find: } |X \cup Y| Plan:1. write general terms of both APs\text{Plan:}\quad 1.\ \text{write general terms of both APs} 2. form the congruence for a common term2.\ \text{form the congruence for a common term} 3. count them→∣X∪Y∣=∣X∣+∣Y∣−∣X∩Y∣3.\ \text{count them} \to |X\cup Y| = |X|+|Y|-|X\cap Y| X: a=1, d=6−1=5X:\ a = 1,\ d = 6-1 = 5 Y: a=9, d=16−9=7Y:\ a = 9,\ d = 16-9 = 7 xn=1+(n−1)⋅5=5n−4x_n = 1 + (n-1)\cdot 5 = 5n - 4 yn=9+(n−1)⋅7=7n+2y_n = 9 + (n-1)\cdot 7 = 7n + 2 Common term n must satisfy:\text{Common term } n \text{ must satisfy:} n≡1(mod5),n≡2(mod7)n \equiv 1 \pmod{5}, \quad n \equiv 2 \pmod{7} n=1+5t(so n≡1(mod5))n = 1 + 5t \quad (\text{so } n \equiv 1 \pmod 5) 1+5t≡2(mod7)⇒5t≡1(mod7)1 + 5t \equiv 2 \pmod{7} \Rightarrow 5t \equiv 1 \pmod{7} Inverse of 5(mod7) is 3(5⋅3=15≡1)\text{Inverse of } 5 \pmod{7} \text{ is } 3 \quad (5\cdot 3 = 15 \equiv 1) t≡3(mod7)t \equiv 3 \pmod{7} t=3+7k(k∈Z)t = 3 + 7k \quad (k \in \mathbb{Z}) n=1+5(3+7k)=16+35kn = 1 + 5(3 + 7k) = 16 + 35k x2018=1+2017⋅5=10086x_{2018} = 1 + 2017\cdot 5 = 10086 y2018=9+2017⋅7=14128y_{2018} = 9 + 2017\cdot 7 = 14128 16+35k≤1008616 + 35k \le 10086 35k≤10070⇒k≤287.7135k \le 10070 \Rightarrow k \le 287.71 k=287: 16+35⋅287=10061≤10086 ✓k = 287:\ 16 + 35\cdot 287 = 10061 \le 10086\ \checkmark k=288: 16+35⋅288=10096>10086 ×k = 288:\ 16 + 35\cdot 288 = 10096 > 10086\ \times k=0,1,2,…,287k = 0, 1, 2, \ldots, 287 Number of common terms=288\text{Number of common terms} = 288 ∣X∪Y∣=∣X∣+∣Y∣−∣X∩Y∣|X \cup Y| = |X| + |Y| - |X \cap Y| =2018+2018−288= 2018 + 2018 - 288 =4036−288= 4036 - 288 ∣X∪Y∣=3748\boxed{|X \cup Y| = 3748}

More from Sequences and Series

All 22 Sequences and Series questions →