Example. [00AL]

Is f : \Z \to \Z defined by f(x) = 3x+2 invertible? No, although it is indeed one-to-one, it is not onto. For example, there is no x \in \Z such that f(x) = 6; the output of f will never be a multiple of 3.