Use Euclid’s algorithm to find gcd(1416, 912).
Number theory & modular arithmetic worksheet with answers
1.Easy
a = 1416b = 912
gcd(1416, 912) =
2.Easy
Find 298 mod 5, the remainder r with 0 ≤ r < 5.
a = 298n = 5
298 mod 5 =
3.Medium
Find the smallest positive integer x with x ≡ 5 (mod 8) and x ≡ 0 (mod 11).
x ≡ 5 (mod 8)x ≡ 0 (mod 11)
x =
4.Medium
Find the smallest positive integer x with x ≡ 6 (mod 7) and x ≡ 0 (mod 9).
x ≡ 6 (mod 7)x ≡ 0 (mod 9)
x =
5.Hard
Solve 14x ≡ 12 (mod 34). Give the smallest positive solution x.
14x ≡ 12 (mod 34)
x =
6.Hard
An RSA key uses p = 13, q = 31 and e = 11. Decrypt the ciphertext c = 107: find the message m.
p = 13q = 31e = 11c = 107
m =
Answer key
- 1. gcd(1416, 912) = 24
- 2. 298 mod 5 = 3
- 3. x = 77
- 4. x = 27
- 5. x = 13
- 6. m = 9
Full step-by-step solutions: practise this topic on examproblems.com.