Let $f: N \rightarrow N$ be defined by $f(n) = \begin{cases} \frac{n+1}{2}; & \text{if } n \text{ is odd} \\ \frac{n}{2}; & \text{if } n \text{ is even} \end{cases}$. Then $f$ is:

  • A
    one-one and onto
  • B
    one-one but not onto
  • C
    onto but not one-one
  • D
    neither one-one nor onto

Explore More

Similar Questions

Let $f: R \rightarrow R$ be a function defined by
$f(x) = \begin{cases} x^2 \sin \left(\frac{\pi}{x^2}\right) & \text{if } x \neq 0 \\ 0 & \text{if } x = 0 \end{cases}$
Then which of the following statements is $TRUE$?

Let $A$ be the set of all $50$ students of Class $X$ in a school. Let $f: A \rightarrow N$ be a function defined by $f(x) = \text{roll number of the student } x$. Show that $f$ is one-one but not onto.

If $f(x)$ is the signum function,then in terms of $f(x)$,the constant function $g(x)=1, \forall x \in R$ is

Check the injectivity and surjectivity of the function $f: Z \rightarrow Z$ defined by $f(x) = x^{3}$.

If $f: N \rightarrow R$ is defined by $f(1)=-1$ and $f(n+1)=3f(n)+2$ for $n \geq 1$,then $f$ is

Vedclass Products

For Students

Vedclass Test Series

Mock tests in real JEE/NEET style with performance analysis. 5-day free trial.

Start Free Trial
For Teachers

Exam Paper Generator

Generate Set A/B/C/D exam papers from 7.5L+ questions in 2 minutes. 3 chapters free.

Try Free
For Institutes

Online Exam Module

Live online exams with unlimited students, 360° analytics & white-label branding.

See Demo