Give an example of a function from N to N that is

Give an example of a function from N to N that is
(a) one-to-one but not noto.
(b) onto but not one-to-one.
© both onto and one-to-one
(d) neither one-to-one nor noto