A function $$f$$ from the set of natural numbers to integers defined by $$$f\left( n \right) = \left\{ {\begin{matrix} {{{n - 1} \over 2},\,when\,n\,is\,odd} \\ { - {n \over 2},\,when\,n\,is\,even} \\ \end{matrix} } \right.$$$ is
JEE · Math · previous-year question
- A.neither one -one nor onto
- B.one-one but not onto
- C.onto but not one-one
- D.one-one and onto bothcorrect
Answer
D. one-one and onto both
Explanation
We have $$f:N \to I$$ If $$x$$ and $$y$$ are two even natural numbers, then $$f\left( x \right) = f\left( y \right) \Rightarrow {{ - x} \over 2} = {{ - y} \over 2} \Rightarrow x = y$$ Again if $$x$$ and $$y$$ are two odd natural numbers then $$f\left( x \right) = f\left( y \right) \Rightarrow {{x - 1} \over 2} = {{y - 1} \over 2} \Rightarrow x = y$$ $$\therefore$$ $$f$$ is onto. Also each negative integer is an image of even natural number and each positive integer is an image of odd natural number. $$\therefore$$ $$f$$ is onto. Hence $$f$$ is one one and onto both.
Practice more JEE questions
Answer thousands more real JEE previous-year questions free, get graded instantly, and climb the global ranked leaderboard.
Practice JEE free →More JEE Math questions
- What is the total number of distinct x \in \mathbb{R} for which \left|\begin{array}{ccc}x …
- Let m be the smallest positive integer such that the coefficient of x^{2} in the expansion…
- What is the total number of distinct x \in[0,1] for which \int_{0}^{x} \frac{t^{2}}{1+t^{4…
- Let \alpha, \beta \in \mathbb{R} be such that \lim _{x \rightarrow 0} \frac{x^{2} \sin (\b…
- Let z=\frac{-1+\sqrt{3} i}{2}, where i=\sqrt{-1}, and r, s \in\{1,2,3\}. Let P=\left[\begi…
- For how many values of p, the circle x^{2}+y^{2}+2 x+4 y-p=0 and the coordinate axes have …
- Let f: \mathbb{R} \rightarrow \mathbb{R} be a differentiable function such that f(0)=0, f\…
- For a real number \alpha, if the system \[ \left[\begin{array}{ccc} 1 & \alpha & \alpha^{2…