<?xml version="1.0" encoding="ISO-8859-1" ?>
  <resource>
  <id>2656</id>
  <path>/www/nrich/html/content/id/2656/</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;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=1186&amp;amp;part=index&quot;&gt;Last Biscuit&lt;/a&gt;

  is a game for two players. Below, you can play it against an expert - the computer.&lt;br&gt;&lt;/br&gt;

You'll need to come up with a good strategy to stand a chance! &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;

Each player can take biscuits in one of two ways:
&lt;br&gt;&lt;/br&gt;

&lt;ol&gt;&lt;li&gt;By taking any number they like from just one stack or&lt;/li&gt;

&lt;li&gt;By taking the same amount from both stacks.&lt;/li&gt;

&lt;/ol&gt;
&lt;div&gt;The winner is the person who takes the last biscuit/s. Think carefully!&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div&gt;

Look for patterns in your winning moves and use them to find the winning strategy.&lt;/div&gt;
&lt;div&gt;When you've found some

winning moves, explain why they work.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt; Can you describe the winning strategy if the stacks start by containing 100 and 50 biscuits?&lt;br&gt;&lt;/br&gt;

&lt;br&gt;&lt;/br&gt;
&lt;a href=&quot;/content/id/2656/LastBiscuit.swf&quot;&gt;Click for Full Screen Version&lt;/a&gt;
&lt;br&gt;&lt;/br&gt;
&lt;mdo:flash height=&quot;400&quot; width=&quot;550&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;/content/id/2656/LastBiscuit.swf&quot; &gt;&lt;/param&gt;&lt;param name=&quot;flashplayerversion&quot; value=&quot;7&quot; &gt;&lt;/param&gt;&lt;param name=&quot;height&quot; value=&quot;400&quot; &gt;&lt;/param&gt;&lt;param name=&quot;width&quot; value=&quot;550&quot; &gt;&lt;/param&gt;&lt;/mdo:flash&gt;
&lt;a href=&quot;http://www.nrich.maths.org/public/viewer.php?obj_id=1186&amp;amp;part=index&amp;amp;refpage=titlesearch.php&quot;&gt;&lt;/a&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;

&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML>&lt;mdoxml version=&quot;1.0&quot;&gt;
&lt;br&gt;&lt;/br&gt;
&lt;p&gt;&lt;span class=&quot;editorial&quot;&gt;We received the most complete solution from Neil Poole&lt;/span&gt; :&lt;/p&gt;
&lt;p&gt;Stuff I&amp;#39;ve worked out:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
At the end of your turn, you must not leave:&lt;br&gt;&lt;/br&gt;
1a) either 1, 2, 3, 4 or 5 biscuits in either stack&lt;br&gt;&lt;/br&gt;
1b) 6 in one stack if there is 11 or more in the other&lt;br&gt;&lt;/br&gt;
1c) 7 in one stack if there is 5 or more in the other&lt;br&gt;&lt;/br&gt;
1d) 8 in one stack if there is 14 or more in the other&lt;br&gt;&lt;/br&gt;
1e) 10 in one stack if there is 7 or more in the other&lt;br&gt;&lt;/br&gt;
1f) 13 in one stack if there is 9 or more in the other&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
2) stacks with consecutive numbers of biscuits (eg. 4 in one and 5 in the other) OR stacks with the same number of biccies in each&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
3a) stacks with 2 difference from 4 in one, 6 in the other upwards.&lt;br&gt;&lt;/br&gt;
3b) stacks with 3 difference from 5 in one, 8 in the other upwards.&lt;br&gt;&lt;/br&gt;
3c) stacks with 4 difference from 7 in one, 11 in the other upwards&lt;br&gt;&lt;/br&gt;
3d) stacks with 5 difference from 9 in one, 14 in the other upwards&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
All the above are true except if you leave &amp;quot;winning combos&amp;quot; (see below).&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Winning combos (if you make them):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;4) 1 in one stack, 2 in the other&lt;br&gt;&lt;/br&gt;
5) 3 in one stack, 5 in the other (then opponent must leave either 1), 2) or 3))&lt;br&gt;&lt;/br&gt;
6) 4 in one stack, 7 in the other&lt;br&gt;&lt;/br&gt;
7) 6 in one stack, 10 in the other&lt;br&gt;&lt;/br&gt;
8) 8 in one stack, 13 in the other&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If the opponent does 1), 2) or 3) then you will be able to make 4), 5), 6), 7) or 8).&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Keep doing winning combinations until you can take the last biccy(-ies)!!!!!!!&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Other winning combos include 9 &amp;amp; 15, 11 &amp;amp; 18, 12 &amp;amp; 20, etc.&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;There are an infinite amount of winning combinations&lt;/span&gt;.&lt;/p&gt;
&lt;div&gt;To find one, find the lowest whole positive number that hasn&amp;#39;t been used yet (that is one of the numbers of the winning combo) and add it to the lowest positive whole difference between the two nos in the combos not yet used to find the other number in the combo.&lt;/div&gt;
&lt;div&gt;For example: The lowest integer not yet used in any of our combos is 14, as 13 has been used in 8 &amp;amp; 13, 12 has been used in 12 &amp;amp; 20, etc.&lt;/div&gt;
&lt;div&gt;The difference between 11 &amp;amp; 18 is 7.&lt;/div&gt;
&lt;div&gt;The difference between 12 &amp;amp; 20 is 8.&lt;/div&gt;
&lt;div&gt;9 isn&amp;#39;t the difference in any of our combos so far so we add 9 to 14 to get 23.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;p&gt;So our new winning combo is 14 &amp;amp; 23.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Combos with the same difference as lower winning combos are &amp;quot;losing combos&amp;quot;.&lt;br&gt;&lt;/br&gt;
Any number in a winning combo with a number higher than its pair (eg. 14 &amp;amp; 27 coz 27 is higher than 23) is a losing combo.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There&amp;#39;s probably an easier way to work all that out!!!!!!!!!&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;More findings out:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I think it&amp;#39;s only ever possible to make one winning combo (if you can).&lt;br&gt;&lt;/br&gt;
I think that if you start, and the starting amount of biccies isn&amp;#39;t a winning combo, then you will be able to make a winning combo.&lt;br&gt;&lt;/br&gt;
If the starting amount of biccies is a winning combo and you start, against the &amp;quot;expert computer&amp;quot; you&amp;#39;ve lost.&lt;br&gt;&lt;/br&gt;
If the expert computer starts, and the starting combo is a winning combo, you&amp;#39;ve won (if you&amp;#39;re good enough).&lt;br&gt;&lt;/br&gt;
If the expert computer starts, and the starting combo isn&amp;#39;t a winning combo, you&amp;#39;ve lost.&lt;br&gt;&lt;/br&gt;
If the computer hasn&amp;#39;t just, and it isn&amp;#39;t the first go of the game, you can always make a winning combo, and vice-versa.&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;
&lt;p class=&quot;editorial&quot;&gt;This is great Neil. Many thanks for such a full solution.&lt;/p&gt;
&lt;p class=&quot;editorial&quot;&gt;Mike from the NRICH team has also been working on this problem and has added:&lt;/p&gt;
&lt;p&gt;I&amp;#39;m now convinced there&amp;#39;s some interesting maths in this.&lt;br&gt;&lt;/br&gt;
It looked like w1(i) and w2(i) [the biscuits lefts in the ith winning position] were approximately linearly related to i, so I charted them in Excel and read off the regression line:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Using a few 10s of results this gave:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
w1(i) is approximately 2.618i - 0.5026&lt;br&gt;&lt;/br&gt;
w2(i) is approximately 1.618i - 0.5026&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Interesting, since 1.618 is very close to the golden ratio phi, and 2.618 is (phi+1) or phi^2.&lt;br&gt;&lt;/br&gt;
That -0.5026 looks like it&amp;#39;s caused by rounding down to an integer value.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
So, with phi = (\sqrt(5)+1)/2, I tried for 0 &amp;lt; = i &amp;lt; = 10000:&lt;br&gt;&lt;/br&gt;
w1(i) = floor(phi*i)&lt;br&gt;&lt;/br&gt;
w2(i) = floor((phi+1)*i)&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Perfect match on all pairs!&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If phi is involved there must be some Fibonacci sequences around.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
In fact there are lots of them. The winning pairs are the even pairs of consecutive numbers in a union of Fibonacci sequences.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If F(1,2) is the Fibonacci sequence that starts 1,2,3,5,8...&lt;br&gt;&lt;/br&gt;
and F(1,3) starts 1,3,4,7,11,....&lt;br&gt;&lt;/br&gt;
you can use F(1,3) to fill in the gaps left by F(1,2).&lt;br&gt;&lt;/br&gt;
F(2,4) fills in the gaps left by the previous 2, and so on.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
This all makes a certain amount of sense since the ratio of successive Fibonacci numbers is phi - and that was the gradient of the regression line. It&amp;#39;s still all just conjecture though - I haven&amp;#39;t been able to prove any of it so far.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Assuming it&amp;#39;s all true, it&amp;#39;s possible to write a slick algorithm that works for very large numbers of biscuits - essentially by using the inverse linear relationship to find the nearest winning pairs that can be reached from any position.&lt;br&gt;&lt;/br&gt;
Unfortunately, the calculation is still a bit much to do in one&amp;#39;s head - but it avoids the need to tabulate all pairs up to the one that works. I tried that and so far as I can tell it works fine.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
See &lt;a href=&quot;http://www.mcs.surrey.ac.uk/Personal/R.Knott/Fibonacci/fibrab.html#PhiPlot&quot;&gt;http://www.mcs.surrey.ac.uk/Personal/R.Knott/Fibonacci/fibrab.html#PhiPlot&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
This page is all relevant to the winning pairs in Last Biscuit. It&amp;#39;s talking about the same function I needed to calculate them - floor(i*phi) - defining this as the spectrum of phi.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There&amp;#39;s an interesting section on how the spectra of 2 numbers A and B can partition the integers into 2 sets iff 1/A + 1/B = 1.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The smaller and larger numbers of the winning pairs form such a partition with A = phi and B = phi^2.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
1/phi + 1/phi^2 = 1 since phi + 1 = phi^2.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;a href=&quot;http://www.numericana.com/answer/games.htm&quot;&gt;http://www.numericana.com/answer/games.htm&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
goes into some detail linking this version, other nim like games and the grundy numbers.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
After that background, the following paper might be more understandable &lt;a href=&quot;http://www.math.temple.edu/%7Exysun/wythoff/wythoff_2.pdf%20&quot;&gt;http://www.math.temple.edu/~xysun/wythoff/wythoff_2.pdf&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
I think it contains a proof that last biscuit winning pairs are a wythoff sequence - but it ain&amp;#39;t easy!&lt;/p&gt;

