<?xml version="1.0" encoding="ISO-8859-1" ?>
  <resource>
  <id>450</id>
  <path>/www/nrich/html/content/03/01/15plus1/</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;
A 'modular knight' moves on circular chess board made from
concentric circles divided into sectors.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
As a default, the board is split into 5 sectors with 2 concentric
tracks and the knight can move 3 steps forward (in any direction)
followed by 1 step to the side (in either direction), as shown in
the interactivity below. The middle and edge of the board are
joined so that when the knight moves over the outside edge of the
circular board it re-enters in the same sector on the inside of the
track (and vice versa).&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Start the interactivity below by clicking on the +. The brown
squares represent the squares the knight has visited and the peach
squares the possible destinations on the next move.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
To begin with, understand why all of the peach squares are
possibilities.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Then, can you make the knight visit every square once and only once
and return to its starting point?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
 &lt;mdo:flash height=&quot;362&quot; width=&quot;650&quot;&gt;&lt;param value=&quot;/content/03/01/15plus1/dynamic_chess_board_V4.swf&quot; name=&quot;movie&quot; &gt;&lt;/param&gt;&lt;param value=&quot;6&quot; name=&quot;flashplayerversion&quot; &gt;&lt;/param&gt;&lt;/mdo:flash&gt;&lt;br&gt;&lt;/br&gt;
 

&lt;p&gt;Suppose there are p sectors and q concentric tracks and a
knight's move is a steps in one direction and b steps in the other
direction. Find conditions on the numbers p, q, a and b under which
it is possible for the knight to visit every square and return to
its starting point.&lt;/p&gt;

&lt;p&gt;Note that on the interactivity you can change the size of the
track, the direction and number of steps the knight can move
forward, and the number of steps it can move to the side.&lt;/p&gt;

&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML>&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;span class=&quot;editorial&quot;&gt;This problem was a toughnut for a while
before we received solutions from several students.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt; &lt;/span&gt; &lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Max Whittaker from Culford School, Jose,
Carlos , Dan and Sam from Ickford Combined School, Issy and Audrey,
also from Ickford combined school, all sent in their methods of
solution in certain cases. This involved starting in a certain
place and moving around the board systematically.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Alex from Darell Primary School
gave an explicit solution:&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
First you need to have these settings:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
knight moves round: 2 in/out:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
1 board sectors: 3 tracks: 3&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Here is what you should do in the exact order, there may be other
ways, but here is what I did.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Bottom/middle right&lt;br&gt;&lt;/br&gt;
Inner left&lt;br&gt;&lt;/br&gt;
Top right&lt;br&gt;&lt;/br&gt;
Inner bottom right&lt;br&gt;&lt;/br&gt;
Far left&lt;br&gt;&lt;/br&gt;
Bottom right&lt;br&gt;&lt;/br&gt;
Then finally, Far/middle left&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Ben from Kenny School gave a great
description of his mathematical thinking about this analysis of
this problem which we like very much: it really highlights the
creative side of mathematical problem solving.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Ben uses the notion of coprime numbers (two
whole numbers which share no common factor except 1) to make some
inroad into the analysis of the proble&lt;/span&gt;m .&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Ben cleverly represented the board as a
rectangle with opposite sides identified, which makes visualising,
and therefore analysing, the situation much easier.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;If the grid is $p$ by $q$ and the knight
can move $a$ across and $b$ down then Ben suggests that the journey
is possible if at least 2 of the following conditions are
true&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;ol&gt;
&lt;li&gt;$a (\mbox{ mod } p)$ is coprime to $p$&lt;/li&gt;

&lt;li&gt;$b (\mbox{ mod } q)$ is coprime to $q$&lt;/li&gt;

&lt;li&gt;$b (\mbox{ mod } p)$ is coprime to $p$&lt;/li&gt;

&lt;li&gt;$a (\mbox{ mod } q)$ is coprime to $q$&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&quot;editorial&quot;&gt;You can &lt;a href=&quot;/content/03/01/15plus1/Ben%20solution.pdf&quot;&gt;read Ben's
analysis&lt;/a&gt; here.&lt;/div&gt;

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

