Define f : Z → N + by ( f (x) = 2|x| if x < 0, 2x + 1 if x ≥ 0 ). Show that f has inverse. Note that N + = N \ {0}.
I don't know how to prove that f has inverse. Can you help me ?
Define f : Z → N + by ( f (x) = 2|x| if x < 0, 2x + 1 if x ≥ 0 ). Show that f has inverse. Note that N + = N \ {0}.
I don't know how to prove that f has inverse. Can you help me ?
Plug if a few values into f and you'll see what the inverse has to be.
f(0)=1
f(-1)=2
f(1)=3
f(-2)=4
f(2)=5
f(-3)=6
Putting it in this order makes it clear what the inverse is. Look at what the inverse has to do to even and odd numbers separately.