Let f:N→N be defined by f(n)={n+12,if n is oddn2,if n is even
For all n∈N state whether the function f is onto, one-one or bijective. Justify your answer.
Here, f:N→N is defined as, f(n)={n+12,if n is oddn2,if n even
for all n∈N. It can be observed that f(1)=1+12=1 and f(2)=22=1 [By definition of f]
∴f(1)=f(2), where 1≠2.
Therefore, f is not one-one. Consider a natural number n in co-domain N.
Case 1: When n is odd.
Therefore, n=2r +1 for some r∈N.
Then, there exists 4r+1 ∈ N such that f(4r+1)=4r+1+12=2r+1.
Therefore, f is onto.
Case 2: When n is even
Therefore, n=2r for some f∈N
Then, there exists 4r∈N such that f(4r)=4r2=2r
Therefore, f is onto. Hence, f is not a bijective function.
If f is one-one and onto, then we say that f is bijective function.