The Coin Sum Puzzle
Solution


Question 1: Certainly, a mindless way to solve this puzzle is to run through the triples of possible denominations, although you also must then examine all possible sums of three coins of those denominations.

To use at least a little mental ability, we start by denoting the coins, in ascending order of value, by a, b, and c. To begin, the possible combinations of coins are

  1. (a,a,a)
  2. (a,a,b)
  3. (a,a,c)
  4. (a,b,b)
  5. (a,b,c)
  6. (a,c,c)
  7. (b,b,b)
  8. (b,b,c)
  9. (b,c,c)
  10. (c,c,c)

(There are 10 possibilities because 10 = 5!/(3!2!), which comes from the possible permutations of 3 1's and 2 dividing lines |, which is one way of representing each combination. For example, (a,c,c) = '1| |11' since we have 1 "a", 0 "b"'s and 2 "c"'s.)

We note that none of the three sums is divisible by three, and therefore, combinations 1, 7, and 10 are impossible. We can also draw a network of the possible combinations, and partially order them, without knowing yet the values of the coins.

This means our possible combinations of 3 coins are

  1. (a,a,b)
  2. (a,a,c)
  3. (a,b,b)
  4. (a,b,c)
  5. (a,c,c)
  6. (b,b,c)
  7. (b,c,c)

(More to come.)


Question 2: Surprisingly, as long as the coin denominations do not have a common factor, there will only be a finite number of values that cannot be formed. If there are just two denominations, then there is a simple formula that can be used to determine the number of missing values, and the highest such value. But for the case of three denominations, it is perhaps easiest to simply grind through the possibilities.

But how do we "grind through"? Well, suppose we write p(n) to represent "It is possible to form the value n." Suppose we have a table of values of p(n). Then, surely, one of the laws that these numbers must obey is:


        p(n) = p(n-20) | p(n-9) | p(n-6)
      
That is, we can form n if and only if we can form at least one of the values n-20, n-9, or n-6. Of course, we have to be careful to interpret this formula correctly for small n. In that case, we should interpret p of a negative number is false, and p(0) is true (using no coins at all).

Our table, from 0 to 50, is:
SumExample
00
1no
2no
3no
4no
5no
66
7no
8no
99
10no
11no
126+6
13no
14no
156+9
16no
17no
186+6+6
19no
2020
216+6+9
22no
23no
246+6+6+6
25no
266+20
279+9+9
28no
299+20
306+6+6+6+6
31no
326+6+20
336+9+9+9
34no
356+9+20
366+6+6+6+6+6
37no
386+6+6+20
396+6+9+9+9
4020+20
416+6+9+20
426+6+6+6+6+6+6
43no
446+6+6+6+20
459+9+9+9+9
466+20
476+6+6+9+20
486+6+6+6+6+6+6+6
499+20+20
506+6+6+6+6+20

Surprisingly, all this work pays off. We can be convinced that 43 is the highest missing number. That's because we have a string of 6 attainable values following 43, namely 44 through 49. But that means the next string of 6, namely 50 though 55, is also attainable, simply by adding a coin of value 6. But then the next string of six can be attained in the same way, and so on.

So there are only a finite number of missing values, and 43 is the highest!

This puzzle originated from the fact that McDonald's offered Chicken McNuggets in boxes of 6, 9 or 20 pieces. There is no way to order boxes with a total of 10 or 19 pieces, obviously, and it seemed obviously that there would be infinitely many numbers that you could not form from in this way. But there are only finitely many, and 43 is the biggest one.


Back to The Coin Sum Puzzle.


Last revised on 26 June 2005.