<?xml version="1.0" encoding="ISO-8859-1" ?>
  <resource>
  <id>5963</id>
  <path>/www/nrich/html/content/id/5963/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2011-02-01T00:00:01</last_published>
  <indexXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;p&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;This problem involves considering, comparing and assessing different ways to solve a very difficult &amp;#39;background&amp;#39; problem. There are three different parts to this unusual and thought-provoking task.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Background problem&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Note: solving the background problem is very involved and not the main focus of this task!&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
A mathematician goes into a supermarket and buys four items. It has been a while since she has used a calculator and she multiplies the cost (in pounds, using the decimal point for the pence) instead of adding them. At the checkout she says, &amp;quot;So that&amp;#39;s £7.11&amp;quot; and the checkout man, correctly adding the items, agrees.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The mathematician very, very slowly puts the items into her bag whilst thinking and tapping away on her calculator. She eventually says &amp;quot;I believe that the prices of four items with this property is unique&amp;quot;.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
Spend a few minutes trying this problem yourself to get a feel for its mathematical structure.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-style: italic;&quot;&gt;Please note: Although it involves only the basic properties of numbers, the background problem is very difficult and time-consuming to solve directly. Now there&amp;#39;s a challenge ....&lt;/span&gt;  &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Main problem&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
Read carefully the two solutions provided in the &lt;a href=&quot;http://nrich.maths.org/5963&amp;amp;part=clue&quot;&gt;hints tab&lt;/a&gt;. How do your attempts at the first part compare to, or differ from, these two solutions? Which of the two solutions do you prefer? Why?&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Follow up task&lt;/span&gt; &lt;br&gt;&lt;/br&gt;
If you were now to be given related problems with £7.11 replaced by £7.12 or £7.13 or £7.14 how would you now choose to proceed? Can you assess in advance which of these problems will probably be harder or easier? Can you efficiently solve any of these problems with the benefit of hindsight?&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
 This task  was inspired by a problem from &amp;quot;Sums for Smart Kids&amp;quot; by Laurie Buxton, published by &lt;a href=&quot;http://www.beam.co.uk/&quot;&gt;BEAM Education&lt;/a&gt; &lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML/>
  <noteXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
 

&lt;h3&gt;Why do this problem?&lt;/h3&gt;

&lt;div&gt;This problem provides an introduction to advanced mathematical
behaviour which might not typically be encountered until
university. The content level is secondary, but the thinking is
sophisticated and will benefit the mathematical development of
school-aged mathematicians. It will be of particular interest to
students who want to learn to think like mathematicians and can be
used at any point in the curriculum. It will need to be used
with students who are already used to engaging with sustained
mathematical tasks.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div&gt;Essentially the task involves carefully reading and then
reflecting upon the merits of two very different solutions to a
'difficult-to-solve-but-easy-to-understand' problem. This is of
value because mathematicians don't simply stop once an answer is
found; reflecting on the method of solution is a key part of
advanced mathematical activity. It will help train school students
in the art of assessing their own solutions, which will inevitably
lead to better performance in exams.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Note: The Full Solutions are
to be&lt;/span&gt; &lt;a href=&quot;http://nrich.maths.org/5963&amp;amp;part=clue&quot;&gt;found here&lt;/a&gt; -
just click on the 'View full solution' link.&lt;/div&gt;

&lt;h3&gt;Possible approaches&lt;/h3&gt;

&lt;div&gt;This task ideally requires at least two students to work
together so that ideas arising can be discussed. We suggest
two different ways of using the problem:&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div style=&quot;font-weight: bold;&quot;&gt;1. Filling time for
early-finishers/mathematics club&lt;/div&gt;

&lt;div&gt;Print out a few copies of the problem and solutions to have to
hand. Give them out to groups of keen  early-finishers to
consider in 'spare' lesson time over the course of a week. Give
them space to discuss the two solutions, help each other to
understand the subtleties and then to discuss the relative merits
of the solutions. The problem will automatically generate
discussion amongst students, but you might like them to 'report'
back to you or others with things that they have discovered or
explored.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div style=&quot;font-weight: bold;&quot;&gt;2. Whole-class activity&lt;/div&gt;

