Problem.
Suppose f:Z→Z given by
f(n)={2n2n+1if n is evenif n is odd
Determine if the function is injective or surjective.
My attempt: By evaluating the function we see that each output repeats twice. Hence to show that the function is not injective is simple, since f(0)=0 and f(−1)=0 but 0=−1. However, I find it difficult to prove that the function is surjective. The goal is to show that f(Z)=Z.
My first thought was to suppose we partitioned Z=Z1∪Z2. Where Z1 is the odd integers and Z2 the even integers. And so Z1=2t+1 and Z2=2t for some integer t. Then for each case, we have
f(Z1)=f(2t+1)=t+1 And
f(Z2)=f(2t)=t
Now if t is even, then t+1 is odd. And if t is odd, then t+1 is even. Then clearly as t varies over all integers, so will the f(n) vary over all integers as well. Hence it must be true that f(Z)=Z.
I know this is not a correct proof, but it was my attempt anyway.
Suppose f:Z→Z given by
f(n)={2n2n+1if n is evenif n is odd
Determine if the function is injective or surjective.
My attempt: By evaluating the function we see that each output repeats twice. Hence to show that the function is not injective is simple, since f(0)=0 and f(−1)=0 but 0=−1. However, I find it difficult to prove that the function is surjective. The goal is to show that f(Z)=Z.
My first thought was to suppose we partitioned Z=Z1∪Z2. Where Z1 is the odd integers and Z2 the even integers. And so Z1=2t+1 and Z2=2t for some integer t. Then for each case, we have
f(Z1)=f(2t+1)=t+1 And
f(Z2)=f(2t)=t
Now if t is even, then t+1 is odd. And if t is odd, then t+1 is even. Then clearly as t varies over all integers, so will the f(n) vary over all integers as well. Hence it must be true that f(Z)=Z.
I know this is not a correct proof, but it was my attempt anyway.
Last edited: