Skip over navigation
Cambridge University Faculty of Mathematics NRich logo
menu search
  • Teachers expand_more
    • Early years
    • Primary
    • Secondary
    • Post-16
    • Events
    • Professional development
  • Students expand_more
    • Primary
    • Secondary
    • Post-16
  • Parents expand_more
    • Early Years
    • Primary
    • Secondary
    • Post-16
  • Problem-Solving Schools
  • About NRICH expand_more
    • About us
    • Impact stories
    • Support us
    • Our funders
    • Contact us
  • search

Or search by topic

Number and algebra

  • The Number System and Place Value
  • Calculations and Numerical Methods
  • Fractions, Decimals, Percentages, Ratio and Proportion
  • Properties of Numbers
  • Patterns, Sequences and Structure
  • Algebraic expressions, equations and formulae
  • Coordinates, Functions and Graphs

Geometry and measure

  • Angles, Polygons, and Geometrical Proof
  • 3D Geometry, Shape and Space
  • Measuring and calculating with units
  • Transformations and constructions
  • Pythagoras and Trigonometry
  • Vectors and Matrices

Probability and statistics

  • Handling, Processing and Representing Data
  • Probability

Working mathematically

  • Thinking mathematically
  • Developing positive attitudes
  • Cross-curricular contexts

Advanced mathematics

  • Decision Mathematics and Combinatorics
  • Advanced Probability and Statistics
  • Mechanics
  • Calculus

For younger learners

  • Early Years Foundation Stage

Filling the Gaps

Age 14 to 16
Challenge Level Yellow starYellow star
Secondary curriculum
  • Problem
  • Getting Started
  • Student Solutions
  • Teachers' Resources

Filling the Gaps printable sheet


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.

 Sums of two squares in ten columns


He hoped to find a pattern, but couldn't see anything obvious. 
Vicky suggested changing the number of columns in the grid, so they reduced it by one:

 Sums of two squares in nine columns
 
"There seems to be a diagonal pattern."
"If the rows were one shorter, then those diagonals would line up into vertical columns, wouldn't they?"
"Let's try it..."
 
 Sums of two squares in eight columns


What do you notice about the positions of the square numbers?
What do you notice about the positions of the sums of two square numbers?
 
Can you make any conjectures about the columns in which squares, and sums of two squares, would appear if the grid continued beyond 96?
 
Can you prove any of your conjectures?
 
You might like to look back at the nine-column grid and ask yourself the same questions.
 
Charlie couldn't write every number as a sum of two squares.  He wondered what would happen if he allowed himself three squares.  

 Sums of three squares
 
Will any of the numbers in the seventh column be a sum of three squares?
Can you prove it?
 
"We must be able to write every number if we are allowed to include sums of four squares!"
"Yes, but it's not easy to prove.  Several great mathematicians worked on it over a long period before Lagrange gave the first proof in 1770."
 
With thanks to Vicky Neale who created this task in collaboration with NRICH.  

 

You may also like

More Mods

What is the units digit for the number 123^(456) ?

Mod 3

Prove that if a^2+b^2 is a multiple of 3 then both a and b are multiples of 3.

Novemberish

a) A four digit number (in base 10) aabb is a perfect square. Discuss ways of systematically finding this number. (b) Prove that 11^{10}-1 is divisible by 100.

  • Tech help
  • Accessibility Statement
  • Sign up to our newsletter
  • Twitter X logo

The NRICH Project aims to enrich the mathematical experiences of all learners. To support this aim, members of the NRICH team work in a wide range of capacities, including providing professional development for teachers wishing to embed rich mathematical tasks into everyday classroom practice.

NRICH is part of the family of activities in the Millennium Mathematics Project.

University of Cambridge logo NRICH logo