How can we tell if the function $f(n) = 2 \left\lfloor\frac n2\right\rfloor$ from $\mathbb{Z}$ to $\mathbb{Z}$ is onto? Thanks!
Tell me more
×
Mathematics Stack Exchange is a question and answer site for
people studying math at any level and professionals in related fields. It's 100% free, no registration required.
|
|
A function $f:A\to B$ is onto if for every $b\in B$ there is some $a\in A$ such that $f(a)=b$. Here the function is not onto because there is no value that is mapped to $1$. Applying $f$ always yields an even integer. |
|||
|
|