&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;This is a great start, but not quite the
whole story as some grids with coprime values are not coverable,
although many are.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
 &lt;mdo:image height=&quot;221&quot; width=&quot;597&quot; alt=&quot;&quot; src=&quot;solutionsSteve.png&quot;&gt;&lt;/mdo:image&gt;&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt; To make a little more progress,
imagine that the grid has $p$ rows and $q$ columns, with $p, q$
coprime and $q&amp;gt; p$. Suppose also that the knight moves $a$
across and $b$ down each time, where $a$ is coprime to $p$ and $b$
coprime to $q$. Then each of the first $q$ squares will land
on a different column of the grid ; therefore the knight will not
have revisited any squares yet, although it will have revisited
$q-p$ rows. If $q-p$ is coprime to $p$ then this procedure will
fill the whole grid. If not, then the knight will need to change
direction at some point to have a chance of filling the grid
without hitting another square more than one. &lt;/span&gt; &lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
To proceed note that if the knight always moves in the same
direction it positions will be of the form $(na \mbox{ mod p} , nb
\mbox{ mod q}) $.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
For a location to be repeated, for some $n$ and $m$ we would
have &lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
(na \mbox{ mod p} , nb \mbox{ mod q}) =(ma \mbox{ mod p} , mb
\mbox{ mod q})&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
For this to hold we would have&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
((n-m)a \mbox{ mod p} , (n-m)b \mbox{ mod q}) =(0,  0)&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
Since $a$ and $b$ are coprime to $p$ and $q$ respectively this
implies that&lt;br&gt;&lt;/br&gt;
$(n-m) = Np$ and $(n-m)= Mq$ for some non-zero integers $N$ and
$M$. Since $p$ and $q$ were chosen to be coprime and different we
must have $N = Rq$ and $M=Rp$ for some other non-zero integer $R$.
Thus $(n-m)$ is a non-zero multiple of $pq$. Since there are only
$pq$ squares in the grid we see that the knight cannot have
revisited any squares.&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;</solutionXML>
  <noteXML/>
  <clueXML>&lt;mdoxml version=&quot;1.0&quot;&gt;Keep a record of the set-ups when it is impossible for the knight
to visit every square (that is the four numbers: of sectors, of
tracks and of moves the knight makes in the two directions). What
can you say about these set-ups? &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Consider common factors of pairs of these numbers. It may help to
consider first the result for one track with p sectors and a
knight's move of a steps forward and zero steps to the side for
different values of p and a. What joint property of p and a
determines whether or not the knight can visit every square? &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Try the standard knights move of two steps one way and one step the
other way on different boards and see if the knight can visit every
square. &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Now what happens if the knight moves two steps in each direction?
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
A convenient notation is to let (x,y) =&amp;gt; (x+s, y+t) denote a
move of s steps clockwise and t steps outwards. As there are p
sectors around the circuit the knight returns to the same sector
after p steps clockwise which calls for taking x and x+s modulo p.
Similarly as there are q tracks which the knight moves round
cyclically, and the knight returns to the same track after taking q
steps outwards, so take y and y+t modulo q.&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;
&lt;span class=&quot;editorial&quot;&gt;This problem was a toughnut for a while
before we received solutions from several students.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt; &lt;/span&gt; &lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Max Whittaker from Culford School, Jose,
Carlos , Dan and Sam from Ickford Combined School, Issy and Audrey,
also from Ickford combined school, all sent in their methods of
solution in certain cases. This involved starting in a certain
place and moving around the board systematically.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Alex from Darell Primary School
gave an explicit solution:&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
First you need to have these settings:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
knight moves round: 2 in/out:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
1 board sectors: 3 tracks: 3&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Here is what you should do in the exact order, there may be other
ways, but here is what I did.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Bottom/middle right&lt;br&gt;&lt;/br&gt;
Inner left&lt;br&gt;&lt;/br&gt;
Top right&lt;br&gt;&lt;/br&gt;
Inner bottom right&lt;br&gt;&lt;/br&gt;
Far left&lt;br&gt;&lt;/br&gt;
Bottom right&lt;br&gt;&lt;/br&gt;
Then finally, Far/middle left&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Ben from Kenny School gave a great
description of his mathematical thinking about this analysis of
this problem which we like very much: it really highlights the
creative side of mathematical problem solving.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Ben uses the notion of coprime numbers (two
whole numbers which share no common factor except 1) to make some
inroad into the analysis of the proble&lt;/span&gt;m .&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Ben cleverly represented the board as a
rectangle with opposite sides identified, which makes visualising,
and therefore analysing, the situation much easier.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;If the grid is $p$ by $q$ and the knight
can move $a$ across and $b$ down then Ben suggests that the journey
is possible if at least 2 of the following conditions are
true&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;ol&gt;
&lt;li&gt;$a (\mbox{ mod } p)$ is coprime to $p$&lt;/li&gt;

