AMC 10 to AIME: Recovering Numbers from Their GCD and LCM

Problems giving both a greatest common divisor and a least common multiple are often easier after a change of variables. The change removes a shared factor and reveals a coprimality condition. This original worked example develops reasoning useful in later integer-answer practice without predicting an AIME qualifying score.

Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send AMC10-GCD-LCM-1114 and tell us your school year and question.

Remove the known common factor

Let a and b be positive integers with gcd(a,b) = 6 and lcm(a,b) = 180. Write a = 6x and b = 6y. The greatest common divisor condition now says gcd(x,y) = 1. The familiar product identity ab = gcd(a,b) times lcm(a,b) gives 36xy = 1080, so xy = 30. The coprimality requirement must remain attached to this simpler product.

List unordered pairs with an ordering convention

If a is no greater than b, then x is no greater than y. The positive factor pairs of 30 are (1,30), (2,15), (3,10), and (5,6). Each pair is coprime, giving the original pairs (6,180), (12,90), (18,60), and (30,36). Each has gcd 6 and lcm 180, which can be checked directly.

Explain the count through prime factors

The number 30 has three distinct prime factors: 2, 3 and 5. Because x and y are coprime, each prime must be assigned entirely to one side. There are 2 cubed, or eight, ordered assignments. Swapping the two sides pairs these assignments, so there are four unordered pairs. No assignment equals its swap because x = y would force xy to be a square, whereas 30 is not.

Do not generalise from square-free factors carelessly

For a product containing a repeated prime power, that whole prime power still has to stay on one side if the factors are coprime. Splitting two copies of the same prime between x and y would introduce a shared divisor. Simply counting all ordinary factor pairs can therefore overcount when the reduced product is not square-free. The gcd condition does real work.

Build a preparation habit around verification

After finding candidates, recover a and b and test both original conditions. Also check whether the question distinguishes ordered pairs from unordered pairs. These small decisions can change a final integer even when the algebra is correct. Early AIME preparation benefits from writing such constraints clearly and solving a few related cases thoroughly, rather than collecting an unsupported list of answer patterns.

Continue reading: AMC 10 to AIME Geometry: Count Interior Grid Points Without Including the Boundary.

Contact Hanlin

Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send AMC10-GCD-LCM-1114. Include your school year, country or competition region, experience and the question you want to discuss.

Scan to contact Hanlin on WeChat. Send AMC10-GCD-LCM-1114.

Contact Hanlin on WeChat

On your phone, use the button or save the QR image and scan it within WeChat.

Official information and further reading: Source 1

Online Customer Service
Contact Customer Service