Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > University Math Help > Discrete Mathematics, Set Theory and Logic
Reply
 
Thread Tools Display Modes
  #1  
Old July 11th, 2007, 09:20 AM
Member
 
Join Date: Jun 2007
Posts: 117
Country:
Thanks: 2
Thanked 0 Times in 0 Posts
TheRekz is on a distinguished road
Default example of a function (one to one & onto)

Give an example of a function from N to N that is one to one but not onto

My answer is the function from {a,b,c} to {1,2,3,4} with f(a) = 3, f(b) = 4, f(c) = 1. Is this the correct example to this question? What does it mean from N to N?
Reply With Quote
Advertisement
 
  #2  
Old July 11th, 2007, 11:08 AM
ThePerfectHacker's Avatar
Global Moderator

 
Join Date: Nov 2005
Location: New York City
Posts: 11,186
Country:
Thanks: 482
Thanked 3,754 Times in 3,070 Posts
ThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond repute
Default

Quote:
Originally Posted by TheRekz View Post
Give an example of a function from N to N that is one to one but not onto

My answer is the function from {a,b,c} to {1,2,3,4} with f(a) = 3, f(b) = 4, f(c) = 1. Is this the correct example to this question? What does it mean from N to N?
f(1)=2, f(2)=3, f(3)=4, ... f(n) = n+1, ...
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


"Democracy has proved only that the best way to gain power
over people is to assure the people that they are ruling
themselves. Once they believe that, they make wonderfully
submissive slaves." - Joseph Sobran


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote
  #3  
Old July 11th, 2007, 11:27 AM
MHF Contributor

 
Join Date: Aug 2006
Posts: 6,711
Thanks: 68
Thanked 2,483 Times in 2,277 Posts
Plato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond repute
Default

Quote:
Originally Posted by TheRekz View Post
Give an example of a function from N to N that is one to one but not onto
My answer is the function from {a,b,c} to {1,2,3,4} with f(a) = 3, f(b) = 4, f(c) = 1. Is this the correct example to this question? What does it mean from N to N?
No it is not correct.
First N is the set of counting numbers either {0,1,2,3,...} or {1,2,3,4,...} (i.e. it contains 0 or not depending on your textbook). So N is infinite; so your example must be infinite also. Here is another example in addition to the one given above.
f:N \mapsto N,\quad \left( {n \in N} \right)\left[ {f(n) = 2^n } \right]\quad
Reply With Quote
  #4  
Old July 11th, 2007, 11:43 AM
ThePerfectHacker's Avatar
Global Moderator

 
Join Date: Nov 2005
Location: New York City
Posts: 11,186
Country:
Thanks: 482
Thanked 3,754 Times in 3,070 Posts
ThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond repute
Default

Note if S is a finite set it is NOT POSSIBLE to find:

f:S\to S that is one-to-one but not onto. This is a consequence of the Pigeonhole Principle. This is a distinction between finite and infinite sets.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


"Democracy has proved only that the best way to gain power
over people is to assure the people that they are ruling
themselves. Once they believe that, they make wonderfully
submissive slaves." - Joseph Sobran


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote
The following users thank ThePerfectHacker for this useful post:
Donate to MHF
  #5  
Old July 11th, 2007, 12:34 PM
Member
 
Join Date: Jun 2007
Posts: 117
Country:
Thanks: 2
Thanked 0 Times in 0 Posts
TheRekz is on a distinguished road
Default

Quote:
Originally Posted by Plato View Post
No it is not correct.
First N is the set of counting numbers either {0,1,2,3,...} or {1,2,3,4,...} (i.e. it contains 0 or not depending on your textbook). So N is infinite; so your example must be infinite also. Here is another example in addition to the one given above.
f:N \mapsto N,\quad \left( {n \in N} \right)\left[ {f(n) = 2^n } \right]\quad
so what you're saying is that the function f(x) = 2^x will work as an example of this question?
Reply With Quote
  #6  
Old July 11th, 2007, 12:36 PM
ThePerfectHacker's Avatar
Global Moderator

 
Join Date: Nov 2005
Location: New York City
Posts: 11,186
Country:
Thanks: 482
Thanked 3,754 Times in 3,070 Posts
ThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond repute
Default

Quote:
Originally Posted by TheRekz View Post
so what you're saying is that the function f(x) = 2^x will work as an example of this question?
Yes. The function I gave it even simpler.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


