Use Euclid’s algorithm to find gcd(714, 224).
Number theory & modular arithmetic worksheet with answers
1.Easy
a = 714b = 224
gcd(714, 224) =
2.Easy
Use Euclid’s algorithm to find gcd(468, 372).
a = 468b = 372
gcd(468, 372) =
3.Medium
Solve 75x ≡ 1 (mod 79). Give the solution x with 0 < x < 79.
75x ≡ 1 (mod 79)
x =
4.Medium
Find the inverse of 21 modulo 25: the number x with 0 < x < 25 and 21·x ≡ 1 (mod 25).
a = 21n = 25
21−1 mod 25 =
5.Hard
Encrypt the message m = 21 with the RSA public key (n, e) = (235, 7). Find the ciphertext c.
n = 235e = 7m = 21
c =
6.Hard
An RSA key uses p = 7, q = 31 and e = 13. Decrypt the ciphertext c = 173: find the message m.
p = 7q = 31e = 13c = 173
m =
Answer key
- 1. gcd(714, 224) = 14
- 2. gcd(468, 372) = 12
- 3. x = 59
- 4. 21−1 mod 25 = 6
- 5. c = 131
- 6. m = 40
Full step-by-step solutions: practise this topic on examproblems.com.