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

If a function f is defined as f:ZZ,f(n)={n2:n is even n+12:n is odd then prove that f is onto but not one-one.

Open in App
Solution

f:zz; f(n)=⎪ ⎪⎪ ⎪n2:nisevenn+12:nisodd
checking one-one
f(2)=22=1 (Since 1 is even)
f(1)=(1)+12=22=1 (Since 1 is odd)
Since, f(2)=f(1) but 21
Both f(2) and f(1) have same image i.e 1
f is not one-one
Checking onto
Let f(x)=y, such that yz
When n is odd
n+12=yn+1=2yn=12y
Hence for y is an integer n=12y is also an integer i.e. nz
When n is even
n2=yn=2y
Hence for y is an integer, n=2y is also an integer i.e., nz
Thus, f is onto but not one-one.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Animal Tissues
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon