Algebra · real student question

Two finite arithmetic sequences are given: 2, 5, 8, 11, ... up to the 1000th term, and -1, 6, 13, 20, ... up to the 1000th term. How many numbers appear in both?

Question

Two finite arithmetic sequences are given:

(an): 2,  5,  8,  11,  ,  a1000(bn): 1,  6,  13,  20,  ,  b1000(a_n):\ 2,\;5,\;8,\;11,\;\dots,\;a_{1000}\qquad (b_n):\ -1,\;6,\;13,\;20,\;\dots,\;b_{1000}

How many numbers appear in both sequences?

A. 213213 B. 400400 C. 142142 D. 138138

Step-by-step solution

  1. Describe each sequence by a congruence. (an)(a_n) has d=3d=3 and starts at 22, so its terms are exactly the integers x2(mod3)x\equiv 2\pmod 3 in its range. (bn)(b_n) has d=7d=7 and starts at 1-1, so its terms are the integers x16(mod7)x\equiv -1\equiv 6\pmod 7.

  2. Find the last term of each. a1000=2+9993=2999,b1000=1+9997=6992a_{1000}=2+999\cdot 3=2999,\qquad b_{1000}=-1+999\cdot 7=6992 The overlap can therefore only live in [2,  2999][2,\;2999], the shorter range.

  3. Solve the pair of congruences. We need x2(mod3)x\equiv 2\pmod 3 and x6(mod7)x\equiv 6\pmod 7. Testing x=6,13,20x=6,13,20 against the first congruence, 20=36+220=3\cdot 6+2 works, so by the Chinese Remainder Theorem x20(mod21)x\equiv 20\pmod{21} (the modulus is lcm(3,7)=21\operatorname{lcm}(3,7)=21).

  4. Count the solutions inside the range. The shared terms are 20,41,62,299920,41,62,\dots\le 2999, an AP with difference 2121: 29992021+1=297921+1=141+1=142\left\lfloor\frac{2999-20}{21}\right\rfloor+1=\left\lfloor\frac{2979}{21}\right\rfloor+1=141+1=142

  5. Confirm and answer. Building both 1000-term sets explicitly and intersecting them also returns 142142 elements, so the answer is C.

Answer

142142

Need to solve a different problem like this? Open the solver →