<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>737</id>
  <path>/www/nrich/html/content/00/10/six6/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2012-11-12T15:47:57</last_published>
  <indexXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;Take a look at the video below:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;video controls=&quot;controls&quot; height=&quot;300&quot; src=&quot;beelines.mp4&quot; tabindex=&quot;0&quot; width=&quot;400&quot;&gt;&lt;br&gt;&lt;/br&gt;&lt;/video&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;em&gt;If you can&amp;#39;t see the video, click below for a description.&lt;/em&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div class=&quot;toggle&quot;&gt;&lt;br&gt;&lt;/br&gt;
If I choose the point (5,5) and draw a line segment joining the point to the origin, my line passes through 5 grid squares.&lt;br&gt;&lt;/br&gt;
If I choose the point (4,3) and draw a line segment joining the point to the origin, my line passes through 6 grid squares.&lt;br&gt;&lt;/br&gt;
If I choose the point (6,4) and draw a line segment joining the point to the origin, my line passes through 8 grid squares.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If you know the coordinates of the point at the end of the line, are you able to predict how many squares the line will pass through?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If I drew the line joining the origin to the point (50,37) how many grid squares will it pass through? How can you be sure without drawing it?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If I drew the line joining the origin to the point (96,72) how many grid squares will it pass through? How can you be sure without drawing it?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Can you work out how many grid squares a line passes through, if you are given the coordinates of the two endpoints?&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;em&gt;You could also investigate the number of grid lines crossed...&lt;/em&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div class=&quot;framework&quot;&gt;&lt;strong&gt;Notes and Background&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Working out which grid squares a straight line crosses allows you to create algorithms for drawing straight lines on a computer, where each pixel is a grid square. Read more about line drawing algorithms &lt;a href=&quot;http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm&quot;&gt;here&lt;/a&gt;.&lt;/div&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;No one sent us a complete solution to this
problem, but here is the start of a solution which shows some good
mathematical thinking and a systematic way of working.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
We decided to investigate what happens if you keep the $x$
coordinate the same and change the $y$ coordinate. Here is our
table to show the number of squares and gridlines crossed when the
$x$ coordinate is $5$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;mdo:image height=&quot;193&quot; width=&quot;385&quot; alt=&quot;&quot; src=&quot;beelines.png&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
We noticed a pattern for the number of squares crossed, which works
for every $y$ coordinate we tried except $5$. If you add together
the $x$ and $y$ coordinates and take away 1, you get the number of
squares crossed. This is because for example to get from (0,0) to
(5,3) you go along 5 squares and up 3 squares, meaning that you
travel through 8 squares altogether, but that counts the corner
square twice so you need to take away 1.&lt;br&gt;&lt;/br&gt;
It doesn't work for (5,5) because you go diagonally through the
corners of the squares instead of cutting through the edges.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Can anybody build on this thinking and
explain the patterns found?&lt;/span&gt;&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</solutionXML>
  <noteXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&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;&lt;br&gt;&lt;/br&gt;
Working on this problem will give students an opportunity to make and justify conjectures that link numerical and geometrical ideas. It offers students valuable experience of working on coordinate geometry and will develop their understanding of factors and multiples.&lt;br&gt;&lt;/br&gt;
 &lt;/div&gt;
&lt;h3&gt;Possible approach&lt;/h3&gt;
&lt;br&gt;&lt;/br&gt;
Show the video below, or introduce the problem in the same way. You could use this &lt;a href=&quot;https://nrich.maths.org/737?part=clue&quot;&gt;Geogebra applet&lt;/a&gt; or download this &lt;a href=&quot;/content/00/10/six6/beelines.ggb&quot;&gt;Geogebra file&lt;/a&gt;.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;video controls=&quot;controls&quot; height=&quot;300&quot; src=&quot;beelines.mp4&quot; tabindex=&quot;0&quot; width=&quot;400&quot;&gt;&lt;br&gt;&lt;/br&gt;&lt;/video&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&quot;In a while I&amp;#39;m going to give you the coordinates of the point at the end of a line, and challenge you to tell me how many squares the line will pass through.&quot;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Students could work in pairs, choosing coordinates and keeping a record of their results.&lt;br&gt;&lt;/br&gt;
Once students have a selection of results, invite them to look for patterns.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If they find it hard to spot any relationships, here are some prompts:&lt;br&gt;&lt;/br&gt;
&quot;Group together all your results where the x and y coordinate are the same. What do you notice? Will it always happen?&quot;&lt;br&gt;&lt;/br&gt;
&quot;What about results where the x coordinate is twice the y coordinate? Or three times?&quot;&lt;br&gt;&lt;/br&gt;
&quot;What about results when the two coordinates have no factors in common?&quot;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
To finish off, choose some pairs of coordinates and challenge students to work out quickly how many squares the line will pass through. This is a very good activity for students to display their answers on mini-whiteboards.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Finally, take some time to discuss the geometrical reasons why a straight line joining the origin to a point with coprime coordinates will not go through any grid squares, and the reason why we are able to calculate the number of squares the lines will go through without needing to draw and count.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;h3&gt;Possible extension&lt;/h3&gt;
&lt;br&gt;&lt;/br&gt;
This &lt;a href=&quot;http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm&quot;&gt;Wikipedia article&lt;/a&gt; about line-drawing algorithms may be of interest to students who are keen on computer programming.&lt;br&gt;&lt;/br&gt;
You could challenge students to find a way to work out whether a given line passes through a given square on the grid (without drawing!).&lt;br&gt;&lt;/br&gt;
&lt;h3&gt;Possible support&lt;/h3&gt;
&lt;br&gt;&lt;/br&gt;
&lt;a href=&quot;http://nrich.maths.org/2292&quot;&gt;Coordinate Patterns&lt;/a&gt; might provide a suitable preliminary activity.&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</noteXML>
  <clueXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
