wiz-icon
MyQuestionIcon
MyQuestionIcon
3
You visited us 3 times! Enjoying our articles? Unlock Full Access!
Question

Let f:NN be defined by f(n)=⎪ ⎪⎪ ⎪n+12,is n is oddn2,is n is even for all n N. State whether the function f is bijective. Justify your answer.

Open in App
Solution

Solve for one-one.
⎪ ⎪⎪ ⎪n+12,is n is oddn2,is n is even, for all n N
Now for one-one.
f(1)=n+12=1+12=1 (since 1 is odd)
f(2)=22=1 (since 2 is even)
Since, f(1)=f(2)
but 12
both f(1) & f(2) have same image 1
f is not one-one.

Solve for onto.
f(n)=⎪ ⎪⎪ ⎪n+12,is n is oddn2,is n is even for all n N
When n is odd,
n=2k1 for k N
f(2k1)=2k1+12=k
When n is even
n=2k for some k N such that
f(2)=2k2=k
Thus, for every n N,f(n) N
Therefore, f is onto.
Hence, f is onto but not bijective function.

flag
Suggest Corrections
thumbs-up
5
Join BYJU'S Learning Program
Join BYJU'S Learning Program
CrossIcon