<?xml version="1.0" encoding="ISO-8859-1" ?>
  <resource>
  <id>7547</id>
  <path>/www/nrich/html/content/id/7547/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2011-06-01T17:04:33</last_published>
  <indexXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
Charlie has been thinking about which numbers can be written
as a sum of two square numbers.  He took a $10\times10$
grid, and shaded the square numbers in blue and the sums of two
squares in yellow.&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;293&quot; width=&quot;496&quot; alt=&quot;Sums of two squares in ten columns&quot; src=&quot;Sums_of_two_squares_10_columns.jpg&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;

&lt;br&gt;&lt;/br&gt;
He hoped to find a pattern, but couldn't see anything
obvious. &lt;br&gt;&lt;/br&gt;
Vicky suggested changing the number of columns in the grid, so they
reduced it by one:&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;321&quot; width=&quot;438&quot; alt=&quot;Sums of two squares in nine columns&quot; src=&quot;Sums_of_two_squares_9_columns.jpg&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;

&lt;div&gt;&amp;quot;There seems to be a diagonal pattern.&amp;quot;&lt;/div&gt;

&lt;div&gt;&amp;quot;If the rows were one shorter, then those diagonals would line
up into vertical columns, wouldn't they?&amp;quot;&lt;/div&gt;

&lt;div&gt;&amp;quot;Let's try it...&amp;quot;&lt;/div&gt;

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

&lt;div style=&quot;text-align: center;&quot;&gt; &lt;mdo:image height=&quot;346&quot; width=&quot;390&quot; alt=&quot;Sums of two squares in eight columns&quot; src=&quot;Sums_of_two_squares_8_columns.jpg&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;

&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;What do you notice about the
positions of the square numbers?&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;What do you notice about the
positions of the sums of two square numbers?&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt; &lt;/span&gt; &lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Can you make any conjectures about
the columns in which squares, and sums of two squares, would
appear if the grid continued beyond 96?&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt; &lt;/span&gt; &lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Can you prove any of your
conjectures?&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
You might like to look back at the nine-column grid and ask
yourself the same questions.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
Charlie couldn't write every number as a sum of two squares. 
He wondered what would happen if he allowed himself three squares.
 &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;347&quot; width=&quot;389&quot; src=&quot;Sums_of_three_squares.jpg&quot; alt=&quot;Sums of three squares&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Will any of the numbers in
the seventh column be a sum of three squares?&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Can you prove
it?&lt;/span&gt;&lt;/div&gt;

&lt;div style=&quot;font-weight: bold;&quot;&gt; &lt;/div&gt;

&lt;div&gt;&amp;quot;We &lt;span style=&quot;font-style: italic;&quot;&gt;must&lt;/span&gt; be able to
write every number if we are allowed to include sums of four
squares!&amp;quot;&lt;/div&gt;

&lt;div&gt;&amp;quot;Yes, but it's not easy to prove.  Several great
mathematicians worked on it over a long period before &lt;a href=&quot;http://www-groups.dcs.st-and.ac.uk/%7Ehistory/Biographies/Lagrange.html&quot;&gt;
Lagrange&lt;/a&gt; gave the first proof in 1770.&amp;quot;&lt;/div&gt;

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

&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;With thanks to Vicky Neale
who created this task in collaboration with
NRICH.&lt;/span&gt;  &lt;/div&gt;

&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML>&lt;mdoxml version=&quot;1.0&quot;&gt;
&lt;p&gt;&lt;span class=&quot;editorial&quot;&gt;Well done to Christopher from Sale Grammar School who sent us&lt;/span&gt; &lt;a href=&quot;/content/id/7547/Christopher.pdf&quot;&gt;this solution&lt;/a&gt; &lt;span class=&quot;editorial&quot;&gt;using modular arithmetic.&lt;/span&gt;&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;

This problem provides an interesting context in which students can
apply algebraic techniques and ideas about modular
arithmetic.  It also gives them a taste of an area of number
theory that they might study if they go beyond the school
curriculum.&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
&lt;h3&gt;Possible approaches&lt;/h3&gt;

&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;This problem follows on
nicely from&lt;/span&gt; &lt;a href=&quot;http://nrich.maths.org/7405&amp;amp;part=&quot; style=&quot;font-style: italic;&quot;&gt;What Numbers Can We Make?&lt;/a&gt;&lt;/div&gt;

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

