2004 AMC 10B Problem 21

Attempt Problem 21 of the 2004 AMC 10B below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2004 AMC 10B solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

21.

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?
37223722
37323732
39143914
39243924
40074007
Answer: A
Concepts:arithmetic sequenceleast common multipleinclusion-exclusion
Small hint:
The first sequence has common difference 33 and last term 1+3⋅2003=60101 + 3 \cdot 2003 = 6010
Big hint:
Common terms start at 1616 and are spaced by lcm(3,7)=21;\mathrm{lcm}(3, 7) = 21; count the terms not exceeding 60106010
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+21m≤601016 + 21m \le 6010 gives 0≤m≤285,0 \le m \le 285, that is 286286 common numbers.
The number of distinct values is 2004+2004−286=3722.2004 + 2004 - 286 = 3722.
Thus, the correct answer is A.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.