The correct option is B False
f is a function from the set of natural numbers to set A.
Thus domain of f(n) is nϵN.
Now it is given that f(2n−1)=0 and f(2n)=1.
Hence
f(n)=0 if n is odd and
f(n)=1 if n is even.
Thus for all 2nϵN f(n)=1 and for all (2n−1)ϵN f(n)=0.
Hence there are more than 1 one value of 'n' for which f(n) is 0.
Similarly there are more than 1 one value of 'n' for which f(n) is 1.
Hence f(n) is a many one function.
However f(n) successfully maps every element in the co domain ({0,1}) to atleast one element in the domain of (N).
Hence f(n) is an onto function.