**STEP I 1997, Question 1**

*Show that you can make up 10 pence in eleven ways using 10p, 5p, 2p and 1p coins.*

*In how many ways can you make up 20 pence using 20p,10p 5p, 2p and 1p coins?*

There is an interesting way of approaching this question using *generating functions*.

A generating function is of the form:

where the coefficients of count various problems and issues of convergence are unimportant.

*Show that you can make up 10 pence in eleven ways using 10p, 5p, 2p and 1p coins.*

This will be the co-efficient of in,

by way of explanation:

The candidate still needs to expand the function to get the answer, but having changed the problem to one of algebra, they might enjoy the benefits of practice and familiarity in the manual computation.

For those of at liberty to explore the question at leisure, a Computer Algebra System (CAS) is useful. In fact, the website Wolfram Alpha will expand the brackets for us, computing the answers to all similar counting problems in the process. The Wolfram Alpha query box understands the latex code if this is just pasted in, but only if it is presented in an explicit form, that is without the dots. In order to simplify the question for the CAS notice that each bracket is a *geometric progression*, which can be summed using standard A level theory reducing the function to:

Use of Wolfram Alpha then gives the following:

which contains our answer to the first part: 11.

Equipped with some methods and machinery we can now proceed to the second part of the question. In fact, we can adapt the method and functions to count any similar loose change problem.

*In how many ways can you make up 20 pence using 20p,10p 5p, 2p and 1p coins?*

This will be the coefficient of in,

which is equal to

and which Wolfram Alpha gives and expansion of:

and our answer: 41.

### Like this:

Like Loading...

*Related*