f: R → R is given by, f(x) = [x]
It is seen that f(1.2) = [1.2] = 1, f(1.9) = [1.9] = 1
So, f(1.2) = f(1.9), but 1.2 ≠ 1.9
f is not one-one
Now, consider 0.7 ε R
It is known that f(x) = [x] is always an integer. Thus, there does not exist any element x ε R such that f(x) = 0.7
So, f is not onto
Hence, the greatest integer function is neither one-one nor onto.
The answer was quite complicated but I hope it will help you.