Discrete StructureTU Board 2082
Define well ordering property. Find the multiplicative inverse of 7 modulo 19 using Extended Euclidean Algorithm.
5Answer
Well-ordering property: every non-empty set of non-negative integers has a least element. It is the basis of proofs by mathematical induction and of the division algorithm.
Inverse of 7 modulo 19
We want x such that 7x ≡ 1 (mod 19). Because gcd(7, 19) = 1, the inverse exists.
Euclidean algorithm
- 19 = 2 × 7 + 5
- 7 = 1 × 5 + 2
- 5 = 2 × 2 + 1
- 2 = 2 × 1 + 0, so gcd = 1
Work backwards (extended Euclidean algorithm)
- 1 = 5 − 2 × 2
- = 5 − 2 × (7 − 1 × 5) = 3 × 5 − 2 × 7
- = 3 × (19 − 2 × 7) − 2 × 7 = 3 × 19 − 8 × 7
So −8 × 7 ≡ 1 (mod 19), and the inverse is −8 ≡ −8 + 19 = 11.
Check: 7 × 11 = 77 = 4 × 19 + 1, so 77 ≡ 1 (mod 19). ✓
Discussion
Loading…
More Discrete Structure questions
State inclusion exclusion principle. For which number x is true that x = x ?Let f and g be functions from 1, 2, 3, 4 to a, b, c, d, and from a, b, c, d to 1,…TU Board 208210How many ways are there to assign 24 students to five faculty advisors? 0.5cm Find the solution of the recurrence relation a n = 3a n 1 – 3a n 2 + a n 3 if a…TU Board 208210Define an Euler circuit and Euler path in an undirected graph. Compute the maximal flow from the following network flow. [figure in the original paper]TU Board 208210Explain how the pigeonhole principle can be used to show that among any 11 integers, at least two must have the same last digit. Find a minimum spanning tree…TU Board 20825Find the solution to the system of congruences x 1 \ (mod\ 4), x 2 \ (mod\ 5), x 3 \ (mod\ 7). using the Chinese Remainder Theorem.TU Board 20825Suppose that on an island there are three types of people, knights, knaves, and normals. Knights always tell the truth, knaves always lie, and normals…TU Board 20825