Difference between revisions of "2006 AMC 10A Problems/Problem 22"
m (added category and link to previous and next problem) |
|||
Line 13: | Line 13: | ||
== See also == | == See also == | ||
*[[2006 AMC 10A Problems]] | *[[2006 AMC 10A Problems]] | ||
+ | |||
+ | *[[2006 AMC 10A Problems/Problem 21|Previous Problem]] | ||
+ | |||
+ | *[[2006 AMC 10A Problems/Problem 23|Next Problem]] | ||
+ | |||
+ | [[Category:Introductory Number Theory Problems]] |
Revision as of 16:02, 4 August 2006
Problem
Two farmers agree that pigs are worth $300 and that goats are worth $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 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?
Solution
The problem can be restated as an equation of the form , where
is the number of pigs,
is the number of goats, and
is the positive debt. The problem asks us to find the lowest x possible. p and g must be integers, which makes the equation a Diophantine equation. The Euclidean algorithm tells us that there are integer solutions to the Diophantine equation
, where
is the greatest common divisor of
and
, and no solutions for any smaller
. Therefore, the answer is the greatest common divisor of 300 and 210, which is 30,
Alternatively, note that is divisible by 30 no matter what
and
are, so our answer must be divisible by 30. In addition, three goats minus two pigs give us
exactly. Since our theoretical best can be achived, it must really be the best, and the answer is
.