&lt;div&gt;Set the background task itself as a homework problem with a
fixed time-limit, stressing that only a partial solution is
expected. Students should come prepared to report on the ways that
they tried to solve the problem and the things that they have
discovered about the problem.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div&gt;Back in the lesson, group students into pairs or fours. Hand
out printed copies of the solutions. Give the groups half an hour
or so to try to understand the solutions with the explicit task of
writing down 5 short bullet points which explain the key aspects of
the solution method. Some students will prefer to discuss solutions
together as they work through them whereas others will prefer to
work alone. Both approaches are fine, so you might wish to group
students according to their preferred style.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div&gt;Next spend 10 minutes sharing the different lists of bullet
points to create a 'shared' list for each problem on the
board.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div&gt;Spend the remanining time back in groups considering the
suggested variations on the background problem. Note that some
of these are significantly easier problems to solve because of
their simplified prime factorisation. As a focus for the activity,
set the explicit task: &amp;quot;which of the variation problems would
you choose to solve, and why?&amp;quot;&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;h3&gt;Key questions&lt;/h3&gt;

&lt;div&gt;What are the 'key steps' in the solutions, and what are the
'details'.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div&gt;Can you follow the overall 'strategy' of the two
solutions?&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div&gt;Which of the two solutions seems more 'reusable' for similar
variants on the background problem?&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div&gt;Which of the two solutions do you prefer? Why?&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div&gt;Of the suggested variants, which seems likely to be the
easiest to analyse? Why would you think that?&lt;/div&gt;

&lt;h3&gt;Possible extension&lt;/h3&gt;

&lt;div&gt;A simple-to-set extension is to ask students to solve one or
more of the suggested variations on the background
problems&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div&gt;Another more sophisticated extension is to ask: what would
make a variation of the background problem difficult or easy to
solve? Can you create a much simpler problem which has a unique
solution?&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;h3&gt;Possible support&lt;/h3&gt;

&lt;div&gt;Recall that we only recommend that you use this task with
students already used to sustained mathematical engagement with
tasks.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div&gt;To help students to get started with thinking about the
background task, suggest that they work in pence and convert
the two conditions into equations involving whole numbers. Stress
that the sum will be $711$ but the product will be $711,000,000$
due to multiplying by $100$ four times. Suggest also that prime
factorisation will be useful and a clear recording system will be
necessary to keep track of calculations.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div&gt;In assessing the solutions encourage students to go through
the solutions carefully line by line and to ask for clarification
when there is a line that they do not understand.&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;div&gt; &lt;/div&gt;

&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</noteXML>
  <clueXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
//
//
//

  $(document).ready(function() {
    $('#hideShow1').click(function(event) {
      event.preventDefault();
      $('#hidden1').toggle();
    });
    
    $('#hideShow2').click(function(event) {
      event.preventDefault();
      $('#hidden2').toggle();
    });
    
     $('#hideShow3').click(function(event) {
      event.preventDefault();
      $('#hidden3').toggle();
    });
    
    $('#hideShow4').click(function(event) {
      event.preventDefault();
      $('#hidden4').toggle();
    });

    $('#hideShow5').click(function(event) {
      event.preventDefault();
      $('#hidden5').toggle();
    });
    
    $('#hideShow6').click(function(event) {
      event.preventDefault();
      $('#hidden6').toggle();
    });
    
    $('#hideShow7').click(function(event) {
      event.preventDefault();
      $('#hidden7').toggle();
    });
  });
//
//
//
&lt;/script&gt;
Here are some hints:

Prime factorisation will probably be useful, as will working
in pence rather than pounds and pence.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
There are lots of different possibilities to consider, so you will
need to be clear with your recording system.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
To get a feel for the complexity, it is very unlikely that you will
be able to solve the first part of the problem in under two
hours.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;


&lt;a id=&quot;hideShow1&quot; href=&quot;#&quot;&gt;View full solutions&lt;/a&gt;

&lt;div style=&quot;display: none;&quot; id=&quot;hidden1&quot;&gt;



