AMC 10 to AIME Number Theory: Group a GCD Sum by Its Possible Divisors

A sum involving many greatest common divisors often hides a small classification problem. Consider the original exercise S = gcd(1,12) + gcd(2,12) + ... + gcd(12,12). Instead of treating the twelve terms as unrelated computations, classify the integers by their exact greatest common divisor with 12. This is a method exercise, not a current AMC or AIME question.

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

List the only possible class labels

Every gcd(k,12) must divide 12, so its possible values are 1,2,3,4,6 and 12. These values define disjoint classes: each k belongs to exactly one of them. Simply counting multiples of each divisor would create overlaps. For example, k = 12 is a multiple of 2,3,4 and 6, but its exact gcd with 12 is only 12.

Count the first two classes explicitly

The integers from 1 to 12 coprime to 12 are 1,5,7 and 11, contributing four terms of value 1. Exact gcd 2 occurs for 2 and 10, contributing two terms of value 2. The multiple 6 is excluded from that class because its gcd is 6; the multiple 4 is excluded because its gcd is 4. The word exact is doing real work.

Complete the divisor table

Exact gcd 3 occurs for 3 and 9, exact gcd 4 for 4 and 8, exact gcd 6 only for 6, and exact gcd 12 only for 12. The class sizes are therefore 4,2,2,2,1 and 1. They sum to 12, checking that every original index has been counted once. The weighted sum is 4 + 4 + 6 + 8 + 6 + 12 = 40.

Explain the general counting mechanism

If gcd(k,n) = d, write k = dj and n = dm. The condition becomes gcd(j,m) = 1, with j between 1 and m. Thus the number of indices in the class labelled d is the number of integers in that range coprime to n/d. Using the standard notation phi for that count gives the identity sum gcd(k,n) = sum d phi(n/d), where the second sum runs over positive divisors d of n.

Handle the endpoint convention

When d = n, the reduced range contains only j = 1, and gcd(1,1) = 1. Consequently the last class has one member, consistent with phi(1) = 1. Omitting k = n or treating that class as empty changes the answer. A written solution should state whether its original sum includes both endpoints before applying a remembered identity.

Build an AIME-style checking routine

For a larger n, factor n to list divisors, count each reduced coprime class, and verify that all class sizes sum to n. This checks the partition independently of the weighted total. The useful transition from AMC 10 practice to deeper problems is learning why a compression works; there is no need to assume an invitation threshold or contest date in order to practise that skill.

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

Contact Hanlin

Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send AMC10-GCD-1124. 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-1124.

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

AMC 10 to AIME Number Theory: Dividing a Congruence Changes Its Modulus

Cancelling a common factor in a modular equation is not the same as cancelling a nonzero factor in an ordinary real equation. The modulus must be considered too. This original AMC 10 to AIME bridge exercise solves 8x congruent to 4 modulo 12, with x restricted first to the residues from 0 through 11. It makes no claim about future qualification thresholds or examination questions.

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

Translate the notation into divisibility

The congruence means that 12 divides 8x minus 4. Equivalently, there is an integer k such that 8x minus 4 equals 12k. This ordinary integer equation is a useful safeguard: any manipulation of the congruence should preserve exactly the same integer solutions. It also explains why the requirement is about a remainder, rather than equality between 8x and 4.

Divide the full integer relation

Every term in 8x minus 4 equals 12k is divisible by 4. Dividing gives 2x minus 1 equals 3k, so the reduced congruence is 2x congruent to 1 modulo 3. The new modulus is 3, not 12. The original greatest common divisor of 8 and 12 is 4, and the right-hand side is divisible by that same factor, allowing this reduction.

Solve the reduced remainder problem

Modulo 3, multiplying the equation by 2 gives x congruent to 2 because 2 times 2 leaves remainder 1. Thus every integer solution has the form x = 2 + 3t for an integer t. Restricting to 0 through 11 gives x equal to 2, 5, 8 or 11. Each satisfies the original congruence: the corresponding products leave remainder 4 on division by 12.

See why an unchanged modulus loses solutions

If one incorrectly kept modulus 12 after dividing by 4, the equation would demand that 2x leave remainder 1 on division by 12. That is impossible because 2x is even. The incorrect manipulation would discard all four valid solutions. This concrete contradiction is a stronger check than simply memorising that modular cancellation has an exception; it reveals exactly where the solution set changed.

Contrast a genuinely impossible equation

Now consider 8x congruent to 6 modulo 12. Its divisibility form would require 8x minus 6 to be a multiple of 12. But 8x minus 6 leaves remainder 2 on division by 4, whereas every multiple of 12 is divisible by 4. There are no solutions. In preparation notes, record both the solvability condition and the full recovered residue classes, rather than reporting only one convenient representative.

Continue reading: AIME Number Theory for AMC 10 Students: From Remainders to a Complete Answer.

Contact Hanlin

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

Scan to contact Hanlin on WeChat. Send AMC10-CONGRUENCE-DIVISION-1123.

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