Find (207·352 + 346) mod 12 without multiplying out the large numbers: reduce first.
Number theory & modular arithmetic worksheet with answers
1.Easy
n = 12
(207·352 + 346) mod 12 =
2.Easy
Find (121·930 + 474) mod 13 without multiplying out the large numbers: reduce first.
n = 13
(121·930 + 474) mod 13 =
3.Medium
Find the inverse of 62 modulo 85: the number x with 0 < x < 85 and 62·x ≡ 1 (mod 85).
a = 62n = 85
62−1 mod 85 =
4.Medium
Solve 5x ≡ 8 (mod 17). Give the solution x with 0 < x < 17.
5x ≡ 8 (mod 17)
x =
5.Hard
An RSA key uses p = 19, q = 47 and e = 13. Decrypt the ciphertext c = 387: find the message m.
p = 19q = 47e = 13c = 387
m =
6.Hard
An RSA key uses p = 31, q = 41 and e = 11. Decrypt the ciphertext c = 147: find the message m.
p = 31q = 41e = 11c = 147
m =
Answer key
- 1. (207·352 + 346) mod 12 = 10
- 2. (121·930 + 474) mod 13 = 8
- 3. 62−1 mod 85 = 48
- 4. x = 5
- 5. m = 843
- 6. m = 891
Full step-by-step solutions: practise this topic on examproblems.com.