Find the least common multiple lcm(1176, 483). Use Euclid’s algorithm for the gcd first.
Number theory & modular arithmetic worksheet with answers
1.Easy
a = 1176b = 483
lcm(1176, 483) =
2.Easy
Find 586 mod 3, the remainder r with 0 ≤ r < 3.
a = 586n = 3
586 mod 3 =
3.Medium
Find the inverse of 12 modulo 17: the number x with 0 < x < 17 and 12·x ≡ 1 (mod 17).
a = 12n = 17
12−1 mod 17 =
4.Medium
Solve 16x ≡ 11 (mod 35). Give the solution x with 0 < x < 35.
16x ≡ 11 (mod 35)
x =
5.Hard
47 is prime. Use Fermat’s little theorem to find 81599 mod 47.
p = 47k = 1599
81599 mod 47 =
6.Hard
An RSA key uses p = 7, q = 37 and e = 19. Decrypt the ciphertext c = 32: find the message m.
p = 7q = 37e = 19c = 32
m =
Answer key
- 1. lcm(1176, 483) = 27048
- 2. 586 mod 3 = 1
- 3. 12−1 mod 17 = 10
- 4. x = 16
- 5. 81599 mod 47 = 14
- 6. m = 116
Full step-by-step solutions: practise this topic on examproblems.com.