I'm very new to proving that a function is injective, surjective, bijective, invertible etc. So I'm supposed to prove that the function below is not injective. $$f(x) = \frac{(-1)^x (2x-1) +1}{4}$$ Where $f:\Bbb N\to\Bbb Z$.
Well, I tried to consider: $$f(a) = f(b)$$ Which gives: $$\frac{(-1)^a (2a-1) +1}{4} = \frac{(-1)^b (2b-1) +1}{4}$$ Then $$(-1)^a (2a-1) = (-1)^b (2b-1)$$ And using log base $-1$: $$a(2a-1) = b(2b-1)$$ Annnd finally: $$2a^2 -a = 2b^2 -b$$
I know that if $a=0$ and $b=1/2$ they both get $0$ as the answer, but $b= 1/2$ isn't a natural number so I can't use that right?
So I guess I'm stuck here. Is there a way to break it down further to show that $a\neq b$?
\neqinstead of !=, use\Bbb N\to\Bbb Zto render $\Bbb N\to\Bbb Z$ – FShrike Dec 05 '21 at 14:39