All mock tests are FREE till 31 December — register to save your progress

Using a^(2c) mod n = (a^c)² mod n and a^(2c+1) mod n = a·(a^c)² mod n, for a = 7, b = 17 and n = 561, what is a^b mod n?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. 160

Explanation

7² = 49; 7⁴ = 2401 ≡ 157; 7⁸ = 157² ≡ 526; 7¹⁶ = 526² ≡ 103; 7¹⁷ = 7 × 103 = 721 ≡ 160 (mod 561).

More Discrete Structures and Optimization questions