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

a) Define what it means for a function from the set of positive integers

to the set of positive integers to be one-to-one

b) Define what it means for a function from the set of positive integers to the set

of positive integers to be onto.

c) Give an example of a function from the set of positive integers to the set of

positive integers that is both one-to-one and onto.

d) Give an example of a function from the set of positive integers to the set of

positive integers that is one-to-one but not onto.

e) Give an example of a function from the set of positive integers to the set of

positive integers that is not one-to-one but is onto.

f) Give an example of a function from the set of positive integers to the set of

positive integers that is neither one-to-one nor onto.

Short Answer

Expert verified

a) Function f is one-one iff(a)=f(b) implies that a=bfor all and in the domain.

b) Functionf:AB is onto if for every element there exist an elementaA such thatf(a)=b

c) Required answer is f(n)=n.

d) Required answer is f(n)=2n

e) Required answer isf(n)=n2ifnevenn+12ifnodd

f) Required answer is f(n)=1.

Step by step solution

01

Step 1:Definition of funtion

A functionf:AB has the property that each element of a has been mapped to exactly one element of B.

02

Step 2: One-One function

a) The function f:ABis one to one if and only if f(a)=f(b)implies that a=b for all a and b in the domain.

03

Onto function

b) The function f:ABis onto if and only if for every elementbB there exist an elementaA such thatf(a)=b

Also, function f is onto if range of function is equal to co-domain of function.

04

One-One and onto function

c) We need to find a function from the positive integers to the positive integersf:Z+Z+

such that function is both one –one and onto.

For example,

f(n)=n

is one to one letf(a)=f(b)a=b

Is onto since for all bZ+, there existsaZ+:f(a)=b

05

One-One and but not onto function

(d) We need to find a function f from the set of positive integers to the set of positive integersf:Z+Z+

such that function is one –one but not onto.

For example,

f(n)=2n

f is one to one let f(a)=f(b),by definition of f:2a=2b. Dividing each side of the equation by 2, we get a=b

is not onto: let bz+, then we a=b2is the only value with the propertyf(a)=fb2=2b2=b

However, if b is odd, then a=b2is not a positive integer(aZ+) and thus f is not onto.

06

Not one-one but onto function

e)

We need to find a function f from the set of positive integers to the set of positive integers

f:Z+Z+

such that function is not one –one but onto.

For example,

f(n)=n2ifnevenn+12ifnodd

Thus, the image of and is then, the image of and is , the image of and is , the image of and is , and so on.

is not one to one because n=1,2 have the same image.

is onto since range is equal to co-domain.

07

Neither one-One and onto function

f)

We need to find a function f from the set of positive integers to the set of positive integers such that

f:Z+Z+

And f is neither one-one nor onto.

For example, let

f(n)=1

is not one to one because all positive integers have the same image.

is not onto because all positive integers (except for 1) are not in the range.

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

Study anywhere. Anytime. Across all devices.

Sign-up for free