"Democracy has proved only that the best way to gain power
over people is to assure the people that they are ruling
themselves. Once they believe that, they make wonderfully
submissive slaves." - Joseph Sobran


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote
  #7  
Old July 11th, 2007, 06:29 PM
Member
 
Join Date: Jun 2007
Posts: 117
Country:
Thanks: 2
Thanked 0 Times in 0 Posts
TheRekz is on a distinguished road
Default

What if the question is neither one to one nor onto? What would be a perfect example? Would x^2 + 1 work?
Reply With Quote
  #8  
Old July 11th, 2007, 07:10 PM
ThePerfectHacker's Avatar
Global Moderator

 
Join Date: Nov 2005
Location: New York City
Posts: 11,186
Country:
Thanks: 482
Thanked 3,754 Times in 3,070 Posts
ThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond reputeThePerfectHacker has a reputation beyond repute
Default

Quote:
Originally Posted by TheRekz View Post
What if the question is neither one to one nor onto? What would be a perfect example? Would x^2 + 1 work?
x^2+1 is one-to-one in this case.

How about,
f(1)=1
f(2)=1
f(3)=1
f(4)=1
...
f(n)=1
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


"Democracy has proved only that the best way to gain power
over people is to assure the people that they are ruling
themselves. Once they believe that, they make wonderfully
submissive slaves." - Joseph Sobran


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote
  #9  
Old July 11th, 2007, 07:19 PM
MHF Contributor

 
Join Date: Aug 2006
Posts: 6,711
Thanks: 68
Thanked 2,483 Times in 2,277 Posts
Plato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond repute
Default

Quote:
Originally Posted by TheRekz View Post
What if the question is neither one to one nor onto? What would be a perfect example? Would x^2 + 1 work?
No! Because the elements of N are non-negative that function is one-to-one.
Look at the function f:N \mapsto N,\quad f(n) = \text{floor}\left( {\frac{{n + 5}}{2}} \right)
Reply With Quote
  #10  
Old July 11th, 2007, 07:40 PM
Member
 
Join Date: Jun 2007
Posts: 117
Country:
Thanks: 2
Thanked 0 Times in 0 Posts
TheRekz is on a distinguished road
Default

can you give me other examples that does not use the floor operator?
Reply With Quote
  #11  
Old July 12th, 2007, 09:58 AM
Member
 
Join Date: Jun 2007
Posts: 117
Country:
Thanks: 2
Thanked 0 Times in 0 Posts
TheRekz is on a distinguished road
Default

N is a set of natural numbers right? And a natural number can't be negative?
Reply With Quote
  #12  
Old July 12th, 2007, 10:14 AM
Jhevon's Avatar
vs Jhevon
 
Join Date: Feb 2007
Location: New York, USA
Posts: 11,104
Country:
Thanks: 2,610
Thanked 4,271 Times in 3,970 Posts
Jhevon has a reputation beyond reputeJhevon has a reputation beyond reputeJhevon has a reputation beyond reputeJhevon has a reputation beyond reputeJhevon has a reputation beyond reputeJhevon has a reputation beyond reputeJhevon has a reputation beyond reputeJhevon has a reputation beyond reputeJhevon has a reputation beyond reputeJhevon has a reputation beyond reputeJhevon has a reputation beyond repute
Default

Quote:
Originally Posted by TheRekz View Post
N is a set of natural numbers right? And a natural number can't be negative?
correct. the natural numbers is the set of positive integers: 1,2,3,4,5,6....


wow, i could actually answer a question in this thread
Reply With Quote
  #13  
Old July 12th, 2007, 10:29 AM
MHF Contributor

 
Join Date: Aug 2006
Posts: 6,711
Thanks: 68
Thanked 2,483 Times in 2,277 Posts
Plato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond reputePlato has a reputation beyond repute
Default

Quote:
Originally Posted by TheRekz View Post
N is a set of natural numbers right? And a natural number can't be negative?
Look! We do not know what textbook or set of notes you are following.
Sorry to say, but it is true nonetheless, there are no hard and fast definition in mathematics. So you read the definition of N in your text material. Most texts that I have seen require N to be either {0,1,2,3,…} or {1,2,3,…}*. So yes the customary and usual definitions of N mean that the set is made of non-negative integers.

* See this site: Counting Number -- from Wolfram MathWorld
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 08:09 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.