Let ; ; ; and ; ; ; be two arithmetic progressions. The set is the union of the first terms of each sequence. How many distinct numbers are in ?
- A)
- B)
- C)
- D)
- E)
Answer
A
Key insight
Shared terms are 16 mod 21 and run only up to 6010, the slower sequence's last term, so there are 286 of them.
Solution
The first progression is for : the numbers from up to . The second is for : the numbers from up to .
The two lists contribute terms, and is minus the number of values appearing in both.
A common value must be and . The smallest such number is (), and the condition repeats with period , so the common candidates are , i.e. . They must also lie within both ranges: at least (automatic) and at most , the cap of the first progression, which is the binding one. From we get , so : common values.
Therefore
The answer is .
Why this works
Two arithmetic progressions with coprime differences overlap in a single arithmetic progression whose difference is the product; a quick search finds its first term, and residues do the rest. The counting step is then inclusion-exclusion, and the only delicate point is the range: a shared value must satisfy both sequences' limits, so the shorter reach () governs.
Alternative approach
Count within the second progression: , so exactly when ; and means . The values number .
The trap
Counting common terms over the second sequence's full range (up to 14030) instead of stopping at 6010, where the first sequence ends.
Common mistakes
- Counting common terms over the second sequence's full range (up to 14030) instead of stopping at 6010, where the first sequence ends.
- Forgetting the overlap altogether () or an off-by-one in the count of (getting or ).
Techniques
Bound the quantity above/below or estimate to pin it down · Set up the equation/formula and compute; no special trick needed