Discrete Mathematics and Its Applications, Seventh Edition

Published by McGraw-Hill Education
ISBN 10: 0073383090
ISBN 13: 978-0-07338-309-5

Chapter 5 - Section 5.3 - Recursive Definitions and Structural Induction - Exercises - Page 360: 59

Answer

Showing that each of these proposed recursive definitions of a function on the set of positive integers does not produce a well-defined function. a) F(n) = 1 + F((n + 1)/2) for n ≥ 1 and F(1) = 1. b) F(n) = 1 + F(n − 2) for n ≥ 2 and F(1) = 0. c) F(n) = 1 + F(n/3) for n ≥ 3, F(1) = 1, F(2) = 2,and F(3) = 3. d) F(n) = 1 + F(n/2) if n is even and n ≥ 2, F(n) = 1 + F(n − 2) if n is odd, and F(1) = 1. e) F(n) = 1 + F(F(n − 1)) if n ≥ 2 and F(1) = 2.

Work Step by Step

a) The value of F(1) is ambiguous. - b) F(2) is not defined because F(0) is not defined. c) F(3) is ambiguous and F(4) is not defined because F(4 3 ) makes no sense. - d) The definition of F(1) is ambiguous because both the second and third clause seem to apply. - e) F(2) cannot be computed because trying to compute F(2) gives F(2) = 1 + F(F(1)) = 1 + F(2).
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.