Start by drawing some lines and recording how many squares they cross.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
What do you notice about the coordinates of lines that pass through the corners of grid squares?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;em&gt;You may wish to experiment with the GeoGebra applet below. Be patient as it may take some time to load.&lt;br&gt;&lt;/br&gt;
Alternatively, you can install &lt;a href=&quot;http://www.geogebra.org&quot;&gt;GeoGebra&lt;/a&gt; on your computer and download and run the &lt;a href=&quot;/content/00/10/six6/beelines.ggb&quot;&gt;GeoGebra file&lt;/a&gt;&lt;/em&gt; &lt;em&gt;yourself.&lt;/em&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;mdo:applet archive=&quot;http://jars.geogebra.org/webstart/4.0/geogebra.jar&quot; code=&quot;geogebra.GeoGebraApplet&quot; codebase=&quot;/content/00/10/six6/&quot; datafile=&quot;&quot; height=&quot;500&quot; title=&quot;Java(TM)&quot; width=&quot;550&quot;&gt;&lt;param name=&quot;filename&quot; value=&quot;http://nrich.maths.org/content/00/10/six6/beelines.ggb&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;framePossible&quot; value=&quot;true&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;showResetIcon&quot; value=&quot;true&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;enableRightClick&quot; value=&quot;true&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;showMenuBar&quot; value=&quot;false&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;showToolBar&quot; value=&quot;true&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;showToolBarHelp&quot; value=&quot;true&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;showAlgebraInput&quot; value=&quot;false&quot;&gt;&lt;/param&gt;&lt;/mdo:applet&gt;&lt;/mdoxml&gt;</clueXML>
  <canonXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;Original Problem&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
This problem is about straight lines joining the origin to different points (with integer coordinates) in the first quadrant. Here are some examples:&lt;br&gt;&lt;/br&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;mdo:image alt=&quot;Grid&quot; height=&quot;311&quot; src=&quot;Grid1.png&quot; width=&quot;529&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;p&gt;For some of these points one coordinate is a factor of the other, for some the coordinates have a common factor, but for others the coordinates are coprime (that is they have no common factor except 1).&lt;/p&gt;
&lt;p&gt;The lines cross the grid in different ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;some lines form neat diagonals across the squares of the grid (for example the line from the origin to (5,5)),&lt;/li&gt;
&lt;li&gt;others create diagonals of rectangles (for example the line from the origin to (2,6) creates a diagonal which crosses two identical rectangles,&lt;/li&gt;
&lt;li&gt;some (for example the line from the origin to (11,1)) forms a single diagonal.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Can you find any relationships between the number of squares that lines cross and the coordinates of their end points and explain why they work?&lt;/p&gt;
&lt;p&gt;Can you find any relationships between the number of grid lines that lines cross and the coordinates of their end points and explain why they work?&lt;/p&gt;
Can you describe any relationships between the coordinates of the end points of lines, the lengths of the lines and the lengths of the diagonals of any rectangles they cross?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Here is the solution which arrived only just in time to be included!
&lt;p&gt;Dear Cambridge,&lt;br&gt;&lt;/br&gt;
We have found a solution to the October Six puzzle Beeline.&lt;/p&gt;
&lt;p&gt;First we drew up a table showing the number of squares crossed in certain examples&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;P&lt;/td&gt;
&lt;td&gt;Q&lt;/td&gt;
&lt;td&gt;squares crossed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;4 etc&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;From this we can see that the number of squares crossed is likely to be P+Q - 1&lt;/p&gt;
&lt;p&gt;We can prove this by showing that when you cross from (0,0) to (3,4) you are going along 3 squares to the right and up 4 squares. However you cannot count the corner square twice therefore it is 3 squares (P) to the right plus 4 squares (Q) up take away one for the corner square, or P+Q -1.&lt;/p&gt;
&lt;p&gt;Prav and Sheli from the North London Collegiate School Maths Puzzle Club.&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</canonXML>
  <end_user_role>2</end_user_role>
  <difficulty>3</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>0</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>0</keystage4plus>
  <title>Beelines</title>
  <description>Is there a relationship between the coordinates of the endpoints of a line and the number of grid squares it crosses?</description>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Generalising</specifier>
  </spec_group>
  <spec_group>Coordinates and Coordinate Geometry
    <specifier>Coordinates</specifier>
  </spec_group>
  <spec_group>Sequences, Functions and Graphs
    <specifier>Linear functions</specifier>
  </spec_group>
  <spec_group>Information and Communications Technology
    <specifier>smartphone</specifier>
  </spec_group>
  <spec_group>Secondary Mapping Document
    <specifier>Coordinate geometry</specifier>
  </spec_group>
  <spec_group>Secondary Mapping Document
    <specifier>DisplayCabinet</specifier>
  </spec_group>
</resource>