• :00Days
  • :00Hours
  • :00Mins
  • 00Seconds
A new era for learning is coming soonSign up for free
Log In Start studying!

Select your language

Suggested languages for you:
Answers without the blur. Sign up and see all textbooks for free! Illustration

Q9RE

Expert-verified
Discrete Mathematics and its Applications
Found in: Page 187
Discrete Mathematics and its Applications

Discrete Mathematics and its Applications

Book edition 7th
Author(s) Kenneth H. Rosen
Pages 808 pages
ISBN 9780073383095

Answers without the blur.

Just sign up for free and you're in.

Illustration

Short Answer

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.

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

b) Function f:AB is onto if for every element there exist an element aA such that f(a)=b

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

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

e) Required answer is f(n)=n2 if n even n+12 if n odd

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

See the step by step solution

Step by Step Solution

Step 1:Definition of funtion

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

Step 2: One-One function

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

Step 3: Onto function

b) The function f:AB is onto if and only if for every element bB there exist an element aA such that f(a)=b

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

Step 4: One-One and onto function

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

such that function is both one –one and onto.

For example,

f(n)=n

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

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

Step 5: 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 integers f: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=b2 is the only value with the propertyf(a)=fb2=2b2=b

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

Step 6: 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)=n2 if n even n+12 if n odd

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.

Step 7: 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.

Recommended explanations on Math Textbooks

94% of StudySmarter users get better grades.

Sign up for free
94% of StudySmarter users get better grades.