Use Euclid’s algorithm to find gcd(660, 432).
Number theory & modular arithmetic worksheet with answers
1.Easy
a = 660b = 432
gcd(660, 432) =
2.Easy
Find 709 mod 7, the remainder r with 0 ≤ r < 7.
a = 709n = 7
709 mod 7 =
3.Medium
Find the inverse of 16 modulo 55: the number x with 0 < x < 55 and 16·x ≡ 1 (mod 55).
a = 16n = 55
16−1 mod 55 =
4.Medium
Solve 52x ≡ 11 (mod 81). Give the solution x with 0 < x < 81.
52x ≡ 11 (mod 81)
x =
5.Hard
Encrypt the message m = 4 with the RSA public key (n, e) = (533, 23). Find the ciphertext c.
n = 533e = 23m = 4
c =
6.Hard
Solve 8x ≡ 4 (mod 30). Give the smallest positive solution x.
8x ≡ 4 (mod 30)
x =
Answer key
- 1. gcd(660, 432) = 12
- 2. 709 mod 7 = 2
- 3. 16−1 mod 55 = 31
- 4. x = 8
- 5. c = 23
- 6. x = 8
Full step-by-step solutions: practise this topic on examproblems.com.