Largest three digit common term in two APs

CAT 2023 Slot 2 · QA · Medium · Algebra

Let ana_n and bnb_n be two sequences such that an=13+6(n1)a_n = 13 + 6(n - 1) and bn=15+7(n1)b_n = 15 + 7(n - 1) for all natural numbers nn. Then, the largest three digit integer that is common to both these sequences, is

Answer

967

Explanation

We have an=6n+7a_n = 6n + 7 and bm=7m+8b_m = 7m + 8.

Let XX be a term common to both sequences: X71(mod6)X \equiv 7 \equiv 1 \pmod 6 X81(mod7)X \equiv 8 \equiv 1 \pmod 7

By Chinese Remainder Theorem, X1(modLCM(6,7))    X1(mod42)X \equiv 1 \pmod{\text{LCM}(6, 7)} \implies X \equiv 1 \pmod{42}.

So X=42k+1X = 42k + 1 for some integer kk.

To find the largest 3-digit common integer, we set X999X \le 999: 42k+1999    42k998    k23.7642k + 1 \le 999 \implies 42k \le 998 \implies k \le 23.76

Taking k=23k = 23: X=42(23)+1=966+1=967X = 42(23) + 1 = 966 + 1 = 967

Practise this under exam conditions

Sign in to solve it with a live timer, the on-screen CAT calculator, and streak and accuracy tracking across every question you attempt.

Solve in the workspace