Use Euclid’s algorithm to find gcd(494, 299).
Number theory & modular arithmetic worksheet with answers
1.Easy
a = 494b = 299
gcd(494, 299) =
2.Easy
Use Euclid’s algorithm to find gcd(92, 58).
a = 92b = 58
gcd(92, 58) =
3.Medium
Find Euler’s totient φ(1805), the number of integers from 1 to 1805 that are coprime to 1805.
n = 1805 = 5·192
φ(1805) =
4.Medium
Solve 6x ≡ 9 (mod 11). Give the solution x with 0 < x < 11.
6x ≡ 9 (mod 11)
x =
5.Hard
43 is prime. Use Fermat’s little theorem to find 246901 mod 43.
p = 43k = 46901
246901 mod 43 =
6.Hard
Solve 21x ≡ 18 (mod 33). Give the smallest positive solution x.
21x ≡ 18 (mod 33)
x =
Answer key
- 1. gcd(494, 299) = 13
- 2. gcd(92, 58) = 2
- 3. φ(1805) = 1368
- 4. x = 7
- 5. 246901 mod 43 = 2
- 6. x = 4
Full step-by-step solutions: practise this topic on examproblems.com.