Understanding Cryptography by Christof Paar and Jan Pelzl - Chapter 1 Solutions - Ex1.6
- 1 min- Return to index
- Exercise 1.1
- Exercise 1.2
- Exercise 1.3
- Exercise 1.4
- Exercise 1.5
- Exercise 1.6
- Exercise 1.7
- Exercise 1.8
- Exercise 1.9
- Exercise 1.10
- Exercise 1.11
- Exercise 1.12
- Exercise 1.13
- Exercise 1.14
Exercise 1.6
Compute without a calculator:
- 1/5 mod 13
- 1/5 mod 7
- 3 · 2/5 mod 7
Solution
I haven’t yet verified this solution independently. If you spot any mistakes, please leave a comment in the Disqus box at the bottom of the page.
In order to perform a division by x, we must find the multiplicative inverse x−1 and multiply by it.
1.
1÷5mod13≡1×5−1mod13where5×5−1mod13≡1mod13 5×8mod13≡1mod135−1mod13≡8mod13
1÷5mod13≡1×8mod13≡8mod13
2.
1÷5mod7≡1×5−1mod7where5×5−1mod7≡1mod7 5×3mod7≡1mod75−1mod7≡3mod7
1÷5mod7≡1×3mod7≡3mod7
3.
3×2÷5mod7≡3×2×5−1mod7where2×5−1mod7≡1mod7 5×3mod7≡1mod75−1mod7≡3mod7
3×2÷5mod7≡3×2×3mod7≡4mod7because3×2×3mod7≡18mod7≡4mod7