# Math Help - discrete function - onto and 1-1

1. ## discrete function - onto and 1-1

Give a example of a function from N to N (naturals) that is
a) one-to-one and onto
b) onto but not one-to-one

2. What about $f(n) = \left\lfloor {\frac{n}{2}} \right\rfloor$?

3. Originally Posted by pila0688
Give a example of a function from N to N (naturals) that is
a) one-to-one and ontoo