Chapter 5: Q14E (page 330)
Prove that for every positive integer n,
Chapter 5: Q14E (page 330)
Prove that for every positive integer n,
All the tools & learning materials you need for study success - in one app.
Get started for freeTrace Algorithm 1 when it is given n = 6 as input. That is, show all steps used by Algorithm 1 to find 6!, as is done in Example 1 to find 4!.
Let P(n) be the statement that , where n is an integer greater than 1.
Let P (n) be the statement that a postage of n cents can be formed using just 3-cent stamps and 5-cent stamps. The parts of this exercise outline a strong induction proof that P (n) is true for n ≥ 8.
a) Show that the statements P (8), P (9), and P (10) are true, completing the basis step of the proof.
b) What is the inductive hypothesis of the proof?
c) What do you need to prove in the inductive step?
d) Complete the inductive step for k ≥ 10.
e) Explain why these steps show that this statement is true whenever n ≥ 8.
How many additions are used by the recursive and iterative algorithms given in Algorithm 7 and 8, respectively, to find the Fibonacci number ?
Give a recursive algorithm for finding the sum of the first n odd positive integers.
What do you think about this solution?
We value your feedback to improve our textbook solutions.