Question
Question: A function f from the set of natural numbers to integers defined by \[f\left( n \right)=\left\\{ ...
A function f from the set of natural numbers to integers defined by
& \dfrac{n-1}{2}\text{ if n is odd} \\\ & \dfrac{-n}{2}\text{ if n is even} \\\ \end{aligned} \right.$$ is: (a) Onto but not one-one (b) One-one and onto both (c) Neither one-one nor both (d) One-one but not ontoSolution
Hint: In this question, as the function is a mapping from natural numbers to integers. Let us consider some natural numbers and substitute them in the given function and then from the functional values obtained we can comment about one-one and onto.
Complete step-by-step answer:
Let us look at the definitions of one-one and onto functions
ONE-ONE FUNCTION: The mapping f:A→B is called a one-one function, if different elements in A have different images in B. Such a mapping is known as a one-one function or injective function.
ONTO FUNCTION: If the function f:A→B is such that each element in B is the image of at least one element of A, then we say that f is a function of A onto B. Thus, f:A→B, such that f(A)=B.
Now, from the given function in the question we have,