&lt;li&gt;$b (\mbox{ mod } q)$ is coprime to $q$&lt;/li&gt;

&lt;li&gt;$b (\mbox{ mod } p)$ is coprime to $p$&lt;/li&gt;

&lt;li&gt;$a (\mbox{ mod } q)$ is coprime to $q$&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&quot;editorial&quot;&gt;You can &lt;a href=&quot;/content/03/01/15plus1/Ben%20solution.pdf&quot;&gt;read Ben's
analysis&lt;/a&gt; here.&lt;/div&gt;

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

&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;This is a great start, but not quite the
whole story as some grids with coprime values are not coverable,
although many are.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
 &lt;mdo:image height=&quot;221&quot; width=&quot;597&quot; alt=&quot;&quot; src=&quot;solutionsSteve.png&quot;&gt;&lt;/mdo:image&gt;&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt; To make a little more progress,
imagine that the grid has $p$ rows and $q$ columns, with $p, q$
coprime and $q&amp;gt; p$. Suppose also that the knight moves $a$
across and $b$ down each time, where $a$ is coprime to $p$ and $b$
coprime to $q$. Then each of the first $q$ squares will land
on a different column of the grid ; therefore the knight will not
have revisited any squares yet, although it will have revisited
$q-p$ rows. If $q-p$ is coprime to $p$ then this procedure will
fill the whole grid. If not, then the knight will need to change
direction at some point to have a chance of filling the grid
without hitting another square more than one. &lt;/span&gt; &lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
To proceed note that if the knight always moves in the same
direction it positions will be of the form $(na \mbox{ mod p} , nb
\mbox{ mod q}) $.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
For a location to be repeated, for some $n$ and $m$ we would
have &lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
(na \mbox{ mod p} , nb \mbox{ mod q}) =(ma \mbox{ mod p} , mb
\mbox{ mod q})&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
For this to hold we would have&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
((n-m)a \mbox{ mod p} , (n-m)b \mbox{ mod q}) =(0,  0)&lt;br&gt;&lt;/br&gt;
$$&lt;br&gt;&lt;/br&gt;
Since $a$ and $b$ are coprime to $p$ and $q$ respectively this
implies that&lt;br&gt;&lt;/br&gt;
$(n-m) = Np$ and $(n-m)= Mq$ for some non-zero integers $N$ and
$M$. Since $p$ and $q$ were chosen to be coprime and different we
must have $N = Rq$ and $M=Rp$ for some other non-zero integer $R$.
Thus $(n-m)$ is a non-zero multiple of $pq$. Since there are only
$pq$ squares in the grid we see that the knight cannot have
revisited any squares.&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>0</keystage3>
  <keystage4>0</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>Modular Knights</title>
  <description>Try to move the knight to visit each square once and return to the
starting point. Move either 2 steps one way and one perpendicular
(as in chess) or generalise to a steps one way and b the other.</description>
  <spec_group>Numbers and the Number System
    <specifier>Modulus arithmetic</specifier>
  </spec_group>
  <spec_group>Decision Mathematics and Combinatorics
    <specifier>Combinatorics</specifier>
  </spec_group>
  <spec_group>Numbers and the Number System
    <specifier>Factors and multiples</specifier>
  </spec_group>
  <spec_group>Information and Communications Technology
    <specifier>Interactivities</specifier>
  </spec_group>
</resource>