Two finite arithmetic sequences are given:
How many numbers appear in both sequences?
A. B. C. D.
Describe each sequence by a congruence. has and starts at , so its terms are exactly the integers in its range. has and starts at , so its terms are the integers .
Find the last term of each. The overlap can therefore only live in , the shorter range.
Solve the pair of congruences. We need and . Testing against the first congruence, works, so by the Chinese Remainder Theorem (the modulus is ).
Count the solutions inside the range. The shared terms are , an AP with difference :
Confirm and answer. Building both 1000-term sets explicitly and intersecting them also returns elements, so the answer is C.
Need to solve a different problem like this? Open the solver →