Question

In: Computer Science

Show that he gcd of 63 and 40 is 1 and find all integer solutions: 63s...

Show that he gcd of 63 and 40 is 1 and find all integer solutions: 63s + 40t = 1. Use the Euclidean algorithm to find the gcd. Then back solve to find s and t.

To get full credit, use the format shown in the post below titled Bezout's Theorem. (See the example where we find the gcd of 18 and 5.)

Bézout's theorem says

"If  d is the gcd of m and n then we can find integers s and t such that ms + nt = d."

To find s and t we first compute d using the Euclidean algorithm. Then we can backsolve to express d in terms of m and n.

Example: Find all integer solutions to 18s + 5t = 1. (So 18 is m, 5 in n and 1 is d in Bézout's Theorem.)

18 =3(5) + 3

5 = 1(3) + 2

3 = 1(2) + 1.

2 = 2(1) + 0.

Since 1 is the last nonzero remainder, it's the gcd of 18 and 5.

Now we can back solve to find a linear combination of 18 and 5 that equals 1:

1 = 3 - 2

= 3 - (5 - 3)

= -5 + 2(3)

= -5 + 2(18 - 3(5))

= 2(18) - 7(5).

In this example 18 and 5 are m and n. So s = 2 and t = -7.

Call the initial two solutions s0 and t0.

To get all solutions use s = s0 + (n/d)k and t = t0 - (m/d)k.

In the example above we get s = 2 + 5k and t = -7 - 18k.

For example, taking k = -1 gives s = -3 and t = 11. We can check that these values work: -3(18) + 11(5) = -54 + 55 = 1.

Or taking k = 2, gives s = 12 and t = -43. Again we can check that the values work: 12(18) - 43(5) = 216 - 215 = 1.

Solutions

Expert Solution

Show that he gcd of 63 and 40 is 1 and find all integer solutions: 63s + 40t = 1.

Comparing the given equation with ms + nt = d , we get  63 is m, 40 is n and 1 is d (Bézout's Theorem)

63 =1(40) + 23

40 = 1(23) + 17

23 = 1(17) + 6

17 = 2(6) + 5

6 = 1(5) + 1

5 = 5(1) + 0

Since 1 is the last nonzero remainder, it's the gcd of 63 and 40.

Now we can back solve to find a linear combination of 63 and 40 that equals 1:

1 = 6 - 5

= 6 - [ 17 - 2(6) ]

= -17 + 3 (6)

= -17 + 3 [ 23 - 17 ]

= - 4(17) + 3 (23)

= -4 [ 40-23 ] + 3 (23)

= -4(40) +7(23)

= -4(40) +7[ 63 - 40 ]

= -11(40) + 7(63)

In this example 63 and 40 are m and n. So s = 7 and t = -11.

Call the initial two solutions s0 and t0.

To get all solutions use s = s0 + (n/d)k and t = t0 - (m/d)k.

In the example above we get s = 7 + 40k and t = -11 - 63k.

For example, taking k = 1 gives s = 47 and t = -74. We can check that these values work: 47(63) - 74(40) = 2961 - 2960 = 1.

Or taking k = 3, gives s = 127 and t = -200. Again we can check that the values work: 127(63) - 200(40) = 8001 - 8000 = 1.


Related Solutions

Write a Diophantine Equation program in C++. Find integer solutions to Ax + By = GCD...
Write a Diophantine Equation program in C++. Find integer solutions to Ax + By = GCD (A, B) Ex: a = 3, b = 6, c = 9 a = 2, b = 5 , c = 1
Find all integer solutions to the equation: a) 105x + 83y = 1 b) 105x +...
Find all integer solutions to the equation: a) 105x + 83y = 1 b) 105x + 83y = 8
All necessary steps much show for these problems, please. Use the Euclidean algorithm to find gcd(12345,...
All necessary steps much show for these problems, please. Use the Euclidean algorithm to find gcd(12345, 54321). Write gcd(2420, 70) as a linear combination of 2420 and 70. The work to obtain the gcd is provided. 2420 = 34(70) + 40 70 = 1(40) + 30 40 = 1(30) + 10 30 = 3(10) + 0 Determine if 1177 is prime or not. If it is not, then write 1177 as a product of primes Find gcd(8370, 465) by unique...
Find the general form of all (integer) solutions for the equation 22x+48y+4z = 18.
Find the general form of all (integer) solutions for the equation 22x+48y+4z = 18.
63, 40, 40, 39, 56, 45, 48, and 76 a. Find the sample mean b. Find...
63, 40, 40, 39, 56, 45, 48, and 76 a. Find the sample mean b. Find the sample median c. Find the sample mode d. Find the sample range e. Find the lower and upper quarrtiles, and the sample interquartile range IQR Q1= Q3= IQR= f. Display the data with a boxplot (with fences and whiskers) Fences: g. Write a brief description of this data (symmetry, outliers) h. Which is the better summary measure of these data, the mean or...
For an integer k, define f(k) = gcd(11k + 1, 7k + 3). (a) Compute R...
For an integer k, define f(k) = gcd(11k + 1, 7k + 3). (a) Compute R = {f(k): k ∈ Z}. (b) For each n ∈ R, find a set Dn such that, for every integer k, f(k) = n if and only if k ∈ Dn. Is there any solution without using the 'mod' for b?
Find two integer pairs of the form (x,y) with |x|<1000 such that 22x+28y=gcd(22,28) (x1,y1)=( (x2,y2)=(
Find two integer pairs of the form (x,y) with |x|<1000 such that 22x+28y=gcd(22,28) (x1,y1)=( (x2,y2)=(
Find two solutions for the following equations: (i) 2x+3y=12 (ii) 7x+9y=63
Find two solutions for the following equations: (i) 2x+3y=12 (ii) 7x+9y=63
1. Must be nicely written up AS A PROOF. a. Show that gcd(m + n, m)...
1. Must be nicely written up AS A PROOF. a. Show that gcd(m + n, m) = gcd(m, n). b. If n | k(n + 1), show that n | k. c. Show that any two consecutive odd integers are relatively prime.
a. Using the Euclidean Algorithm and Extended Euclidean Algorithm, show that gcd(99; 5) = 1 and...
a. Using the Euclidean Algorithm and Extended Euclidean Algorithm, show that gcd(99; 5) = 1 and find integers s1 and t1 such that 5s1 + 99t1 = 1. [Hint: You should find that 5(20) + 99(?1) = 1] b. Solve the congruence 5x 17 (mod 99) c. Using the Chinese Remainder Theorem, solve the congruence x 3 (mod 5) x 42 (mod 99) d. Using the Chinese Remainder Theorem, solve the congruence x 3 (mod 5) x 6 (mod 9)...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT