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+12if n is oddn2in n is even and g(n)=n−(−1)n. The fog is:
A
Both one-one and onto
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
One-one but not onto
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Neither one-one nor onto
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
onto but not one-one
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution
The correct option is D onto but not one-one fx=⎧⎪
⎪⎨⎪
⎪⎩n+12n is oddn2n is even g(x)=n−(−1)n{n+1;n is oddn−1;n is even