Exercise 8.6

(a)
Show that there is no function h : + + satisfying the formula h(1) = 3, h(i) = [h(i 1) 1]12 for i > 1.

Explain why this example does not violate the principle of recursive definition.

(b)
Consider the recursion formula h(1) = 3, h(i) = { [h(i 1) 1]12if h(i 1) > 1 5 if h(i 1) 1

   for i > 1.

Show that there exists a unique function h : + + satisfying this formula.

Answers

(a)

Proof. Suppose to the contrary that there is such a function h. Then clearly h(1) = 3 and h(2) = h(1) 1 = 3 1 = 2. Now, since 1 < 2 < 4, we clearly have 1 < 2 < 4 = 2. Thus 0 < 2 1 < 1 so that h(3) = h(2) 1 = 2 1 is defined. However, we also have that 0 < h(3) = 2 1 < 1 since 0 < 2 1 < 1, and hence h(3) 1 < 0. We then have that

h(4) = h(3) 1 [h(4)]2 = h(3) 1 < 0,

which is of course impossible since a square is always non-negative. This contradiction shows that such a function h cannot exist. □

Note that this does not ostensibly violate the principle of recursive definition since h(n) is defined only in terms of values of h less than n for n > 1. However, were one to try to show the existence of h rigorously using the principle, one would find that the required function ρ would not be well-defined.

(b)

Proof. First, for any function f : {1,,m} +, define

ρ(f) = { [f(m) 1]12f(m) > 1 5 f(m) 1.

Consider any m + and any function f : {1,,m} +. If f(m) > 1 then clearly f(m) 1 > 0 so that ρ(f) = [f(m) 1]12 is defined and positive. If f(m) 1 then clearly ρ(f) = 5 is also defined and positive. Since m and f were arbitrary, this shows that ρ is a well-defined function with range +.

It then follows from the principle of recursive definition (Theorem 8.4) that there is a unique function h : + + such that

h(1) = 3, h(n) = ρ(h {1,,n 1}) for n > 1.

To see that this h satisfies the recursion formula, clearly h(1) = 3, and, for i > 1, we have

h(i) = ρ(h {1,,i 1}) = { [h(i 1) 1]12h(i 1) > 1 5 h(i 1) 1

as desired.

To show that this function is unique, suppose that g and h both satisfy the recursive formula. We show by induction that g(n) = h(n) for all n + so that clearly g = h. First, obviously g(1) = 3 = h(1). Now suppose that g(n) = h(n) for n + so that n + 1 > 1. Then, if g(n) = h(n) > 1 then we have g(n + 1) = [g(n) 1]12 = [h(n) 1]12 = h(n + 1) since g(n) = h(n) and the roots are taken to be positive. Similarly, if g(n) = h(n) 1, then g(n + 1) = 5 = h(n + 1). Thus in either case g(n + 1) = h(n + 1), which completes the induction. □

User profile picture
2019-12-01 00:00
Comments