Understanding Cryptography by Christof Paar and Jan Pelzl - Chapter 1 Solutions - Ex1.6

- 1 min

Exercise 1.6

Compute without a calculator:

  1. 1/5 mod 13
  2. 1/5 mod 7
  3. 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 x1 and multiply by it.

1.

1÷5mod131×51mod13where5×51mod131mod13
5×8mod131mod1351mod138mod13
1÷5mod131×8mod138mod13

2.

1÷5mod71×51mod7where5×51mod71mod7
5×3mod71mod751mod73mod7
1÷5mod71×3mod73mod7

3.

3×2÷5mod73×2×51mod7where2×51mod71mod7
5×3mod71mod751mod73mod7
3×2÷5mod73×2×3mod74mod7because3×2×3mod718mod74mod7

Thomas Busby

Thomas Busby

I write about computing stuff

rss facebook twitter github youtube mail spotify instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora