Clear Notion Academy

JEE Advanced 2018 Mathematics PYQ: Let X be the set consisting of the first 2018 terms of the arithmetic progression 1,6,11…

Question

Let XX be the set consisting of the first 2018 terms of the arithmetic progression 1,6,11,…1,6,11,\ldots, and YY be the set consisting of the first 2018 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

Answer: 3748

Hint

Use ∣X∪Y∣=∣X∣+∣Y∣−∣X∩Y∣|X\cup Y| = |X|+|Y|-|X\cap Y|. Find ∣X∩Y∣|X\cap Y| by solving the simultaneous congruences for common terms via the Chinese Remainder Theorem, then bound how many such common terms fall in range.

Solution

Deconstruction\textbf{Deconstruction}: XX has terms 5n−45n-4 for n=1,…,2018n=1,\ldots,2018 (i.e. 1,6,…,100861,6,\ldots,10086), and YY has terms 7m+27m+2 for m=1,…,2018m=1,\ldots,2018 (i.e. 9,16,…,141289,16,\ldots,14128). We need ∣X∪Y∣|X\cup Y|. Strategy\textbf{Strategy}: ∣X∪Y∣=∣X∣+∣Y∣−∣X∩Y∣|X\cup Y|=|X|+|Y|-|X\cap Y|. Find the common values via simultaneous congruences x≡1(mod5)x\equiv1\pmod5 and x≡2(mod7)x\equiv2\pmod7, then count how many such values lie within XX's range (since XX's range [1,10086][1,10086] is the smaller one, any common term must lie in it). Execution\textbf{Execution}: Solve x=5k+1≡2(mod7)⇒5k≡1(mod7)x=5k+1\equiv2\pmod7 \Rightarrow 5k\equiv1\pmod7. Since 5×3=15≡1(mod7)5\times3=15\equiv1\pmod7, k≡3(mod7)k\equiv3\pmod7, so k=7j+3k=7j+3, giving x=5(7j+3)+1=35j+16x=5(7j+3)+1=35j+16. So common terms are exactly the numbers ≡16(mod35)\equiv16\pmod{35}. These must satisfy 16≤x≤1008616\le x\le10086 (the smaller of the two ranges): 35j+16≤10086⇒j≤1007035=287.71…35j+16\le10086 \Rightarrow j\le\frac{10070}{35}=287.71\ldots, so j=0,1,…,287j=0,1,\ldots,287: that's 288288 common terms (each such xx automatically also lies within YY's wider range [9,14128][9,14128], and corresponds to valid indices n≤2018n\le2018, m≤2018m\le2018 — e.g. the smallest, x=16x=16, is the 4th term of XX and 2nd term of YY, both well within the first 2018 terms). So ∣X∩Y∣=288|X\cap Y|=288, and ∣X∪Y∣=2018+2018−288=3748|X\cup Y| = 2018+2018-288 = 3748. Verification\textbf{Verification}: Check the largest common term, j=287j=287: x=35(287)+16=10061≤10086x=35(287)+16=10061\le10086 ✓, and the next one j=288j=288 gives x=10096>10086x=10096>10086, correctly excluded. Also verify 1616 satisfies both: 16=5(4)−4=1616=5(4)-4=16 ✓ (n=4) and 16=7(2)+2=1616=7(2)+2=16 ✓ (m=2). Final Answer\textbf{Final Answer}: 37483748.

More questions from JEE Advanced 2018 Mathematics PYQ

Practise the full set: JEE Advanced Mathematics PYQs 2018