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

Clock Squares

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

 

Olivia from Roedean in the UK sent this work on modulo 5 and 7:

Olivia mentioned the problem More Adventures with Modular Arithmetic.

Mahdi from Mahatma Gandhi International School in India and Olivia tried more prime numbers. Mahdi made this table. Click here to see a larger version.

Mahdi noticed the same pattern that Olivia used to find 1002, 1012, ... mod 5 and mod 7, as well as another pattern:

The very first thing I notice is how similar patterns emerge from $n$ mod $p$ and $n^2$ mod $p.$
The values modulo prime numbers, also repeat in the same interval. So, for example, the column with 5 has remainders that repeat after every 5 integers. Same goes with 7, 11, 13 and 17. Also, excluding the zero, I noticed that the “block” (That is highlighted in bold for each column) is symmetrical from the top and bottom.

Martin from Prague British International School Prague Libuš in the Czech Republic and Olivia noticed this symmetry and explained how it can be used to predict the rest of the squares. Martin wrote:

The formula $p=2x+1$ works in finding the amount of values [you need to know before you can predict all the squares].

By using the example of mod7, $p$=7. So 7=2$x$+1, which means $x$ will be 3. $x$ refers to the number of values we need to know before we can predict the rest.
If $x$=3 that means the there will be 3 numbers that we need to know, before they are repeated in reverse. The numbers are 1,4,2 (then they continue in reverse),2,4,1… (and these numbers repeat forever)

12 = 1 ≡ 1 mod 7
22 = 4 ≡ 4 mod 7
32 = 9 ≡ 2 mod 7

42 = 16 ≡ 2 mod 7
52 = 25 ≡ 4 mod 7
62 = 36 ≡ 1 mod 7

Olivia used algebra to prove that this will always happen:

Mahdi proved this in a slightly different way and then used ideas from the proof to find 1012 mod 5. Notice that Mahdi uses $a$ to refer to each of the numbers on the list. It is more common to use a different letter or symbol for each number, such as $a_0, a_1, a_3, ... a_{p-1}.$


 

Mahdi and Olivia also looked at mod $n$ for $n$ even. This is Mahdi's table (see a larger version here): 

Olivia proved that there is a similar pattern to before:

Mahdi also noticed that, for modulo $n$ where $n$ is not prime, some numbers have squares equal to zero. This is Mahdi's work:

 

  • 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