CEMC Banner

Problem of the Week
Problem E and Solution
Exactly Four

Problem

A machine dispenses four kinds of tokens. Red tokens are worth \(25\) points, blue tokens are worth \(10\) points, green tokens are worth \(5\) points, and yellow tokens are worth \(1\) point. The machine never runs out of tokens to dispense.

To get tokens from the machine, people enter a total number of points, and the machine will dispense the fewest number of tokens that total that number of points. For example, if someone enters \(30\) points, the machine will dispense \(1\) red token and \(1\) green token, because their total value is \(25+5=30\) points, and this total cannot be obtained using fewer tokens.

For how many different total numbers of points will the machine dispense exactly \(4\) tokens?

Solution

We start by noting how many of the \(4\) tokens can be a particular colour. There can be up to \(4\) red tokens because they have the largest value, so the machine cannot obtain the same total number of points using fewer tokens. There can also be up to \(4\) yellow tokens, because \(4\) yellow tokens have a total value of \(4\) points, which is less than the value of \(1\) green token. The number of blue tokens must be less than \(3\), because \(3\) blue tokens have a total value of \(30\) points, which can be obtained using fewer tokens (namely \(1\) red token and \(1\) green token). Similarly the number of green tokens must be less than \(2\), because \(2\) green tokens have a total value of \(10\) points, which is the value of \(1\) blue token. Finally, we cannot have \(2\) blue tokens and \(1\) green token, because they have a total value of \(25\) points, which is the value of \(1\) red token.

Now we count the number of combinations of \(4\) tokens that can be dispensed from the machine.

In total, there are \(1+3+5+5+5=19\) different total numbers of points for which the machine will dispense exactly \(4\) tokens.

The \(19\) possible totals obtained using exactly \(4\) tokens are as follows.

\(4\), \(8\), \(13\), \(17\), \(22\), \(28\), \(32\), \(37\), \(41\), \(46\), \(52\), \(56\), \(61\), \(65\), \(70\), \(76\), \(80\), \(85\), \(100\)