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

More Adventures with Modular Arithmetic

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

 

Why do this problem?

This problem follows on from Clock Arithmetic. It gives students the opportunity to consider the properties of numbers when we add or multiply numbers using modular arithmetic, and to then move on to equations with modulo arithmetic.

At the end students are challenged to discover that in general $ax \equiv b \text{ mod }n$ has solutions if, and only if, the highest common factor of $a$ and $n$ divides $b$.  This means that if $a$ and $n$ have no common factors greater than 1 then $ax \equiv b \text{ mod }n$ has a solution for all values of $b$ (where $0 \le b \le n-1$).

 

Possible approach

This problem featured in an NRICH Secondary webinar in April 2021.

Start by asking students to think of two numbers, and find what they are modulo $7$.  Ask them to add their original numbers and find out what this sum is modulo $7$.  What do they notice?

It might be helpful to work through an example:

\begin{align}
15 &\equiv 1 \text{ mod }7\\
26 &\equiv 5 \text{ mod }7\\
15+26&=41
41 &\equiv 6 \text{ mod }7
\end{align}
 
We have $1+5=6$.  Is it always true that $A \text{ mod } 7 + B \text{ mod } 7= (A+B) \text{ mod }7$?  What if $A \text{ mod } 7 + B \text{ mod } 7$ is greater than 7?  Try using $A=20$ and $B=60$.
 
It is not always the case that $A \text{ mod } 7 + B \text{ mod } 7= (A+B) \text{ mod }7$, but it is true that $A \text{ mod } 7 + B \text{ mod } 7 \equiv (A+B) \text{ mod }7$.

Then give the students time to try a few examples of their own and write down what they notice. Encourage them to try some modulos other than $7$.

Bring the students together and display the proof sorter to work on as a class.  

Work on multiplication in the same way as addition, but this time students can have a go at writing their own proof before comparing it to the proof on the problem page.

For the final part of this problem, students could start by playing with the Stars interactivity and seeing which combinations of number of dots and step size ensures that every dot is visited.  This can be linked to the equation $ax \equiv b \text{ mod }n$ by taking number of dots $=n$ and step size $=a$.

Key questions

 
If $A \equiv a \text{ mod }n$ and $B \equiv b \text{ mod }n$, why should $A+B \equiv (a+b) \text{ mod }n$?
 
If $A \equiv a \text{ mod }n$ and $B \equiv b \text{ mod }n$, why should $AB \equiv ab \text{ mod }n$?

 

Possible support

This problem follow on from Clock Arithmetic.  Students might like to work on Stars before trying to link this to   modular equations.

 

Possible extension


Clock Squares provides suitable follow-up questions.
Further reading on modular arithmetic can be found here
 



 

  • 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