Thursday, 23 October 2025

Exercise (1.4).7

Assume there are one hundred pence in the pound (£). First-class stamps cost 60p (£0.60) and second-class stamps cost 50p (£0.50) each.

What combination(s) of stamps can you get for exactly £50, leaving no change?


We encode the problem as follows, with $x$ as the number of first class stamps, and $y$ second class stamps.

$$ 60x + 50y = 5000 $$


The $\gcd(60,50)=10$ divides 5000, which tells us the equation has integer solutions.


By inspection, a solution is $x_0=0, y_0=100$. A general solution is

$$ x = 5t, \quad y = 100 - 6t $$

for any integer $t$.


However, we require $x$ and $y$ to be non-negative, so

$$ 5t \geq 0 $$

$$ 100 - 6t \geq  0$$

That is

$$ 0 \leq t \leq \frac{50}{3}t $$


Non-negative integer values for $x$ and $y$ are generated by $t$ ranging from 0 to 16.

tx=5ty=100-6t60x+50y




001005000
15945000
210885000
315825000
420765000
525705000
630645000
735585000
840525000
945465000
1050405000
1155345000
1260285000
1365225000
1470165000
1575105000
168045000