&lt;span class=&quot;editorial&quot;&gt;There are two possible approaches to this
question, other than trial and improvement/computer-based
approaches. One is combinatorial with a little arithmetic and does
not need a calculator; the other is algebraic with a little
combinatorics and needs a calculator. It is unclear as to which is
the most efficient: both are quite involved, although they only
involve simple steps&lt;/span&gt;.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;SOLUTION 1&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
We wish to find four numbers with at most two decimal places which
add up to $7.11$ and multiply together to give $7.11$. The decimals
seem awkward, so I will work in pence throughout so that everything
is a whole number. The problem is now to find four whole numbers A,
B, C, D which add up to $S= 711$ and multiply together to give
$P=711,000,000=79\times 5^6\times 3^2\times 2^6$. I'll call A, B,
C, D the costs (in pence). I need to allocate these 15 factors to
the four costs and will build up the costs factor by factor. I'll
use the notation $(a, b, c, d)(z)$ to indicate that $a, b, c, d$
are (unordered) factors allocated so far of the four costs and $z$
are the remaining factors to be distributed amongst the four costs
in some way. I'll gradually eliminate factor possibilities by
considering the form of $S$ and $P$. The plan is that we can check
that we reach the answer without a calculator.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
As there are many cases to consider, I'll split the proof up into
different explorations and intersperse these with the fact which
arise.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Fact 1:&lt;/span&gt; Clearly each cost
must be positive and less than 711.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Fact 2:&lt;/span&gt; The factor 79
can be multiplied by at most 8, since $79\times 9=711$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Exploration 1:&lt;/span&gt; Distribution
of the factors of 2.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Since $S$ is odd then either $1$ or $3$ of the costs are even. Thus
the costs have factors $(2^6, -, -, -)$ or $(2, 2, 2, -)(2^3)$,
with no 2s in the places marked $-$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Fact 3&lt;/span&gt;: The 2s are
distributed as follows in, with no 2s in the places marked
$-$&lt;br&gt;&lt;/br&gt;
$$(2^6, -, -, -)\mbox{ or }(2, 2, 2, -)(2^3)$$&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Exploration 2&lt;/span&gt;: Distribution
of the factors of 5.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Consider the $5^6$ factor of $P$. These six 5s must be distributed
amongst the four costs. Clearly each cost cannot be a factor of 5,
as the sum of the factors would end in a 5 or a 0. Therefore, at
most three of the costs are multiples of 5.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
No cost can be a multiple of $5^5 = 3125$; this is too large.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
No cost can be a multiple of $5^4=625$, since the remaining $5^2$
and $79$ must be factors of the other $3$ costs; the resulting sum
would be greater than $625+25+79&amp;gt; 711$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Therefore we deduce:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Fact 5:&lt;/span&gt; The $5$s are
distributed amongst the costs as either&lt;br&gt;&lt;/br&gt;
$$(5^3, 5^3, -, -)\,, (5^3, 5^2, 5^1, -)\,,\mbox{ or }(5^2, 5^2,
5^2, -)$$&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Exploration 3&lt;/span&gt;: Distribution
of the factors of 10&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 3.1&lt;/span&gt; All costs are
multiples of 10&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Clearly if all costs are multiples of 10 then the factor sum cannot
be 711. Therefore we deduce Fact 3.1:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Fact 3.1&lt;/span&gt; The four costs are
not all multiples of 10&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 3.2.&lt;/span&gt; Exactly 3 costs
are multiples of 10&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If three of the costs are multiples of 10 then the final cost must
end in a 1 to provide the correct sum. The only combination of
factors of $P$ which multiply to give a units digit of $1$ is
$79\times 3\times 3=711$. However, this cannot be a cost as it is
too large. Therefore, three of the costs cannot be a multiple of
10. Therefore:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Fact 3.2&lt;/span&gt; Exactly 0, 1 or 2
of the costs are multiples of 10.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 3.3 What if no cost is
a multiple of 10&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If none of the costs is a multiple of 10 then no cost can have
both a factor of 2 and a factor of 5. Combining this with Fact 5 we
see that the costs can only contain factors&lt;br&gt;&lt;/br&gt;
$$(2^6, 5^3, 5^3, -), (2^6, 5^3, 5^2, 5)\mbox{ or }(2^6, 5^2, 5^2,
5^2)$$&lt;br&gt;&lt;/br&gt;
Since the factor 79 can be multiplied by at most $8$ (see Fact
1) these possibilities reduce to&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
(2^6=64, 5^3=125, 5^2=25, 5\times 79=395)(3^2)&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
or&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
(2^6=64, 5^3=125, 5^3=125, 79)(3^2)&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
The factor sum of the first and second lists, excluding the factors
of 3 are 609 and 393 respectively, leaving a slack in the factor
sum of 102 and 318 respectively.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Now, since multiplying a factor by $9$ increases the sum by 8 times
the factor we see that the factors which are 3 cannot be in the
same cost in either case, since neither 102 nor 318 are multiples
of 8. Thus, the 3s need to be split which would increase the sum by
double the sum of two factors. These two factors would thus need to
add to 51 or 159. A quick inspection shows that neither
is possible. Thus we find&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Fact 3.3&lt;/span&gt; At least 1 cost is
a multiple of 10&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 3.4&lt;/span&gt;: &lt;span style=&quot;font-weight: bold;&quot;&gt;What if exactly one of the costs is a
multiple of 10&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Recall that either 1 or 3 of the costs are even. Look at these
distinct cases separately&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 3.4.1 What if exactly 1 cost
is even and exactly one cost is a multiple of 10&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If we have exactly 1 even cost then this must also be the only
multiple of 10. The possible factor list is therefore&lt;br&gt;&lt;/br&gt;
$$(64\times 5=320, -, -, -)(5^53^279)$$&lt;br&gt;&lt;/br&gt;
Since the 64 can be multiplied by at most one $5$ we see that this
is only compatible with the $(5^3, 5^2, 5, -)$ distribution of 5s,
giving&lt;br&gt;&lt;/br&gt;
$$(320, 125, 25, -)(3^279)$$&lt;br&gt;&lt;/br&gt;
It is easy to see that the 79 would have to occur in the final
cost, leaving as a possibility&lt;br&gt;&lt;/br&gt;
$$(320, 125, 25, 79)(3^2)$$&lt;br&gt;&lt;/br&gt;
Since the 79 can be multiplied by at most one 3 the digit sum mod 5
will be either $9$ mod $5 = 4$ or $(9\times 3)$ mod $5 = 2$, which
means that the sum cannot be 711.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Fact 3.4.1:&lt;/span&gt; We cannot have
exactly 1 even cost and exactly one multiple of ten.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 3.4.2&lt;/span&gt;: &lt;span style=&quot;font-weight: bold;&quot;&gt;What if exactly one of the costs is a
multiple of 10 and exactly 3 of the costs are even&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Clearly we need exactly one of the even factors also to have a
factor which is 5. The possible combinations of multiples of 2
and 5 are therefore permutations of $(2,2 ,2 , -)(125, 125, - - )$,
since three costs having a factor of 5 and three costs having a
factor of 2 would lead to at least two multiples of 10.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
This reduces the possibilities to&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
(250, 125, 2, 2)(2^33^279) \mbox{ with no additional evens or
powers of 10}&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
The factor of $79$ can in principle be multiplied by $2, 4, 6$ or
$8$, however only 2 and 4 are small enough when combined with the
250. This leaves two possibilities to consider:&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
(250, 125, 2\times2^33^2 =144, 158), (250, 125,2\times2^23^2=72 ,
316)&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
Neither of these sum to 1 mod 5, thus neither is possible.
Thus, we cannot have exactly one even cost and exactly 3 multiples
of 10. Combining this with fact 3.4.1 allows us to deduce
that&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Fact 3.4.2 We cannot have exactly
one cost being a multiple of 10&lt;/span&gt;.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 3.5 :What if exactly two
costs are multiples of 10&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
In this case we would require at least two factors to be multiples
of 2. Therefore we can consider $(2, 2, 2, -)$ combined with either
$(125, 125, -, -), (125, 25, 5, -)$ or $(25, 25, 25,-)$. For
exactly two multiples of 10 these must combine to give:&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
(250, 250, 2, -), (250, 50, 5, 2), (250, 25, 10, 2), (125, 50,
10,2)  \mbox{ or }(50, 50, 25, 2)&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
In each case we still need to distribute the remaining factors
$2^33^279$ without creating additional even numbers or multiples of
10.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Consider these two sub cases:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 3.5.1&lt;/span&gt;: &lt;span style=&quot;font-weight: bold;&quot;&gt;What if only two costs are multiples of
5&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The first of these possibilities, which only has two costs which
are multiples of 5, must therefore be $(250, 250, 16, 79)(3^2)$. As
$79$ cannot be multiplied by $9$ the only possibilities are $(250,
250, 16\times 3, 79\times 3)$ and $(250, 250, 16\times 9, 79)$. The
resulting mod 5 sums are $(6+9)\times 3 =0$ mod 5 and $(6\times 9 +
9)= 3$ mod 5; neither, therefore, works.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Fact 3.5.1:&lt;/span&gt; There cannot be
exactly two multiples of 10 and exactly two multiples of 5.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 3.5.2: Exactly three costs
are multiples of 5&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If exactly three costs are multiples of 5 then the final cost must
equal 1 mod 5 to have a chance of giving the correct factor sum.
The four remaining lists in question are&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
(250, 50, 5, 2), (250, 25, 10, 2), (125, 50, 10, 2) \mbox{ or }(50,
50, 25, 2)&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
The factor $79$ can only appear with the factors 2 or 5
from these lists. Consider these two cases separately.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 3.5.2.1&lt;/span&gt; One of the
costs is a multiple of $2\times 79$&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The cost containing a factor $2\times 79$ might contain
additional factors up to $2^33^2$. Since $(2\times 79)$ mod$ 5= 3$
the additional factors in this cost must have product equal to 2
mod 5, so that the overall mod 5 factor will be 1. The
possibilities to consider are therefore $2, 7, 12, 17, 22, 27, 32,
37, 42, 47, 52, 57, 62, 67, 72, \dots$. Using three 2s and 2
3s we can only make $2, 12= 2^23, 72$  from this list. Since
the $79$ can be multiplied by at most $8$, we can discard all but
this first of these possibilities, which we must pick to give a
factor of $4\times 79 = 316$. We therefore have four possible
factor lists:&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
$(250, 50, 5, 316)(2^23^2)$,&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
$(250, 25, 10, 316)(2^23^2)$,&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
 $(125, 50, 10, 316)(2^23^2)$,&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
