Number theory & modular arithmetic worksheet with answers

Free printable Number theory & modular arithmetic worksheet: 6 problems from easy to exam level, with an answer key. Print it or save it as a PDF.

For teachers: free to print, copy and use in class. Every new worksheet has new values and its own answer key. A link to ExamProblems on your course page is appreciated.

Name: ____________________   Date: ____________

1.Easy
aqbr741=?·559+??=?·?+??=?·?+?

Find the least common multiple lcm(741, 559). Use Euclid’s algorithm for the gcd first.

a = 741b = 559
lcm(741, 559) =
2.Easy
aqbr147=?·91+??=?·?+??=?·?+??=?·?+??=?·?+??=?·?+?

Find the least common multiple lcm(147, 91). Use Euclid’s algorithm for the gcd first.

a = 147b = 91
lcm(147, 91) =
3.Medium

Find the inverse of 8 modulo 29: the number x with 0 < x < 29 and 8·x ≡ 1 (mod 29).

a = 8n = 29
8−1 mod 29 =
4.Medium

Solve 27x ≡ 14 (mod 73). Give the solution x with 0 < x < 73.

27x ≡ 14 (mod 73)
x =
5.Hard

53 is prime. Use Fermat’s little theorem to find 597120 mod 53.

p = 53k = 97120
597120 mod 53 =
6.Hard

How many solutions N does 24x ≡ 12 (mod 42) have in {0, 1, …, 41}?

24x ≡ 12 (mod 42)
N =

Answer key

  1. 1. lcm(741, 559) = 31863
  2. 2. lcm(147, 91) = 1911
  3. 3. 8−1 mod 29 = 11
  4. 4. x = 60
  5. 5. 597120 mod 53 = 49
  6. 6. N = 6

Full step-by-step solutions: practise this topic on examproblems.com.