<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>895</id>
  <path>/www/nrich/html/content/03/02/six2/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2011-02-01T00:00:01</last_published>
  <indexXML>&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;
Imagine a three dimensional version of noughts and crosses&lt;br&gt;&lt;/br&gt;
where two players take it in turn to place&lt;br&gt;&lt;/br&gt;
different coloured marbles into a box.&lt;br&gt;&lt;/br&gt;
&lt;div style=&quot;margin-left: 280px;&quot;&gt;&lt;mdo:image alt=&quot;&quot; height=&quot;144&quot; src=&quot;Box1.gif&quot; width=&quot;158&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;
The box is made from 27 transparent unit cubes arranged in a 3-by-3-by-3 array.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The object of the game is to complete as many winning lines of three marbles as possible.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;How many different winning lines are there?&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Click below to see four different methods for working out the number of winning lines in a $3 \times 3 \times 3$ cube.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Caroline’s method&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div class=&quot;toggle&quot;&gt;All winning lines must pass either:
&lt;ul&gt;
&lt;li&gt;along an edge of the cube&lt;/li&gt;
&lt;li&gt;through the middle of a face&lt;/li&gt;
&lt;li&gt;through the centre of the cube&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There are $12$ edges on a cube so there are $12$ winning lines &lt;strong&gt;along edges&lt;/strong&gt;.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There are $6$ faces on a cube, and $4$ winning lines that pass through the middle of each face, so there are $24$ winning lines &lt;strong&gt;through the middle of faces&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Finally we need to consider the winning lines that go &lt;strong&gt;through the centre cube&lt;/strong&gt;:&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px;&quot;&gt;vertex to opposite vertex: $4$&lt;br&gt;&lt;/br&gt;
middle of edge to middle of opposite edge: $6$&lt;br&gt;&lt;/br&gt;
middle of face to middle of opposite face: $3$&lt;/p&gt;
&lt;p&gt;In total, there are $12 + 24 + 4 + 6 + 3 = 49$ winning lines.&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;
&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;James’ method&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div class=&quot;toggle&quot;&gt;Winning lines can either be:
&lt;ul&gt;
&lt;li&gt;Diagonal&lt;/li&gt;
&lt;li&gt;Not diagonal&lt;/li&gt;
&lt;/ul&gt;
Considering the &lt;strong&gt;non-diagonal winning lines&lt;/strong&gt; first:&lt;br&gt;&lt;/br&gt;
There are $9$ from front to back.&lt;br&gt;&lt;/br&gt;
There are $9$ from left to right.&lt;br&gt;&lt;/br&gt;
There are $9$ from top to bottom.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Considering the &lt;strong&gt;diagonal winning lines:&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
On each layer there are $2$ diagonal winning lines so:&lt;br&gt;&lt;/br&gt;
There are $6$ from front to back.&lt;br&gt;&lt;/br&gt;
There are $6$ from top to bottom.&lt;br&gt;&lt;/br&gt;
There are $6$ from left to right.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There are $4$ lines from a vertex to a diagonally opposite vertex.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
In total, there are $27+18+4=49$ winning lines.&lt;/div&gt;
&lt;p&gt;&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Alison’s method&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;
&lt;div class=&quot;toggle&quot;&gt;There are $3$ possible places where a line can start:
&lt;ul&gt;
&lt;li&gt;at a vertex&lt;/li&gt;
&lt;li&gt;at the middle of an edge&lt;/li&gt;
&lt;li&gt;in the centre of a face&lt;/li&gt;
&lt;/ul&gt;
A cube has $8$ vertices, $12$ edges and $6$ faces.&lt;br&gt;&lt;/br&gt;
&lt;p&gt;From a &lt;strong&gt;vertex&lt;/strong&gt; there are $7$ other vertices that you can join to in order to make a winning line.  $7 \times 8 = 56$ lines, but this counts each line from both ends, so there are $28$ &amp;#39;vertex&amp;#39; winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
From the &lt;strong&gt;middle of an edge&lt;/strong&gt; there are $3$ other middles-of-edges that you can join to in order to make a winning line.  $3 \times 12 = 36$ lines, but this counts each line from both ends so there are $18$ &amp;#39;middle of edge&amp;#39; winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
From the &lt;strong&gt;centre of each face&lt;/strong&gt; there is one winning line, joining to the opposite face, so there are $3$ &amp;#39;centre of face&amp;#39; winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
So in total, there are $28 + 18 + 3 = 49$ winning lines.&lt;/p&gt;
&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Grae&amp;#39;s method&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div class=&quot;toggle&quot;&gt;The winning lines may be counted by looking at lines:
&lt;ul&gt;
&lt;li&gt;in each horizontal plane&lt;/li&gt;
&lt;li&gt;in each vertical plane from left to right&lt;/li&gt;
&lt;li&gt;in each vertical plane from front to back&lt;/li&gt;
&lt;li&gt;in the diagonal planes&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On a plane there are $8$ winning lines.&lt;br&gt;&lt;/br&gt;
In the cube, there are $3$ &lt;strong&gt;horizontal planes&lt;/strong&gt;, so $8 \times 3 = 24$ winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There are also $3$ &lt;strong&gt;vertical planes going from left to right&lt;/strong&gt;, but now with only $5$ &lt;strong&gt;new&lt;/strong&gt; winning lines per plane, as the $3$ horizontal lines have already been counted.  So $5 \times 3 = 15$ winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
On the $3$ &lt;strong&gt;vertical planes going from front to back&lt;/strong&gt;, we now only have $2$ &lt;strong&gt;new&lt;/strong&gt; (diagonal) winning lines per plane. So $2 \times 3 = 6$ winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Finally, there are also &lt;strong&gt;diagonal planes&lt;/strong&gt; to consider. There are $4$ winning lines going from corner to diagonally opposite corner.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
In total, there are $24 + 15 + 6 + 4 = 49$ winning lines.&lt;/p&gt;
&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Try to make sense of each method.&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Now, try to adapt each method to work out the number of winning lines in a $4 \times 4 \times 4$ cube.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Can you adapt the methods to give a general formula for any size cube?&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
Check that each method gives you the same formula.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;&lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=6362&amp;amp;part=&quot;&gt;Click here for a poster of this problem&lt;/a&gt;.&lt;/div&gt;
&lt;br&gt;&lt;/br&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;span class=&quot;editorial&quot;&gt;Joel and Sarah from Sawston Village College found an alternative method for&lt;/span&gt; &lt;span class=&quot;editorial&quot;&gt;working out the number of different winning lines in a $3 \times 3 \times 3$ cube.&lt;/span&gt; &lt;a class=&quot;pdflink&quot; href=&quot;/content/03/02/six2/Marbles%20in%20a%20Box%20-%20Sawston%20solution.pdf&quot;&gt;Here&lt;/a&gt; &lt;span class=&quot;editorial&quot;&gt;is the description of their method.&lt;/span&gt;
&lt;span class=&quot;editorial&quot;&gt;Congratulations! Finding all the lines once and none of them twice is a real challenge.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;The second part of the problem asked if it was possible to&lt;/span&gt; &lt;span class=&quot;editorial&quot;&gt;adapt the methods described for the&lt;/span&gt; &lt;span class=&quot;editorial&quot;&gt;$3 \times 3 \times 3$ cube&lt;/span&gt; &lt;span class=&quot;editorial&quot;&gt;to give a general formula for any size cube&lt;/span&gt;&lt;span class=&quot;editorial&quot;&gt;.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Jamal from King Edward VII School, Sheffield managed to adapt Caroline&amp;#39;s method to a&lt;/span&gt; &lt;span class=&quot;editorial&quot;&gt;$4 \times 4 \times 4$&lt;/span&gt; &lt;span class=&quot;editorial&quot;&gt;cube.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Remember that on a $3 \times 3 \times 3$ cube all winning lines must pass either:
&lt;ul&gt;
&lt;li&gt;along an edge of the cube&lt;/li&gt;
&lt;li&gt;through the middle of a face&lt;/li&gt;
&lt;li&gt;through the centre of the cube&lt;/li&gt;
&lt;/ul&gt;
but these must be changed to make it work for a $4 \times 4 \times 4$ cube.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There are still 12 edges on a $4 \times 4 \times 4$ cube so there are 12 winning lines along edges.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Since on the larger cube there is no &amp;#39;middle&amp;#39; of a face, I counted all the lines on each face that aren&amp;#39;t along the edge instead, each one passes through the &amp;#39;middle&amp;#39; four pieces of a face. There are 2 diagonals, 2 horizontal and 2 vertical lines on each of the 6 faces, so that&amp;#39;s 36 more lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Again the $4 \times 4 \times 4$ doesn&amp;#39;t have a &amp;#39;centre&amp;#39; piece so I counted all the lines through the central $2 \times 2 \times 2$ block. I found there is exactly one winning line through any two of those eight pieces in the block. There are (8x7)/2 =28 pairs because I can choose from eight pieces for the first one, then from the remaining seven for the second, but I divide by two because it
doesn&amp;#39;t matter in what order I choose at the pair.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Adding these up I have 12 + 36 + 28 = 76 winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Niharika used similar reasoning to find the number of&lt;/span&gt; &lt;span class=&quot;editorial&quot;&gt;winning lines in an&lt;/span&gt; &lt;span class=&quot;editorial&quot;&gt;$n \times n \times n$ cube.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Rachael from Lancaster Girls&amp;#39; Grammar School used James&amp;#39; method to find the same result, and then generalised the answer to&lt;/span&gt; &lt;span class=&quot;editorial&quot;&gt;$n \times n \times n$&lt;/span&gt; &lt;span class=&quot;editorial&quot;&gt;cubes.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Considering the non-diagonal winning lines first:&lt;br&gt;&lt;/br&gt;
There are 16 from front to back.&lt;br&gt;&lt;/br&gt;
There are 16 from left to right.&lt;br&gt;&lt;/br&gt;
There are 16 from top to bottom.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Considering the diagonal winning lines:&lt;br&gt;&lt;/br&gt;
On each layer there are 2 diagonal winning lines so:&lt;br&gt;&lt;/br&gt;
There are 8 from front to back.&lt;br&gt;&lt;/br&gt;
There are 8 from top to bottom.&lt;br&gt;&lt;/br&gt;
There are 8 from left to right.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There are 4 lines from a vertex to a diagonally opposite vertex.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
In total, there are 48+24+4 = 76 winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If I now take a cube of size nxnxn, there are n&lt;sup&gt;2&lt;/sup&gt; non-diagonal lines from front to back, and left to right, and top to bottom. That makes 3n&lt;sup&gt;2&lt;/sup&gt; lines. Counting the diagonal ones, there are 2 in each of the n layers, in each of the 3 dimensions; so 6n lines. Then there&amp;#39;s the four lines from a vertex to a diagonally opposite vertex. In total there are 3n&lt;sup&gt;2&lt;/sup&gt; + 6n +4
lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Llewellyn from Cowbridge Comprehensive School saw that Alison&amp;#39;s method generalises easily, jumping straight to the nxnxn formula.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
A cube has 8 vertices, 12 edges and 6 faces. Correspondingly there are three kinds of pieces: vertex, edge, and face. An $n \times n \times n$ cube has 8 vertex peices, 12(n-2) edge pieces and 6(n-2)&lt;sup&gt;2&lt;/sup&gt; face pieces.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
From a vertex piece there are 7 other vertex pieces that you can join to in order to make a winning line. 7×8 = 56 lines, but this counts each line from both ends, so there are 28 vertex winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
From an edge piece there are 3 other edge pieces that you can join to in order to make a winning line. Remembering that this counts each line from both ends there are 3×12(n-2)/2 = 18n - 36 edge winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
From a face piece there is one winning line, joining to the opposite face, so there are 6(n-2)&lt;sup&gt;2&lt;/sup&gt;/2 = 3n&lt;sup&gt;2&lt;/sup&gt; - 12n + 12 face winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
So in total, there are 28 + 18n - 36 + 3n&lt;sup&gt;2&lt;/sup&gt; - 12n + 12 = 3n&lt;sup&gt;2&lt;/sup&gt; + 6n + 4 winning lines. That means there are 76 winning lines in a 4x4x4 cube and 364 winning lines in a 10x10x10 cube.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Leah from St Paul&amp;#39;s Girls&amp;#39; School saw how to adapt Grae&amp;#39;s method to a solution for 4x4x4 cubes.&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The winning lines may be counted by looking at lines:
&lt;ul&gt;
&lt;li&gt;in each horizontal plane&lt;/li&gt;
&lt;li&gt;in each vertical plane from left to right&lt;/li&gt;
&lt;li&gt;in each vertical plane from front to back&lt;/li&gt;
&lt;li&gt;in the diagonal planes&lt;/li&gt;
&lt;/ul&gt;
On a non-diagonal plane there are 10 winning lines (4 horizontal, 4 vertical and 2 diagonal lines).&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
In the cube, there are 4 horizontal planes, so 10×4=40 winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There are also 4 vertical planes going from left to right, but now with only 6 new winning lines per plane, as the 4 horizontal lines have already been counted.  So 6×4=24 winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
On the 4 vertical planes going from front to back, we now only have 2 new (diagonal) winning lines per plane. So 2×4 = 8 winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Finally, there are also diagonal planes to consider. There are 4 winning lines going from corner to diagonally opposite corner.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
In total, there are 40 + 24 + 8 + 4 = 76 winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;It is possible to adapt Grae&amp;#39;s and Caroline&amp;#39;s methods to the general formula and you might like to try using Leah&amp;#39;s or Jamal&amp;#39;s work to help you get started. Of course it&amp;#39;s easier now you know what formula you&amp;#39;re looking for!&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;p&gt;As well as giving students an opportunity to visualise 3-D solids, this problem provokes the need for students to work systematically. Counting the winning lines in an ad hoc way will result in double-counting or missed lines, with students getting many different answers. It is only by working in a systematic way that students can convince themselves that their answer is correct. By offering a
variety of methods, we hope students will evaluate the merits of the different approaches, and recognise the power of methods which make it possible to generalise.&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;
&lt;h3&gt;Possible approach&lt;/h3&gt;
&lt;p&gt;&quot;If I played a game of noughts and crosses, there are eight different ways I could make a winning line. I wonder how many different ways I could make a winning line in a game of three-dimensional noughts and crosses?&quot;&lt;/p&gt;
&lt;p&gt;The image from the problem could be used to show one example of a winning line.&lt;/p&gt;
&lt;p&gt;Give students time to discuss with their partners and work out their answers. While they are working, circulate and observe the different approaches that students are using, and challenge them to explain any dubious reasoning. After a while, stop the group to share their results, perhaps writing up all their answers on the board (it is likely that there will be disagreement!).&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;
&quot;It&amp;#39;s often difficult to know we have the right answer to a problem like this, because there is a danger of missing some lines or counting some lines twice. &lt;a class=&quot;pdflink&quot; href=&quot;/content/03/02/six2/Marbles.pdf&quot;&gt;Here&lt;/a&gt; are the systematic methods that four people used to work out the number of winning lines. For each method, try to make sense of it, and then adapt it to work out the number of
winning lines of 4 marbles in a 4 by 4 by 4 cube.&quot;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;em&gt;The methods are arranged two to a sheet, so you could give each half of the class a different pair of methods to work on, or alternatively you could give everyone all four methods.&lt;/em&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&quot;Once you have adapted the methods for a 4 by 4 by 4 cube, have a go at working out what would happen with some larger cubes, and perhaps try to write down algebraically how many lines of n marbles there would be for an n by n by n cube.&quot;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Bring the class together and invite students to present their thinking, by asking them to explain how to work out the number of winning lines in a 10 by 10 by 10 version of the game.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Finally, work together on creating formulas using each method for the number of winning lines in an n by n by n game (or gather together on the board the algebraic expressions they found earlier) and verify that they are equivalent.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;h3&gt;Key questions&lt;br&gt;&lt;/br&gt;
 &lt;/h3&gt;
