AMC 10 Step by Step

2006 AMC 10A Problem 22

P21-25~4 minPrint

Two farmers agree that pigs are worth 300300 dollars and that goats are worth 210210 dollars. 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 390390 dollar 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?

Log in to save your progress.
Show solution without answering

Key insight

Every payment is made of 300s and 210s, added or subtracted, so it is a multiple of 30. Three goats minus two pigs makes exactly 30.

Solution

A debt can be paid if it equals (pigs handed over) ×300\times 300 plus (goats handed over) ×210\times 210, where animals given back as change count as negative. This is a "smallest possible" question, so show two things: nothing smaller than 3030 works, and 3030 does work.

Part 1: every debt is a multiple of 30.

  1. Both prices are multiples of 3030: 300=30×10300 = 30 \times 10 and 210=30×7210 = 30 \times 7.
  2. Adding or subtracting multiples of 3030 always gives a multiple of 3030. So any debt that can be settled is a multiple of 3030, and the smallest positive one is at least 3030.

Part 2: a debt of 30 can be settled.

3. In units of 3030 dollars, a pig is worth 1010 and a goat 77. We want 11 unit. Try multiples of 77: 7,14,21,…7, 14, 21, \ldots. The number 2121 is 11 more than 2020. So 33 goats minus 22 pigs works:
3×210−2×300=630−600=30.3 \times 210 - 2 \times 300 = 630 - 600 = 30.
4. In words: the farmer who owes 3030 dollars hands over 33 goats and gets 22 pigs back as change.

Nothing smaller than 3030 works, and 3030 does, so the answer is 3030.

The answer is (C) 30\boxed{\textbf{(C)}\ 30}.

Why this works

When you can add and subtract two amounts as often as you like, the smallest positive total you can reach is their greatest common divisor. It can never be smaller, because the greatest common divisor divides everything you make, and some combination always reaches it exactly. The "change" in the story is what allows subtracting.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

A debt DD can be settled exactly when D=300p+210gD = 300p + 210g for some integers pp and gg, where a negative count means that animal is handed back as change.

Lower bound: 300=30⋅10300 = 30 \cdot 10 and 210=30⋅7210 = 30 \cdot 7, so 300p+210g=30(10p+7g)300p + 210g = 30(10p + 7g) is always a multiple of 3030. The smallest positive debt is therefore at least 3030.

Achievability: we need 10p+7g=110p + 7g = 1. Trying small values, p=−2p = -2, g=3g = 3 works: 3⋅210−2⋅300=630−600=303 \cdot 210 - 2 \cdot 300 = 630 - 600 = 30. In words, the debtor hands over three goats and receives two pigs in change.

So 3030 is both a lower bound and attainable.

The answer is (C) 30\boxed{\textbf{(C)}\ 30}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site. Also appeared as 2006 12A #14.