[Math] Function injective but not surjective

elementary-set-theory

Given an example of mapping $f:S\to S$ which is one-to-one but not onto.

Let's take $S=\mathbb{R}$ and $f(x)=e^x$ then it is clear that this function is injective but not onto.

Can anyone also give another example?

Best Answer

Take $S = \mathbb{N}$ and $f(n) = n+1$.

Related Question