Let N be the set of natural numbers and two functions f and g be defined as f,g:N→N such that f(n)=⎧⎪
⎪⎨⎪
⎪⎩n+12,ifnis oddn2,ifnis even
and g(n)=n−(−1)n. Then f∘g is :
A
both one-one and onto function
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
one-one but not onto function
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
onto but not one-one function
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
neither one-one nor onto function
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is C onto but not one-one function g(n)=n−(−1)n ⇒g(n)={n+1,ifnis oddn−1,ifnis even
Given, f(n)=⎧⎪
⎪⎨⎪
⎪⎩n+12ifnis oddn2ifnis even
Now from observation, f(g(1))=f(2)=1(∵g(1)=2) f(g(2))=f(1)=1(∵g(2)=1) f(g(3))=f(4)=2(∵g(3)=4) f(g(4))=f(3)=2(∵g(4)=3)
⇒f(g(x)) is many one function
Now, (f∘g)(x), when x is even ⇒f(g(2m))=f(2m−1)=m(where m∈N) (f∘g)(x), when x is odd ⇒f(g(2m+1))=f(2m+2)=m+1∈N ⇒f(g(x)) is onto function ∴f(g(x)) is onto but not one-one function.