Find the least common multiple lcm(627, 286). Use Euclid’s algorithm for the gcd first.
Number theory & modular arithmetic worksheet with answers
1.Easy
a = 627b = 286
lcm(627, 286) =
2.Easy
Use Euclid’s algorithm to find gcd(468, 279).
a = 468b = 279
gcd(468, 279) =
3.Medium
Find the inverse of 22 modulo 59: the number x with 0 < x < 59 and 22·x ≡ 1 (mod 59).
a = 22n = 59
22−1 mod 59 =
4.Medium
Solve 35x ≡ 3 (mod 67). Give the solution x with 0 < x < 67.
35x ≡ 3 (mod 67)
x =
5.Hard
An RSA key uses p = 37, q = 43 and e = 17. Decrypt the ciphertext c = 1432: find the message m.
p = 37q = 43e = 17c = 1432
m =
6.Hard
An RSA key uses p = 5, q = 37 and e = 7. Decrypt the ciphertext c = 138: find the message m.
p = 5q = 37e = 7c = 138
m =
Answer key
- 1. lcm(627, 286) = 16302
- 2. gcd(468, 279) = 9
- 3. 22−1 mod 59 = 51
- 4. x = 2
- 5. m = 676
- 6. m = 27
Full step-by-step solutions: practise this topic on examproblems.com.