Modular arithmetic

There are 51 NRICH Mathematical resources connected to Modular arithmetic
The Public Key
problem

The public key

Age
16 to 18
Challenge level
filled star filled star filled star
Find 180 to the power 59 (mod 391) to crack the code. To find the secret number with a calculator we work with small numbers like 59 and 391 but very big numbers are used in the real world for this.
Two Much
problem

Two much

Age
11 to 14
Challenge level
filled star filled star filled star
Explain why the arithmetic sequence 1, 14, 27, 40, ... contains many terms of the form 222...2 where only the digit 2 appears.
Knapsack
problem

Knapsack

Age
14 to 16
Challenge level
filled star filled star empty star
You have worked out a secret code with a friend. Every letter in the alphabet can be represented by a binary value.
The Best Card Trick?
problem

The best card trick?

Age
11 to 16
Challenge level
filled star empty star empty star
Time for a little mathemagic! Choose any five cards from a pack and show four of them to your partner. How can they work out the fifth?
It must be 2000
problem

It must be 2000

Age
7 to 11
Challenge level
filled star filled star empty star
Here are many ideas for you to investigate - all linked with the number 2000.
Elevens
problem

Elevens

Age
16 to 18
Challenge level
filled star empty star empty star
Add powers of 3 and powers of 7 and get multiples of 11.
Purr-fection
problem

Purr-fection

Age
16 to 18
Challenge level
filled star empty star empty star
What is the smallest perfect square that ends with the four digits 9009?
A One in Seven Chance
problem

A one in seven chance

Age
11 to 14
Challenge level
filled star filled star filled star
What is the remainder when 2^{164}is divided by 7?
More Mods
problem

More mods

Age
14 to 16
Challenge level
filled star filled star empty star
What is the units digit for the number 123^(456) ?
Dirisibly Yours
problem

Dirisibly yours

Age
16 to 18
Challenge level
filled star empty star empty star
Find and explain a short and neat proof that 5^(2n+1) + 11^(2n+1) + 17^(2n+1) is divisible by 33 for every non negative integer n.