$(50, 50, 25, 316)(2^23^2)$,&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
with the understanding that the final cost in each of these lists
is fixed and that we introduce no more multiples of 10.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 3.5.2.1.1Consider the two
lists with a cost of 250&lt;/span&gt; .&lt;br&gt;&lt;/br&gt;
Since we cannot have a cost of 500 and a cost of 316 these lists
must reduce to&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
(250, 200, 5, 316)(3^2)\mbox{ and }(250, 25, 40, 316)(3^2)&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
The sum of the factors for the first of these lists of costs is too
large even without the inclusion of the factors of 3. The second of
these lists has factor sum 631 without the inclusion of the factors
of 3; we need to increase this by 80 to give 711. A quick
inspection shows that this is impossible. Therefore the two lists
with a cost of 250 are invalid.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 3.5.2.1.2 Consider the list
of costs with two 50s&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Look at the list of costs with two 50s: $(50, 50, 25,
316)(2^23^2)$. The 2s must combine with the 50s to give either
$(200, 50, 25, 316)(3^2)$ or $(100, 100, 25, 316)(3^2)$. The factor
sums of these lists without including the two factors which
are 3 are 591 and 541 respectively, requiring an increase of
120 and 170 respectively to meet the target $S=711$. These are both
clearly impossible to meet using factors of $(50, 25)$ and $(100,
25)$ respectively. Thus, these two lists are also invalid.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 3.5.2.1.3 Consider the list
with a single 50&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There is one list left to consider for the case of exactly two 10s:
$(125, 50, 10, 316)(2^23^2)$. The factor sum without considering
the additional factors of 2 and 3 is 501; thus we need an
additional contribution to the factor sum of 210. The 125 cannot be
multiplied by 3, as this would increase the sum by 250, which is
too large; neither can it be multiplied by 2, as this would
introduce an additional even number. Thus, the additional 2s and 3s
must be distributed between the 50 and the 10. Inclusion of the
factors which are 3s must lead to an increase of 210. To
obtain an increase of 210 we can multiply the 50 by $n$ and the 10
by $m$ for the cases&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
(n, m) = (1, 22), (2, 17), (3, 12), (4, 7), (5, 2)&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
We are able to create precisely one of these possibilities using
the factors $2^23^2$, namely $(3=3, 12= 2^2\times 3)$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
We have therefore, on the very final possibility for the whole
problem, found a solution: $(125, 50\times 3, 10\times 12, 316)$.
(This was how the solution actually evolved in reality, so it was
something of a surprise when it finally arrived!)&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
In terms of the original problem, this corresponds to the four
costs:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
3.16, 1.50, 1.25, 1.20&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The search was complete and there are, therefore, no other
solutions.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;SOLUTION 2&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
 &lt;span style=&quot;font-style: italic;&quot;&gt;In this solution I first
