Find the least common multiple lcm(531, 495). Use Euclid’s algorithm for the gcd first.
Number theory & modular arithmetic worksheet with answers
1.Easy
a = 531b = 495
lcm(531, 495) =
2.Easy
Find 406² mod 12 without multiplying out the large numbers: reduce first.
n = 12
406² mod 12 =
3.Medium
Solve 32x ≡ 44 (mod 53). Give the solution x with 0 < x < 53.
32x ≡ 44 (mod 53)
x =
4.Medium
Find Euler’s totient φ(45), the number of integers from 1 to 45 that are coprime to 45.
n = 45 = 32·5
φ(45) =
5.Hard
Encrypt the message m = 297 with the RSA public key (n, e) = (1363, 3). Find the ciphertext c.
n = 1363e = 3m = 297
c =
6.Hard
An RSA key uses p = 13, q = 31 and e = 17. Decrypt the ciphertext c = 283: find the message m.
p = 13q = 31e = 17c = 283
m =
Answer key
- 1. lcm(531, 495) = 29205
- 2. 406² mod 12 = 4
- 3. x = 8
- 4. φ(45) = 24
- 5. c = 1213
- 6. m = 95
Full step-by-step solutions: practise this topic on examproblems.com.