How would I prove that f(x) = [x] is surjective, where [x] denotes the bracket function
I know how to prove that something is surjective, but I'm stuck on this particular example
In proofs of surjection, knowing the domain and codomain is essential. For example, f(x) = [x] is not surjective if f is considered from $\displaystyle \mathbb{R}$ to $\displaystyle \mathbb{R}$, nor when it is considered from $\displaystyle \{x\in \mathbb{R}\mid x>0\}$ to $\displaystyle \mathbb{Z}$. So I'll assume that $\displaystyle f:\mathbb{R}\to\mathbb{Z}$.
We need to prove that for every $\displaystyle n\in\mathbb{Z}$ there is an $\displaystyle x\in\mathbb{R}$ such that [x] = n. Can you find several such x for n = 3?