Chapter 5: Q12RE (page 378)
Describe a recursive algorithm for computing the greatest
common divisor of two positive integers.
Short Answer
The recursive algorithm to find the greatest common divisor of two positive integers is described.
Chapter 5: Q12RE (page 378)
Describe a recursive algorithm for computing the greatest
common divisor of two positive integers.
The recursive algorithm to find the greatest common divisor of two positive integers is described.
All the tools & learning materials you need for study success - in one app.
Get started for freeUse strong induction to show that all dominoes fall in an infinite arrangement of dominoes if you know that the first three dominoes fall, and that when a domino falls, the domino three farther down in the arrangement also falls.
For which nonnegative integerโs n is Prove your answer.
The well-ordering property can be used to show that there is a unique greatest common divisor of two positive integers. Let a and be positive integers, and let S be the set of positive integers of the form , where s and t are integers.
a) Show that s is nonempty.
b) Use the well-ordering property to show that s has a smallest element .
c) Show that if d is a common divisor of a and b, then d is a divisor of c.
d) Show that c I a and c I b. [Hint: First, assume that . Then , where . Show that , contradicting the choice of c.]
e) Conclude from (c) and (d) that the greatest common divisor of a and b exists. Finish the proof by showing that this greatest common divisor is unique.
Prove that divisible by 8 whenever n is an odd positive integer.
(a) Find the formula for by examining the values of this expression for small values of n.
(b) Prove the formula you conjectured in part (a).
What do you think about this solution?
We value your feedback to improve our textbook solutions.