Find the least common multiple lcm(585, 465). Use Euclid’s algorithm for the gcd first.
Number theory & modular arithmetic worksheet with answers
1.Easy
a = 585b = 465
lcm(585, 465) =
2.Easy
Find (692·963 + 268) mod 11 without multiplying out the large numbers: reduce first.
n = 11
(692·963 + 268) mod 11 =
3.Medium
Find the inverse of 21 modulo 47: the number x with 0 < x < 47 and 21·x ≡ 1 (mod 47).
a = 21n = 47
21−1 mod 47 =
4.Medium
Find the inverse of 51 modulo 80: the number x with 0 < x < 80 and 51·x ≡ 1 (mod 80).
a = 51n = 80
51−1 mod 80 =
5.Hard
An RSA key uses p = 37, q = 41 and e = 11. Decrypt the ciphertext c = 390: find the message m.
p = 37q = 41e = 11c = 390
m =
6.Hard
Encrypt the message m = 52 with the RSA public key (n, e) = (341, 23). Find the ciphertext c.
n = 341e = 23m = 52
c =
Answer key
- 1. lcm(585, 465) = 18135
- 2. (692·963 + 268) mod 11 = 9
- 3. 21−1 mod 47 = 9
- 4. 51−1 mod 80 = 11
- 5. m = 389
- 6. c = 17
Full step-by-step solutions: practise this topic on examproblems.com.