eliminate as many of the big number possibilities as I can before
moving on to an alternative approach for the smaller numbers. I
made heavy use of a calculator.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Upon first trying this problem I first considered the factors of 5
which can be listed as above like&lt;br&gt;&lt;/br&gt;
$$X=(125, 125, -, -), Y=(125, 25, 5, -), Z=(25, 25, 25, -)$$&lt;br&gt;&lt;/br&gt;
The remaning factors are six factors of 2, two factors of 3
and a factor of 79.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Consider the large factor of 79. This can be multiplied by either
2, 3, 4, 5, 6, or 8 using the available remaining factors.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Therefore, one of the costs, D, say, must be one of the
numbers&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
158, 237, 316, 395, 474, 632&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 1: 632&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
This case is easy to eliminate as a possibility by considering the
possible configurations of 5s.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 2: 474&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
We can also quickly eliminate the case of 474 as follows:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
1. Since $474+250&amp;gt; 711$ case $X$ is impossible&lt;br&gt;&lt;/br&gt;
2. Consider $Y$ and $474 = 79\times 6$. We need to distribute a
factor of 3 and five factors of 2. $711 -125-25-5-474 = 82$. We
clearly can't increase by this amount using only
multiples of $5$, so case $Y$ must also be impossible.&lt;br&gt;&lt;/br&gt;
3. Consider $Z$ and $474$. We find that $711 - 474 - 25-25-25 =
162$.We clearly can't increase by this amount using only
factors of 25, so this case is also impossible.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 3: 395&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
Using similar reasoning as used for 474, we can quickly see that
the case 395 is also impossible.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Case 4: 158, 237 and
316&lt;/span&gt; &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The search space is thus reduced to one of the costs being&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
158, 237, 316&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
We need to take a different approach for these smaller numbers due
to the rapid proliferation of possibilities.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;First case 158&lt;/span&gt;: &lt;br&gt;&lt;/br&gt;
Take the first of these, 158. Our conditions on the sum and product
reduce to new equations&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
A+B+C = 711 -158 = 553 \,, ABC = 711, 000, 000/158 =4,500,000&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
We could suppose that C were fixed at some value and A, B vary. We
would then have two equations in two unknowns&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
A+B = 553 - C\,, AB = 4,500,000/C&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
Eliminating B gives&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
A(553-C-A) = 4,500,000/C&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
Tidying up gives&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
A^2-(553-C)A+4,500,000/C = 0&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
This is a quadratic equation in A, with standard solution&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
A = \frac{(553-C)\pm\sqrt{(553-C)^2-18\times 10^6/C}}{2}&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
Now, for integer solutions we would require that the
part inside the square root (which we can call
$\Delta(C)$) is a perfect square and for any real solution at
all it must be non-negative.&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
\Delta(C) = (553-C)^2-18\times 10^6/C= \frac{C^3-1106C^2 + 305809C
- 18\times 10^6}{C}&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
For positive $C$ the denominator of $\Delta(C)$ is obviously
positive, whereas the numerator, $N(C)$, of $\Delta(C)$ might not
be.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Let us next consider when $N(C)$ is positive.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Note that for large $C$ we have $N(C)&amp;gt; 0$ and for $C=0$ we have
$N(C)&amp;lt; 0$.&lt;br&gt;&lt;/br&gt;
Clearly we must have $C&amp;lt; 711-158 = 553$ and $N(553)&amp;lt; 
0$.Furthermore $N(100)&amp;gt; 0$. Therefore, there is a root of
$N(C)=0$ for $C&amp;gt; 100$ and a root of $N(C)=0$ for $C&amp;lt; 
100$.&lt;br&gt;&lt;/br&gt;
A quick binary search shows that these roots lie in the ranges
$(80,90)$ and $(310, 320)$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Since there is nothing special about the factor $C$, the smallest
possible cost $A, B, C$in the problem must be greater than 80 and
the largest less than 320.Which combinations of powers of factors
$5^63^22^5$ lie in this range? We can make a table of possible
values with $1, 2, 4, 8, 16, 32$ along one side and $3, 5, 9, 15,
25, 45, 75, 125, 225$ along the otherside.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
We soon find that possibilities for $C$ are&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
90, 100, 120, 125, 144, 150, 180, 200, 225, 240, 250, 300&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
A similar argument shows that $A$, $B$ must also
take values in this list. Furthermore, $A$, $B$ and $C$
must add to $711-158 =553$, which is impossible. Therefore $D$ is
not 158. (Instead of applying this logic, you could also just
evaluate $\Delta(C)$ for these 12 cases to see that none gives rise
to whole number solutions.)&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Next case 237&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Note that $711-237 = 474$ and $4\times 711000000/237 =
12,000,000$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
We can easily construct the discriminant of interest:&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
\Delta(C) = (474-C)^2-12,000,000/C= \frac{C^3-948C^2 + 224676C -
12000000}{C}&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
A binary search shows that non-negative solutions lie in the range
$75&amp;lt; C&amp;lt; 275$. This gives a similar list to the previous
case:&lt;br&gt;&lt;/br&gt;
$$80, 90, 100, 120, 125, 144, 150, 180, 200, 225, 240, 250$$&lt;br&gt;&lt;/br&gt;
The sum $A+B+C$ must equal $711-237=474$. We must therefore include
144 in the sum to have a chance of this working, as we must match
the units digit in 474.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
This gives&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
\Delta(144) = \frac{3681600}{144}&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
This is not a perfect square, so there is no solution with the
value $D=237$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Final case 316&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
Note that $711-316= 395$ and $4\times 711000000/316 =
9,000,000$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
We can easily construct the discriminant of interest:&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
\Delta(C) = (395-C)^2-9,000,000/C= \frac{C^3-790C^2 + 156025C -
9000000}{C}&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
The search for non-negative solutions very quickly takes us to
values of $C$ in the range $100&amp;lt; C&amp;lt; 175$. The only
possibilities for $C$ in this range are $120, 125, 144, 150$.
Symmetry arguments imply that each of $A, B$ must also take
these values.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Since $711 - 316 = 395$ we must have $A+B+C=395$, which precludes
the possibility of 144. Thus the only possibility to check is $(A,
B, C) = (120, 125, 150)$. This clearly works, but we can check that
the algebra works if we like. Choose $C=120$, for example. This
gives:&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
\Delta(120) = 625&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
This is a perfect square, yielding&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
A = \frac{(395-120)\pm\sqrt{(395-120)^2-9000000/120}}{2}=
\frac{275\pm 25}{2} = 150, 1 25&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
These are the other two possibilities implied by the algebra.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
Phew!&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;/div&gt;

 &lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</clueXML>
  <canonXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;mdo:tex mode=&quot;&quot;&gt;&lt;![CDATA[
$$
-5&lt; a + c &lt; 5
$$

$$ 10 &lt; a+ b- c - d &lt; 20
$$

$$
0 &lt; a - c &lt; 10
$$
  
 $$
-10 &lt; a - c + d - b &lt; 10
$$
  
  
  ]]&gt;&lt;/mdo:tex&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</canonXML>
  <end_user_role>2</end_user_role>
  <difficulty>5</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>0</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>A long time at the till</title>
  <description>Try to solve this very difficult problem and then study our two suggested solutions. How would you use your knowledge to try to solve variants on the original problem?</description>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Mathematical reasoning &amp; proof</specifier>
  </spec_group>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Working systematically</specifier>
  </spec_group>
  <spec_group>Numbers and the Number System
    <specifier>Properties of numbers</specifier>
  </spec_group>
</resource>