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

Show that each of these proposed recursive definitions of a function on the set of positive integers does not produce a well-defined function.

F(n)=1+F(n+1/2)forn1andF(1)=1F(n)=1+F(n2)forn2, andF(1)=0F(n)=1+F(n/3)forn3,F(1)=1,F(2)=2andF(3)=3F(n)=1+F(n/2)ifnis even andn2F(n)=1+F(n2)ifnis odd,F(1)=1F(n)=1+F(F(n1))ifn2andF(1)=2

Short Answer

Expert verified
  1. It is does not produce a well-defined function.
  2. The function is not well-defined.
  3. The function is not well-defined.
  4. is not defined because is not defined.
  5. The function is not well-defined.

Step by step solution

01

Introduction

A recursive function is a function that its value at any point can be calculated from the values of the function at some previous points.

02

(a) Find  F (n) = 1 + F [n + 1 / 2]

Let us consider the following function

F(n)=1+Fn+12forn1andF(1)=1

For n = 1

F(1)=1+F1+12F(1)=1+F(1)F(n)=1+F(1)

But F (1) is undefined

Thus, it is does not produce a well-defined function

03

(b) Find  F (n) = 1 +F (n - 2)

Consider a function

F(n)=1+F(n2)Forn=2F(2)=1+F(2-2)=1+F(0)

So, F (2) is not defined because F (0) is not defined.

Therefore, the function is not well-defined.

04

(c) Find  F (n) = 1 + F (n / 3)

Consider a function

F(n)=1+Fn3forn3andF(1)=1,F(2)=2, andF(3)=3Forn=3F(3)=3+F33=3+F(1)=3+1=4

The existence of value of F (3) is not possible because F (3) = 3 and F (3) = 4

Therefore, the function is not well-defined.

05

(d) Find  F(n) = 1 + F (n/2)

Consider a function

F(n)=1+Fn2ifnis even andn2andF(n)=1+F(n2)ifnis odd andF(1)=1Ifniseven:Forn=2F(2)=1+F22F(n)=1+Fn2=1+F(1)

So, F (2) is not defined because F (1) is not defined.

06

(e) Find  F(n) = 1 + F (n-1)

Consider a function

F(n)=1+F(F(n1))forn2andF(1)=2Forn=2F(2)=1+F(F(21))=1+F(F(1))=1+F(2)(F(1)=2)

It follows that F(2) = 1 + F (2)

This is not defined.

Therefore, the function is not well-defined.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

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

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

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