&lt;div&gt;&amp;quot;Mathematicians have been interested in which numbers can be
written as a sum of square numbers.  Here are the numbers that
we can make as a sum of two squares.&amp;quot;&lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Show&lt;/span&gt; &lt;a style=&quot;font-style: italic;&quot; href=&quot;/content/id/7547/Sums_of_two_squares_10_columns.jpg&quot;&gt;grid&lt;/a&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;.&lt;/span&gt; &lt;/div&gt;

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

&lt;div&gt;&amp;quot;There don't seem to be any obvious patterns here. But the
numbers are only in ten columns because we're used to grids like
this.  Perhaps we should try a different number of columns
instead, like nine.&amp;quot;&lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Show&lt;/span&gt; &lt;a style=&quot;font-style: italic;&quot; href=&quot;/content/id/7547/Sums_of_two_squares_9_columns.jpg&quot;&gt;grid&lt;/a&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;.&lt;/span&gt; &lt;/div&gt;

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

&lt;div&gt;&amp;quot;Can we see any patterns this time?&amp;quot;&lt;/div&gt;

&lt;div&gt;[Students might notice the two empty vertical columns. 
They might also notice a diagonal pattern (top right to bottom
left).  Suggest that this diagonal pattern could become
vertical if we make each row one shorter.]&lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Show&lt;/span&gt; &lt;a style=&quot;font-style: italic;&quot; href=&quot;/content/id/7547/Sums_of_two_squares_8_columns.jpg&quot;&gt;grid&lt;/a&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;.&lt;/span&gt; &lt;/div&gt;

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

&lt;div&gt;Hand out &lt;a href=&quot;/content/id/7547/FillingGaps.pdf&quot;&gt;this copy
of the grid&lt;/a&gt; and give students some time, working in pairs, to
look for patterns, make predictions, and explain those
predictions.  You might want to encourage students to start by
looking at the three completely empty columns.&lt;/div&gt;

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

&lt;div&gt;Possible prompts if students are having difficulties providing
convincing/rigorous explanations:&lt;/div&gt;

&lt;div&gt;In which columns do the square numbers appear?&lt;/div&gt;

&lt;div&gt;In which columns do the squares of even numbers appear?
 Can you explain why? &lt;/div&gt;

&lt;div&gt;And the squares of odd numbers?  Can you explain
why?&lt;/div&gt;

&lt;div&gt;How can we describe the numbers in a particular
column?&lt;/div&gt;

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

&lt;div&gt;Bring the class together to pool ideas, and then offer &lt;a href=&quot;/content/id/7547/FillingGaps2.pdf&quot;&gt;this grid&lt;/a&gt; with sums of
three squares for further investigation.  Some students might
also like to consider what will happen when we add four
squares.&lt;/div&gt;

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

&lt;div&gt;Suggest that students look for patterns that they can explain
in the nine-column grid.&lt;/div&gt;

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

&lt;div&gt;Students could also experiment with grids with different
numbers of columns.&lt;/div&gt;

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

Ensure that students have worked on &lt;a href=&quot;http://nrich.maths.org/7405&amp;amp;part=&quot;&gt;What Numbers Can We
Make?&lt;/a&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;It may be helpful to look at the problem &lt;a href=&quot;http://nrich.maths.org/7405&amp;amp;part=&quot;&gt;What Numbers Can We
Make?&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
In which columns do the square numbers appear?&lt;br&gt;&lt;/br&gt;
In which columns do the squares of even numbers appear?  Can
you explain why?&lt;br&gt;&lt;/br&gt;
And the squares of odd numbers?  Can you explain why?&lt;br&gt;&lt;/br&gt;
How can we describe the numbers in a particular column?&lt;br&gt;&lt;/br&gt;
 &lt;br&gt;&lt;/br&gt;
You might want to start by looking at the completely empty
columns.&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</clueXML>
  <canonXML/>
  <end_user_role>2</end_user_role>
  <difficulty>4</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>0</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>0</keystage4plus>
  <title>Filling the gaps</title>
  <description>Which numbers can we write as a sum of square numbers?</description>
  <spec_group>Numbers and the Number System
    <specifier>Square numbers</specifier>
  </spec_group>
  <spec_group>Numbers and the Number System
    <specifier>Modulus arithmetic</specifier>
  </spec_group>
  <spec_group>Numbers and the Number System
    <specifier>Properties of numbers</specifier>
  </spec_group>
</resource>