3

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$

Leonardo
  • 988

1 Answers1

1

You shouldn't write something like $\sqrt{-2}\not\in \mathbb{Z}$. Just write that $-2=n^2$ has no solution.
The let $f(n)=3$ is not good too, since you could think this is true for any $n$.