Let f (x) = (–1)[x] (where [ . ] denotes the greatest integer function), then
Range of f is {–1, 1}
f is an even function
f is an odd function
limx→n f(x) exists, for every integer n
f (x) = (–1)[x] = {–1, 1}, since [x] ∈ Z.