2002 AMC 12B Problem 12

Attempt Problem 12 of the 2002 AMC 12B 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 2002 AMC 12B solutions, or check the answer key.

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

12.

For how many integers nn is n20−n\dfrac{n}{20-n} the square of an integer?
11
22
33
44
1010
Answer: D
Concepts:perfect squaredivisibility
Small hint:
Set n20−n=k2\dfrac{n}{20-n}=k^2 and solve for nn in terms of kk
Big hint:
n=20k2k2+1n=\dfrac{20k^2}{k^2+1}; since gcd⁡(k2,k2+1)=1,\gcd(k^2,k^2+1)=1, k2+1k^2+1 must divide 2020
Solution:
Set n20−n=k2.\dfrac{n}{20-n}=k^2. Solving, n=20k2k2+1.n=\dfrac{20k^2}{k^2+1}. Since k2k^2 and k2+1k^2+1 are coprime, k2+1k^2+1 must divide 20,20, which happens only for ∣k∣=0,1,2,3.|k|=0,1,2,3.
The signs of kk do not change n;n; these give n=0,n=0, 10,10, 16,16, and 18,18, which is four values.
Thus, the correct answer is D.
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.