Find the least common multiple lcm(459, 99). Use Euclid’s algorithm for the gcd first.
Number theory & modular arithmetic worksheet with answers
1.Easy
a = 459b = 99
lcm(459, 99) =
2.Easy
Use Euclid’s algorithm to find gcd(258, 192).
a = 258b = 192
gcd(258, 192) =
3.Medium
Find the inverse of 16 modulo 53: the number x with 0 < x < 53 and 16·x ≡ 1 (mod 53).
a = 16n = 53
16−1 mod 53 =
4.Medium
Find the inverse of 43 modulo 50: the number x with 0 < x < 50 and 43·x ≡ 1 (mod 50).
a = 43n = 50
43−1 mod 50 =
5.Hard
Encrypt the message m = 345 with the RSA public key (n, e) = (551, 23). Find the ciphertext c.
n = 551e = 23m = 345
c =
6.Hard
Use repeated squaring to find 2056 mod 61.
a = 20k = 56n = 61
2056 mod 61 =
Answer key
- 1. lcm(459, 99) = 5049
- 2. gcd(258, 192) = 6
- 3. 16−1 mod 53 = 10
- 4. 43−1 mod 50 = 7
- 5. c = 224
- 6. 2056 mod 61 = 20
Full step-by-step solutions: practise this topic on examproblems.com.