To show that f is one-to-one, assume that f(a) = f(b) and then show that a = b:
Suppose that a, b ε Z and f(a) = f(b).
SInce f(a) = f(b), a - 1 = b - 1. So, a = b.
Therefore, f is one-to-one.
To show that f is onto, let a ε Z. Find b ε Z so that f(b) = a:
Let a ε Z. Then b = a + 1 ε Z and f(b) = (a + 1) - 1 = a.
Therefore, f is onto.
Domain f-1(x) = Range f(x) = Z (since f is onto)
Range f-1(x) = Domain f(x) = Z