Determine if $f(n) = n^2 - 1$ is injective, surjective, and prove your answer.
The domain and codomain is the set of all integers: $\mathbb{Z}$
Let $-3 = n^2 - 1$
Then $n = \sqrt{-2} \notin \mathbb{Z}$
$\therefore f$ is not surjective.
Let $f(n) = 3$
Then $f(2) = 2^2 - 1 = 3$ and $f(-2) = (-2)^2 - 1 = 3$
$\therefore f$ is not injective. $\square$