2018 AMC 10B Problem 23

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

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

23.

How many ordered pairs (a,b)(a, b) of positive integers satisfy the equation
a⋅b+63=20⋅lcm⁡(a,b)+12⋅gcd⁡(a,b), \begin{aligned} a \cdot b + 63 &= 20 \cdot \operatorname{lcm}(a, b) \\ &\quad {}+ 12 \cdot \gcd(a, b), \end{aligned}
where gcd⁡(a,b)\gcd(a, b) denotes the greatest common divisor of aa and b,b, and lcm⁡(a,b)\operatorname{lcm}(a, b) denotes their least common multiple?
00
22
44
66
88
Answer: B
Concepts:least common multiplegreatest common divisorSimon’s Favorite Factoring Trick
Small hint:
Use ab=gcd⁡(a,b)⋅lcm⁡(a,b);ab = \gcd(a,b) \cdot \operatorname{lcm}(a,b); let x=lcm⁡(a,b)x = \operatorname{lcm}(a,b) and y=gcd⁡(a,b)y = \gcd(a,b)
Big hint:
The equation becomes (x−12)(y−20)=177=3⋅59;(x - 12)(y - 20) = 177 = 3 \cdot 59; also yy must divide xx
Solution:
Recall ab=gcd⁡(a,b)lcm⁡(a,b).ab=\gcd(a,b)\operatorname{lcm}(a,b). Let x=lcm⁡(a,b)x=\operatorname{lcm}(a,b) and y=gcd⁡(a,b).y=\gcd(a,b). The equation becomes (x−12)(y−20)=177=3⋅59.(x-12)(y-20)=177=3\cdot59.
The positive factor pairs give (x,y)=(13,197),(x,y)=(13,197), (189,21),(189,21), (15,79),(15,79), and (71,23).(71,23). The negative factor pairs make either xx or yy negative, so they are impossible. Also yy must divide x,x, and only (x,y)=(189,21)(x,y)=(189,21) passes.
Write a=21ua=21u and b=21v.b=21v. Then gcd⁡(u,v)=1\gcd(u,v)=1 and uv=18921=9,uv=\frac{189}{21}=9, so (u,v)=(1,9)(u,v)=(1,9) or (9,1).(9,1). Hence the two ordered pairs are (21,189)(21,189) and (189,21),(189,21), and B is the correct answer.
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.