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 defined by $f(x)=5x^4+2$. Then

$f:[-2,2] \rightarrow[-2,2]$ and $g:[-2,2] \rightarrow[0,4]$ are two functions defined as $f(x)=\begin{cases} -2, & -2 \leq x \leq 0 \\ x^2-2, & 0 \leq x \leq 2 \end{cases}$ and $g(x)=|f(x)|+f(|x|)$, then

Let $A = \{x \in R \mid x \text{ is not a positive integer}\}$. Let a function $f$ be defined as $f: A \rightarrow R$ such that $f(x) = \frac{2x}{x-1}$. Then $f$ is:

The function $f: N-\{1\} \rightarrow N$ defined by $f(n) = \text{the highest prime factor of } n$ is:

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}$ for all $n \in N$. State whether the function $f$ is bijective. Justify your answer.

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