Question
Mathematics Question on Functions
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)={2n+1 2nif n is oddif n is even and g(n)=n−(−1)n. The fog is :
A
Both one-one and onto
B
One-one but not onto
C
Neither one-one nor onto
D
onto but not one-one
Answer
onto but not one-one
Explanation
Solution
f(x)={2n+1 −(n+1)/2n is oddn is even
g(x)=n−(−1)n{n+1 n−1;n is odd;if n is even
f(g(n))={2n; 2n+1;n is evenn is odd
∴ many one but one to one