Skip to main content

2006 AMC 10A Problem 22

Problem 22 of 25HarderNumber Theory

Two farmers agree that pigs are worth $300\$300 and that goats are worth $210.\$210. When one farmer owes the other money, he pays the debt in pigs or goats, with “change” received in the form of goats or pigs as necessary. (For example, a $390\$390 debt could be paid with two pigs, with one goat received in change.) What is the amount of the smallest positive debt that can be resolved in this way?

Answer choices

Show solution

Solution

A resolvable debt is D=300p+210gD = 300p + 210g for integers p,p, g,g, where a negative value means change received. Since D=30(10p+7g)D = 30(10p + 7g) and gcd(10,7)=1,\gcd(10, 7) = 1, the value 10p+7g10p + 7g can be any integer, so DD is any multiple of 30.30. The smallest positive one is 30,30, achieved by 30=300(2)+210(3)30 = 300(-2) + 210(3) (give 33 goats, receive 22 pigs). Thus, the correct answer is C.

More practice

Concepts: greatest common divisor · Diophantine Equation

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.