2018 AMC 10B Problem 23

Below is the professionally curated solution for Problem 23 of the 2018 AMC 10B, 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 of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:least common multiplegreatest common divisorSimon’s Favorite Factoring Trick

Difficulty rating: 2120

23.

How many ordered pairs (a,b)(a, b) of positive integers satisfy the equation

ab+63=20lcm(a,b)+12gcd(a,b),a \cdot b + 63 = 20 \cdot \operatorname{lcm}(a, b) + 12 \cdot \gcd(a, b),

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

Solution:

Recall 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). The equation turns into xy+63=20x+12y,xy + 63 = 20x + 12y, which factors as (x12)(y20)=177=359.(x - 12)(y - 20) = 177 = 3 \cdot 59. The positive factorizations give (x,y)=(13,197),(189,21),(15,79),(71,23).(x, y) = (13, 197), (189, 21), (15, 79), (71, 23). But we also need yx,y \mid x, and only (189,21)(189, 21) passes. So gcd=21,\gcd = 21, lcm=189,\operatorname{lcm} = 189, and {a,b}={21,189}.\{a, b\} = \{21, 189\}. That's the 22 ordered pairs (21,189)(21, 189) and (189,21).(189, 21). Thus, B is the correct answer.

Problem 23 in Other Years