Skip to main content

2004 AMC 10B Problem 21

Problem 21 of 25HarderAlgebraNumber TheoryCounting & Probability

Let 1,1, 4,4, \ldots and 9,9, 16,16, \ldots be two arithmetic progressions. The set SS is the union of the first 20042004 terms of each sequence. How many distinct numbers are in S?S?

Answer choices

Show solution

Solution

The first sequence is 1+3k1 + 3k with largest term 6010,6010, and the second is 9+7j9 + 7j with a much larger last term, so the binding limit is 6010.6010. A common value has the form 16+21m16 + 21m (the first shared term is 16,16, spaced by lcm(3,7)=21\mathrm{lcm}(3, 7) = 21). Requiring 16+21m601016 + 21m \le 6010 gives 0m285,0 \le m \le 285, that is 286286 common numbers. The number of distinct values is 2004+2004286=3722.2004 + 2004 - 286 = 3722. Thus, the correct answer is A.

More practice

Concepts: arithmetic sequence · least common multiple · inclusion-exclusion

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.