How can you categorise the types of winning line, to make sure you don&amp;#39;t miss any?&lt;br&gt;&lt;/br&gt;
How would you extend Caroline&amp;#39;s (or Grae&amp;#39;s or Alison&amp;#39;s or James&amp;#39;) method to count the number of winning lines in a 4 by 4 by 4 cube?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;h3&gt;Possible extension&lt;br&gt;&lt;/br&gt;
 &lt;/h3&gt;
&lt;div&gt;Extend the cubic &amp;#39;grid&amp;#39; to a cuboid, possibly 4 by 3 by 3 to start with, and ultimately $n$ by $m$ by $p$, always looking for lines of 3 - unless students want to look for other length lines (they could look for lines of 2 on the 3 by 3 by 3 grid).&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;h3&gt;Possible support&lt;br&gt;&lt;/br&gt;
 &lt;/h3&gt;
&lt;a href=&quot;/2322&quot;&gt;Painted Cube&lt;/a&gt; offers students the opportunity to work with the structure of a cube and consider faces, edges and vertices.&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;Take a look at the problem &lt;a href=&quot;/2322&quot;&gt;Painted Cube&lt;/a&gt; for some practice at visualising parts of a cube.&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;&lt;p&gt;&lt;a href=&quot;/content/03/02/six2/Caroline%20and%20James%20methods%20for%20marbles%20in%20a%20box.doc&quot;&gt;Caroline and James methods for marbles in a box.doc&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Click below to see four different methods for working out the number of winning lines in a $3 \times 3 \times 3$ cube.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Try to make sense of each method.&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
Now, try to adapt each method to work out the number of winning lines in a $4 \times 4 \times 4$ cube.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Can you adapt the methods to give a general formula for any size cube?&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
Check that each method gives you the same formula.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Caroline’s method&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;
&lt;div class=&quot;toggle&quot;&gt;All winning lines must pass either:
&lt;ul&gt;
&lt;li&gt;along an edge of the cube&lt;/li&gt;
&lt;li&gt;through the middle of a face&lt;/li&gt;
&lt;li&gt;through the centre of the cube&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There are $12$ edges on a cube so there are $12$ winning lines &lt;strong&gt;along edges&lt;/strong&gt;.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There are $6$ faces on a cube, and $4$ winning lines that pass through the middle of each face, so there are $24$ winning lines &lt;strong&gt;through the middle of faces&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Finally we need to consider the winning lines that go &lt;strong&gt;through the centre cube&lt;/strong&gt;:&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px;&quot;&gt;vertex to opposite vertex: $4$&lt;br&gt;&lt;/br&gt;
middle of edge to middle of opposite edge: $6$&lt;br&gt;&lt;/br&gt;
middle of face to middle of opposite face: $3$&lt;/p&gt;
&lt;p&gt;Therefore there are $49$ possible ways of getting a winning line.&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;
&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;James’ method&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div class=&quot;toggle&quot;&gt;Winning lines can either be:
&lt;p&gt; &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Diagonal&lt;/li&gt;
&lt;li&gt;Not diagonal&lt;/li&gt;
&lt;/ul&gt;
Considering the &lt;strong&gt;non-diagonal winning lines:&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
There are $9$ from front to back.&lt;br&gt;&lt;/br&gt;
There are $9$ from left to right.&lt;br&gt;&lt;/br&gt;
There are $9$ from top to bottom.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Considering the &lt;strong&gt;diagonal winning lines:&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
On each layer there are $2$ diagonal winning lines so:&lt;br&gt;&lt;/br&gt;
There are $6$ from front to back.&lt;br&gt;&lt;/br&gt;
There are $6$ from top to bottom.&lt;br&gt;&lt;/br&gt;
There are $6$ from left to right.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There are $4$ lines from a vertex to a diagonally opposite vertex.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
In total, there are $27+18+4=49$ winning lines.&lt;/div&gt;
&lt;p&gt;&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Alison’s method&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;
&lt;div class=&quot;toggle&quot;&gt;There are $3$ possible places where a line can start:
&lt;p&gt; &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;at a vertex&lt;/li&gt;
&lt;li&gt;at the middle of an edge&lt;/li&gt;
&lt;li&gt;in the centre of a face&lt;/li&gt;
&lt;/ul&gt;
A cube has $8$ vertices, $12$ edges and $6$ faces.&lt;br&gt;&lt;/br&gt;
&lt;p&gt;From a &lt;strong&gt;vertex&lt;/strong&gt; there are $7$ other vertices that you can join to in order to make a winning line.  $7 \times 8 = 56$ lines, but this counts each line from both ends, so there are $28$ &amp;#39;vertex&amp;#39; winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
From the &lt;strong&gt;middle of an edge&lt;/strong&gt; there are $3$ other middles-of-edges that you can join to in order to make a winning line.  $3 \times 12 = 36$ lines, but this counts each line from both ends so there are $18$ &amp;#39;middle of edge&amp;#39; winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
From the &lt;strong&gt;centre of each face&lt;/strong&gt; there is one winning line, joining to the opposite face, so there are $3$ &amp;#39;centre of face&amp;#39; winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
So in total, there are $28 + 18 + 3 = 49$ winning lines.&lt;/p&gt;
&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Grae&amp;#39;s method&lt;/strong&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div class=&quot;toggle&quot;&gt;The winning lines may be counted by looking at lines:
&lt;p&gt; &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;in each horizontal plane&lt;/li&gt;
&lt;li&gt;in each vertical plane from left to right&lt;/li&gt;
&lt;li&gt;in each vertical plane from front to back&lt;/li&gt;
&lt;li&gt;in each diagonal plane&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On a plane there are $8$ winning lines.&lt;br&gt;&lt;/br&gt;
In the cube, there are $3$ &lt;strong&gt;horizontal planes&lt;/strong&gt;, so $8 \times 3 = 24$ winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There are also $3$ &lt;strong&gt;vertical planes going from left to right&lt;/strong&gt;, but now with only $5$ new winning lines per plane, as the $3$ horizontal lines have already been counted.  So $5 \times 3 = 15$ winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
On the $3$ &lt;strong&gt;vertical planes going from front to back&lt;/strong&gt;, we now only have $2$ new (diagonal) winning lines per plane. So $2 \times 3 = 6$ winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Finally, there are also two &lt;strong&gt;diagonal planes&lt;/strong&gt;, going from corner to corner, which only have $2$ lines each, giving $4$ winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
In total, there are $24 + 15 + 6 + 4 = 49$ winning lines.&lt;/p&gt;
&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Formula&lt;br&gt;&lt;/br&gt;
For cubes that are more than 1X1X1, you can use a formula to work out the total number of winning lines:&lt;br&gt;&lt;/br&gt;
3n2 + 6n + 4&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
From Paul’s method:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Work out the total number of rods, the total number of diagonals in the layers, and add 4 for the number of corner to corner winning lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
I did this for a 2X2X2, a 3X3X3 and a 4X4X4 cube.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
This gave me:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Cube rods diagonals corner-to-corner total&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
2 12 12  4   28&lt;br&gt;&lt;/br&gt;
3 27 18  4   49&lt;br&gt;&lt;/br&gt;
4 48 24  4   76&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
First of all I realised that the rods are all multiples of 3 and then that they are multiples of the cube’s square. This can be written as 3n2&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Then I noticed that the diagonals are simply the cube’s size multiplied by 6, written as 6n.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Finally, every one has 4 corner to corner lines.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The formula therefore is 3n2 + 6n + 4&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
From Alison’s method:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
For a vertex, the formula will always be (7x8)2– as there are always 8 vertices on a cube, and there are always 7 directions in which it can go, with every line being repeated.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
From the middle of an edge, it is (12x3x(n-2))2: the (n-2) removing corner pieces, the 3 directions and 12 edges.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
For the centre square of each face, calculate (n-2)2 : removing the edges to find the square in the middle.  Then times by 6, for all the faces and divide by 2 to remove repeats.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Therefore, the whole formula is: Which can be simplified to 3n2 + 6n + 4&lt;br&gt;&lt;/br&gt;
From Caroline’s method:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
For the first stage, there is always 12 – as there are always 12 edges.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
To find the remaining lines a face, there will always be 2 diagonals, and 2 times n-2 (to remove edges).  For 6 faces, we have 6x(2+2n-4).  (This can be simplified to 12n-12)&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
For the middle lines, we have 3 dimensions of 2 times (n-2): as these are the diagonals removing corners.  (simplified to 6n-12) We also have, for lines straight through the middle of the cube, 3 dimensions of the inner square which is (n-2)2 (simplified to 3n2 – 12n +12).  There are also always 4 corner to corner diagonals.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Therefore, we have: 12 + 12n-12 + 6n – 12 + 3n2 – 12n +12 +4  which again can be simplified to 3n2 + 6n + 4.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
From Susannah and Grae’s method:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The amount of winning lines on a plane can be expressed as 2n+2 as you have n horizontal and n vertical and two diagonals.&lt;br&gt;&lt;/br&gt;
For the first stage, you have n(2n+2)&lt;br&gt;&lt;/br&gt;
For the second stage, you have n(n+2)  as the n horizontal have already been made.&lt;br&gt;&lt;/br&gt;
For the third stage, you have n x 2 as the n horizontal and n vertical have already been made.&lt;br&gt;&lt;/br&gt;
Finally, we have the 4 corner-to-corner diagonals&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Therefore, our formula is n(2n+2) + n(n+2) + n x 2 +4&lt;br&gt;&lt;/br&gt;
= 2n2+2n+n2+2n+2n+4&lt;br&gt;&lt;/br&gt;
=3n2+6n+4
&lt;p&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;
&lt;br&gt;&lt;/br&gt;
&lt;p class=&quot;editorial&quot;&gt;A solution was offered by Andrew.&lt;/p&gt;
&lt;p class=&quot;editorial&quot;&gt;Andrew has tried to explain his reasoning and break the problem down. Well done!&lt;/p&gt;
&lt;p&gt;There are 6 distinct winning lines, which cannot be obtained one from any other by rotation or reflection.&lt;/p&gt;
&lt;p&gt;These are arranged as follows:&lt;/p&gt;
&lt;p&gt;A) The edge of the cube.&lt;br&gt;&lt;/br&gt;
B) The diagonal of the face of the cube&lt;br&gt;&lt;/br&gt;
C) The middle line of a face of the cube, this means a line that joins two points situated at the middle of two sides opposed to each other, on one face of the cube.&lt;br&gt;&lt;/br&gt;
D) The diagonal of the middle plane of the cube&lt;br&gt;&lt;/br&gt;
E) The middle line of the middle plane&lt;br&gt;&lt;/br&gt;
F) The main diagonal of the cube&lt;/p&gt;
&lt;p&gt;Another problem of interest could be to count how many lines are of each type:&lt;/p&gt;
&lt;p&gt;A) there are 12 edges of the cube&lt;br&gt;&lt;/br&gt;
B) there are 6 faces, and 2 diagonals of each face, consequently 12 lines&lt;br&gt;&lt;/br&gt;
C) there are 6 faces, two middle lines for each, 12 lines&lt;br&gt;&lt;/br&gt;
D) there are three middle planes, 6 diagonal lines&lt;br&gt;&lt;/br&gt;
E) there are three middle planes, 3 middle lines&lt;br&gt;&lt;/br&gt;
F) there are 4 main diagonals&lt;/p&gt;
&lt;p&gt;There are 49 winning lines.&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</canonXML>
  <end_user_role>2</end_user_role>
  <difficulty>4</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>1</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>0</keystage4plus>
  <title>Marbles in a box</title>
  <description>In a three-dimensional version of noughts and crosses, how many winning lines can you make?</description>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Visualising</specifier>
  </spec_group>
  <spec_group>3D Geometry, Shape and Space
    <specifier>Cubes</specifier>
  </spec_group>
  <spec_group>Information and Communications Technology
    <specifier>smartphone</specifier>
  </spec_group>
  <spec_group>Algebra
    <specifier>Creating expressions/formulae</specifier>
  </spec_group>
  <spec_group>Secondary Mapping Document
    <specifier>3D shapes</specifier>
  </spec_group>
  <spec_group>Secondary Mapping Document
    <specifier>DisplayCabinet</specifier>
  </spec_group>
</resource>