Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Describe a recursive algorithm for writing the greatest common divisor of \(n\) positive integers as a linear combination of these integers.

Short Answer

Expert verified

Thus, \({r_n}\) is the greatest common divisor of \(a\;{\rm{and}}\;b\).

Step by step solution

Achieve better grades quicker with Premium

  • Unlimited AI interaction
  • Study offline
  • Say goodbye to ads
  • Export flashcards

Over 22 million students worldwide already upgrade their learning with Vaia!

01

Define Greater common divisor.

Consider \(a\;{\rm{and}}\;b\) are integers. Assume \(a,b\) are positive, since Greatest Common Divisor of \(a,b\) is \(GCD\left( {a,b} \right) = GCD\left( { \pm a, \pm b} \right)\). The Euclidean algorithm uses the division algorithm to produce a sequence of quotients and remainders as follows:

\(\begin{aligned}{l}a = b{q_1} + {r_1}\\b &= {r_1}{q_2} + {r_2}\\{r_1} &= {r_2}{q_3} + {r_3}\\....\\{r_{n - 2}} &= {r_{n - 1}}{q_n} + {r_n}\\{r_{n - 1}} &= {r_n}{q_{n + 1}} + 0\end{aligned}\)

Where \({r_n}\) is the last nonzero remainder. The second principle of mathematical induction to prove that \({r_k}\) is a linear combination of \(a\;{\rm{and}}\;b\) for \(1 \le k \le n\).

02

Apply mathematical induction.

1 Basis step \(\left( {k = 1} \right)\).

\(\begin{aligned}{c}{r_1} &= a - b{q_1}\\ &= a\left( 1 \right) + b\left( { - {q_1}} \right)\end{aligned}\)

2 Induction step. Suppose \({r_1}\) is a linear combination of \(a\;{\rm{and}}\;b\) for \(1 \le i \le k\). For \(1 \le k \le n\) it gives,

\({r_{k + 1}} = {r_{k - 1}} - {r_k}{q_{k + 1}}\)

By the inductive hypothesis \({r_{k + 1}}\) and \({r_k}\) are linear combination of \(a\;{\rm{and}}\;b\).

Thus, write as follows:

\({r_k} = a{s_1} + b{t_1}\)and \({r_k} = a{s_2} + b{t_2}\)

For integers \({s_1}\),\({t_1}\),\({s_2}\),\({t_2}\) and substitute into equation above:

\(\begin{aligned}{c}{r_{k + 1}} &= \left( {a{s_1} + b{t_1}} \right) - \left( {a{s_2} + b{t_2}} \right){q_{k + 1}}\\ &= a\left( {{s_1} - {s_2}{q_{k + 1}}} \right) + b\left( {{t_1} - {t_2}{q_{k + 1}}} \right)\end{aligned}\)

Thus, \({r_{k + 1}}\) is a linear combination of \(a\;{\rm{and}}\;b\). By second principle of mathematical induction, \({r_n}\) is a linear combination of \(a\;{\rm{and}}\;b\). But \({r_n}\) is the greatest common divisor of \(a\;{\rm{and}}\;b\).

Therefore, \({r_n}\) is the greatest common divisor of \(a\;{\rm{and}}\;b\).

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Let P (n)be the statement that 12+22+...+n2=n(n+1)(2n+1)/6 for the positive integer n .

a) What is the statement P (1) ?

b) Show that P (1) is true, completing the basic step of

the proof.

c) What is the inductive hypothesis?

d) What do you need to prove in the inductive step?

e) Complete the inductive step, identifying where you

use the inductive hypothesis.

f) Explain why these steps show that this formula is true whenever nis a positive integer.

(a) Determine which amounts of postage can be formed using just 4-cent and 11-cent stamps.

(b) Prove your answer to (a) using the principle of mathematical induction. Be sure to state explicitly your inductive hypothesis in the inductive step.

(c) Prove your answer to (a) using strong induction. How does the inductive hypothesis in this proof differ from that in the inductive hypothesis for a proof using mathematical induction?

Give a recursive algorithm for finding the sum of the first n positive integers.

Show that the well-ordering property can be proved when the principle of mathematical induction is taken as an axiom.

In the proof of Lemma 1 we mentioned that many incorrect methods for finding a vertex such that the line segment is an interior diagonal of have been published. This exercise presents some of the incorrect ways has been chosen in these proofs. Show, by considering one of the polygons drawn here, that for each of these choices of , the line segment is not necessarily an interior diagonal of .

a) p is the vertex of P such that the angleโˆ abpis smallest.

b) p is the vertex of P with the least -coordinate (other than ).

c) p is the vertex of P that is closest to .

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free