Find 652 mod 9, the remainder r with 0 ≤ r < 9.
Number theory & modular arithmetic worksheet with answers
1.Easy
a = 652n = 9
652 mod 9 =
2.Easy
Use Euclid’s algorithm to find gcd(432, 200).
a = 432b = 200
gcd(432, 200) =
3.Medium
Find Euler’s totient φ(1331), the number of integers from 1 to 1331 that are coprime to 1331.
n = 1331 = 113
φ(1331) =
4.Medium
Solve 46x ≡ 56 (mod 59). Give the solution x with 0 < x < 59.
46x ≡ 56 (mod 59)
x =
5.Hard
An RSA key uses p = 17, q = 23 and e = 17. Decrypt the ciphertext c = 120: find the message m.
p = 17q = 23e = 17c = 120
m =
6.Hard
Use repeated squaring to find 24173 mod 97.
a = 24k = 173n = 97
24173 mod 97 =
Answer key
- 1. 652 mod 9 = 4
- 2. gcd(432, 200) = 8
- 3. φ(1331) = 1210
- 4. x = 32
- 5. m = 205
- 6. 24173 mod 97 = 88
Full step-by-step solutions: practise this topic on examproblems.com.