a. Bzout's identity states that for positive integers a and b, there always exist integers m...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
a. Bézout's identity states that for positive integers a and b, there always exist integers m and n such that am + bn = gcd(a, b). Also, recall that a = b (mod n) means that there exists an integer such that a-b=ln. As you know, this is called modular equivalence or modular congruence. -1 Recall that (if it exists) the multiplicative inverse of p modulo q, is defined to be the unique number p-¹ such that p ¹p 1 (mod q). E i. Apply the definition of modular equivalence and write down what p ¹p 1 (mod g) means. 1 mark. ii. Rearrange what you get and apply Bézout's identity to conclude that if gcd (p, q) = 1 then p¹ exists (modulo q). 2 marks. b. The Division algorithm tells us that, given positive numbers a and b, with a b, there always exist integers q and r, with 0≤r<b such that a = bq + r. (Think of primary school division before you learned about decimals.) Here, q is called the quotient and r is called the remainder. It can be shown that ged(a, b) = ged(b, r). The Euclidean algorithm makes use of this fact to calculate gcd(a, b) by repeatedly replacing the larger number by a remainder (which is always smaller). The algorithm is: i. Set ao = a, bob, j = 0. ii. Use the division algorithm to find q, and r, with 0 <r; <b; such that aj = bjqj + rj iii. If r;> 0 then set aj+1 = bj, bj+1 = r;, increment j ←j +1 and go back to the previous step. iv. Output r;-1 as gcd(a, b). We can keep track of all values in a table. For example, we can calculate ged(27, 16) by: jaj bj qj Tj 0 27 16 1 11 (27=16(1) +11) 1 16 11 1 5 2 11 5 2 1 35 1 5 0 (16=11(1) + 5) (11= 5(2) + 1) (5= 1(5) + 0) and we find ged(27, 16) - ged(5, 1) - 1 on the last row, which is also always going to be equal to the second last value of r; (here r2- 1) before the termination condition is reached. The final value of j is 3. The final column is included for illustration and is not necessary. Use the Euclidean algorithm to calculate ged(31, 19). Organise your work in a table as in the example above. 2 marks. a. Bézout's identity states that for positive integers a and b, there always exist integers m and n such that am + bn = gcd(a, b). Also, recall that a = b (mod n) means that there exists an integer such that a-b=ln. As you know, this is called modular equivalence or modular congruence. -1 Recall that (if it exists) the multiplicative inverse of p modulo q, is defined to be the unique number p-¹ such that p ¹p 1 (mod q). E i. Apply the definition of modular equivalence and write down what p ¹p 1 (mod g) means. 1 mark. ii. Rearrange what you get and apply Bézout's identity to conclude that if gcd (p, q) = 1 then p¹ exists (modulo q). 2 marks. b. The Division algorithm tells us that, given positive numbers a and b, with a b, there always exist integers q and r, with 0≤r<b such that a = bq + r. (Think of primary school division before you learned about decimals.) Here, q is called the quotient and r is called the remainder. It can be shown that ged(a, b) = ged(b, r). The Euclidean algorithm makes use of this fact to calculate gcd(a, b) by repeatedly replacing the larger number by a remainder (which is always smaller). The algorithm is: i. Set ao = a, bob, j = 0. ii. Use the division algorithm to find q, and r, with 0 <r; <b; such that aj = bjqj + rj iii. If r;> 0 then set aj+1 = bj, bj+1 = r;, increment j ←j +1 and go back to the previous step. iv. Output r;-1 as gcd(a, b). We can keep track of all values in a table. For example, we can calculate ged(27, 16) by: jaj bj qj Tj 0 27 16 1 11 (27=16(1) +11) 1 16 11 1 5 2 11 5 2 1 35 1 5 0 (16=11(1) + 5) (11= 5(2) + 1) (5= 1(5) + 0) and we find ged(27, 16) - ged(5, 1) - 1 on the last row, which is also always going to be equal to the second last value of r; (here r2- 1) before the termination condition is reached. The final value of j is 3. The final column is included for illustration and is not necessary. Use the Euclidean algorithm to calculate ged(31, 19). Organise your work in a table as in the example above. 2 marks.
Expert Answer:
Answer rating: 100% (QA)
i p p 1 mod q means that there exists an integer k such that p p 1 kq ii Rearranging the equation gi... View the full answer
Related Book For
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi
Posted Date:
Students also viewed these mathematics questions
-
The multiplicative inverse of a complex number z is a complex number zm such that z ( zm = 1. Find the multiplicative inverse of each complex number? (a) z = 1 + i (b) z = 3 i (c) z = 2 + 8i
-
Prove that for positive integers n 1,
-
Prove the statement for positive integers n and r, with r n. P(n, n - 1) = P(n, n)
-
Write a method: that displays the prompt string, reads an integer, and tests whether it is between the minimum and maxi mum. If not, print an error message and repeat reading the input. Add the...
-
Identify and distinguish between the three types of IT systems used in the sales process.
-
How is lean accounting different from traditional costing systems?
-
Define refrigeration and refrigeration effect.
-
Suppose a Corse store in Kansas City, Missouri, ended May 2012 with 700,000 units of merchandise that cost an average of $6 each. Suppose the store then sold 650,000 units for $8,450,000 during June....
-
Find a general solution to the given Cauchy-Euler equation for t> 0. at dy +21-6y=0 dt- The general solution is y(t) = .
-
Angus Walker, CFA, is reviewing the defined benefit pension plan of Acme Industries. Based in London, Acme has operations in North America, Japan, and several European countries. Next month, the...
-
Jerry and Elaine called you one day and booked an appointment to review their retirement plan and investment portfolio. They heard about you through one of their friends who is one of your better...
-
If a 200 keV photon hits an electron at the K-edge and it is absorbed by the photoelectric effect, what is the relativistic momentum and velocity of the electron?
-
A child places a spring of negligible mass between two toy cars of masses 112 g and 154 g. She compresses the spring and ties the cars together with a piece of string. When she cuts the string, the...
-
Many of you may not know of the McDonald's hot coffee lawsuit*, but ask your parents or grandparents and they may. Before researching this case for yourself, find one person (friend, family,...
-
An ordinary annuity pays $55,000 per year for 29 years. If the first payment is not received until 30 years from today, what is the present value of the annuity? Assume a discount rate of 9%.
-
A conducting rod is moving on a conducting frame. There is a uniform magnetic field as shown in the figure. 13. What is the magnetic flux a through the area formed by the frame and the rod at the...
-
The problem of poor listening is nothing new. In his play King Henry IV, Part II, Shakespeare refers to "the disease of not listening." Stephen Covey said, "Most people do not listen with the intent...
-
Independent random samples of sizes n1 = 30 and n2 = 50 are taken from two normal populations having the means 1 = 78 and 2 = 75 and the variances 21 = 150 and 22 = 200. Use the results of Exercise...
-
Determine the value of each of the following summations (a) (b) (c) (d) where n is an odd positive integer (e) 202 + 1) 2n k (-1).
-
Let f: Z N be defined by (a) Prove that f is one-to-one and onto. (b) Determine f-l. fu)-2-1,i o x > ,ifr 0 2.x forx s 0
-
Let a, b, c B, a Boolean algebra. Prove that ab + c = a(b + c) if and only if c a.
-
The weights (in pounds) for a sample of adults before starting a weight-loss study are listed. What is the mean weight of the adults? 274 235 223 268 290 285 235
-
In Example 2, the adult weighing 285 pounds decides to not participate in the study. What is the median weight of the remaining adults? Data from Example 2 Find the median of the weights listed in...
-
Find the median of the weights listed in Example 1. Data from Example 1 The weights (in pounds) for a sample of adults before starting a weight-loss study are listed. What is the mean weight of the...
Study smarter with the SolutionInn App