&lt;/mdoxml&gt;</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;
Strategy games are always good for developing mathematical
thinking. This game is interesting because although the 'overall'
strategy is difficult, students can usefully analyse particular
cases. This will require clear recording of results and careful
analysis of the logical possibilities. They will then be able to
put their strategy into action by beating the computer, which never
makes a mistake in its moves, although this will still require
clear application of the procedure of the strategy. &lt;br&gt;&lt;/br&gt;

&lt;h3&gt;Possible approach&lt;/h3&gt;
&lt;div&gt;This game is difficult and most students will need to play it
(and lose!) several times to start to get a feel for how to win.
Note there there is no 'obvious overall strategy', so students
should play the game for a while and then come back together to
share ideas. Suggest that students consider the cases for low
numbers of biscuits first (less than 10 of each type).&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;It might become apparent that certain configurations are known
to be a 'win' for person to play next. When one of these
configurations is found it could be shared with the group.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;Using known winning configurations might allow students to
develop winning configurations for larger numbers of
biscuits.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;Throughout, clarity of thinking, analysis of the game position
and clear recording of results should be encouraged.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;Once several winning positions have been found, can any
patterns be found? Could students make any conjectures as to the
form of winning configurations?&lt;/div&gt;
&lt;h3&gt;Key questions&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;What is the smallest 'certain lose' position?&lt;/li&gt;
&lt;li&gt;How could we prevent the computer from putting us into this
position?&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Possible extension&lt;/h3&gt;
&lt;div&gt;This structure allows a rich analysis which very able students
might enjoy. Various questions of proof are as follows:&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Can you prove that (1, 2) is the only winning configuration
with a difference of 1 in the total number of biscuits?&lt;/li&gt;
&lt;li&gt;How many winning configurations differ by 2, 3 or n
biscuits?&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;You might also like to play &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=402&amp;amp;part=&quot;&gt;Nim&lt;/a&gt;
, which is a version of this game with multiple counters.&lt;/div&gt;
&lt;h3&gt;Possible support&lt;/h3&gt;
&lt;div&gt;Focus to start with on numbers of biscuits less than 5 of each
type. Can a strategy be devised to win for these individual
cases?&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;Students could play in pairs if the computer is winning too
often. They could also play with counters instead of the
interactivity.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</noteXML>
  <clueXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
Try working backwards.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Fibonacci sequences might help.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Play &lt;a href=&quot;http://www.nrich.maths.org/public/viewer.php?obj_id=1269&amp;amp;part=index&amp;amp;refpage=monthindex.php&quot;&gt;
GOT IT&lt;/a&gt; and try to find a strategy for winning at this
game.&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;/mdoxml&gt;</clueXML>
  <canonXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
Description&lt;br&gt;&lt;/br&gt;
Last Biscuit is a game that challenges you to use a systematic
approach to deduce a winning strategy. Can you find a strategy that
will beat the computer?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Solution:&lt;br&gt;&lt;/br&gt;
You can beat your opponent if you leave the following number of
biscuits: 1, 2 3, 5 4, 7 6, 10 8, 13 9, 15 11, 18 12, 20 14, 23 16,
26 17, 28 19, 31 21, 34 22, 36 24, 39 25, 41 27, 44 29, 47 30, 49
32, 52 33, 54 35, 57 37, 60 38, 62 40, 65 42, 68 43, 70 45, 73 46,
75 48, 78 50, 81 &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
I'm now convinced there's some interesting maths in this. It looked
like w1(i) and w2(i) [the biscuits lefts in the ith winning
position] were approximately linearly related to i, so I charted
them in Excel and read off the regression line: Using a few 10s of
results this gave: w1(i) is approximately 2.618i - 0.5026 w2(i) is
approximately 1.618i - 0.5026 Interesting, since 1.618 is very
close to the golden ratio phi, and 2.618 is (phi+1) or phi^2. That
-0.5026 looks like it's caused by rounding down to an integer
value. So, with phi = (\sqrt(5)+1)/2, I tried for 0 &amp;lt; = i &amp;lt; =
10000: w1(i) = floor(phi*i) w2(i) = floor((phi+1)*i) Perfect match
on all pairs! If phi is involved there must be some Fibonacci
sequences around. In fact there are lots of them. The winning pairs
are the even pairs of consecutive numbers in a union of Fibonacci
sequences. If F(1,2) is the Fibonacci sequence that starts
1,2,3,5,8... and F(1,3) starts 1,3,4,7,11,.... you can use F(1,3)
to fill in the gaps left by F(1,2). F(2,4) fills in the gaps left
by the previous 2, and so on. This all makes a certain amount of
sense since the ratio of successive Fibonacci numbers is phi - and
that was the gradient of the regression line. It's still all just
conjecture though - I haven't been able to prove any of it so far.
Assuming it's all true, it's possible to write a slick algorithm
that works for very large numbers of biscuits - essentially by
using the inverse linear relationship to find the nearest winning
pairs that can be reached from any position. Unfortunately, the
calculation is still a bit much to do in one's head - but it avoids
the need to tabulate all pairs up to the one that works. I tried
that and so far as I can tell it works fine. An Excel spreadsheet
so you can see what I mean is saved in common &amp;gt; site content.
See
http://www.mcs.surrey.ac.uk/Personal/R.Knott/Fibonacci/fibrab.html#PhiPlot
This page is all relevant to the winning pairs in Last Biscuit.
It's talking about the same function I needed to calculate them -
floor(i*phi) - defining this as the spectrum of phi. There's an
interesting section on how the spectra of 2 numbers A and B can
partition the integers into 2 sets iff 1/A + 1/B = 1. The smaller
and larger numbers of the winning pairs form such a partition with
A = phi and B = phi^2. 1/phi + 1/phi^2 = 1 since phi + 1 = phi^2.
http://home.att.net/~numericana/answer/games.htm goes into some
detail linking this version other nim like games and the grundy
numbers. After that background, the following paper might be more
understandable
http://www.math.temple.edu/~xysun/wythoff/wythoff_2.pdf I think it
contains a proof that last biscuit winning pairs are a wythoff
sequence - but it ain't easy! &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
You can beat your opponent if you leave the following number of
biscuits: &lt;br&gt;&lt;/br&gt;
1, 2 &lt;br&gt;&lt;/br&gt;
3, 5 &lt;br&gt;&lt;/br&gt;
4, 7 &lt;br&gt;&lt;/br&gt;
6, 10 &lt;br&gt;&lt;/br&gt;
8, 13 &lt;br&gt;&lt;/br&gt;
9, 15 &lt;br&gt;&lt;/br&gt;
11, 18 &lt;br&gt;&lt;/br&gt;
12, 20 &lt;br&gt;&lt;/br&gt;
14, 23 &lt;br&gt;&lt;/br&gt;
16, 26 &lt;br&gt;&lt;/br&gt;
17, 28 &lt;br&gt;&lt;/br&gt;
19, 31 &lt;br&gt;&lt;/br&gt;
21, 34 &lt;br&gt;&lt;/br&gt;
22, 36 &lt;br&gt;&lt;/br&gt;
24, 39 &lt;br&gt;&lt;/br&gt;
25, 41 &lt;br&gt;&lt;/br&gt;
27, 44 &lt;br&gt;&lt;/br&gt;
29, 47 &lt;br&gt;&lt;/br&gt;
30, 49 &lt;br&gt;&lt;/br&gt;
32, 52 &lt;br&gt;&lt;/br&gt;
33, 54 &lt;br&gt;&lt;/br&gt;
35, 57 &lt;br&gt;&lt;/br&gt;
37, 60 &lt;br&gt;&lt;/br&gt;
38, 62 &lt;br&gt;&lt;/br&gt;
40, 65 &lt;br&gt;&lt;/br&gt;
42, 68 &lt;br&gt;&lt;/br&gt;
43, 70 &lt;br&gt;&lt;/br&gt;
45, 73 &lt;br&gt;&lt;/br&gt;
46, 75&lt;br&gt;&lt;/br&gt;
48, 78 &lt;br&gt;&lt;/br&gt;
50, 81&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
A strategy to find winning moves is to note that $(0,0)$ is a
winning pair and then find the complete set of winning pairs by
induction. If $(A_n,B_n),A_n \leq B_n$ is the last move discovered,
then $A_{n+1}$ is the minimum positive integer that does not appear
in a winning pair yet, and $B_{n+1} = A_{n+1} + 1 + (B_n - A_n)$.
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
$(A_{n+1},B_{n+1})$ must be a new winning move because it is
impossible to generate a lower winning move from it in one turn.
Neither $A_{n+1}$ nor $B_{n+1}$ appear in a lower pair,so taking
from a single stack fails. Also, no lower winning pair has a
difference of $A_{n+1}-B_{n+1}$,so taking from both stacks will
fail. &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Plotting $A_{n}$ against $n$ and $B_{n}$ against $n$ reveals near
linear relationships, which turn out to be represented exactly by
the equations:- \begin{eqnarray} A_n&amp;amp;=&amp;amp;
\mbox{floor}(n\phi)\\ B_n &amp;amp;=&amp;amp; \mbox{floor}(n\phi^2)
\end{eqnarray} where the &lt;span style=&quot;font-style: italic;&quot;&gt;floor&lt;/span&gt; function rounds values to the
next lowest integer, and $\phi$ is the golden section. A good way
to discover these relationships is to plot them in Excel and infer
them from the regression line equations. For a proof, see &lt;a href=&quot;http://www.math.temple.edu/~xysun/wythoff/wythoff_2.pdf&quot;&gt;ref [10]
in this paper by Xinyu Sun&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Even when you know the winning pairs, it is not trivial to
calculate the next best move from a given starting position, since
the above formulae must be inverted (the floor function complicates
matters) and applied with some care. &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The winning move from a (500,1000) start will take you to (500,
309). &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;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;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;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>1</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>0</keystage4plus>
  <title>Got a strategy for Last Biscuit?</title>
  <description>Can you beat the computer in the challenging strategy game?</description>
  <spec_group>Sequences, Functions and Graphs
    <specifier>Fibonacci sequence</specifier>
  </spec_group>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Games</specifier>
  </spec_group>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Trial and improvement</specifier>
  </spec_group>
  <spec_group>Information and Communications Technology
    <specifier>Interactivities</specifier>
  </spec_group>
</resource>