Sign in
12thPass logo
New chatPYQ LibraryDoubtsRank report
Sign in to see Recents

Your guest activity stays on this device

Sign in to save progress →
Sign in

Functions question

2003 · Shift 0 · Q67
Guest · filters and generic practice availableBrowsing as a guest · PYQ filters and generic practice are available. Sign in only for personalised features and saved progress.
  1. PYQ Library
  2. /JEE Main
  3. /Mathematics
  4. /Functions
  5. /2003 · Shift 0 · Q67

Functions question

2003 · Shift 0 · Q67

JEE MainMathematicsFunctionsMCQ+4 / −1
A function fff from the set of natural numbers to integers defined by f(n)={n−12, when n is odd−n2, when n is evenf\left( n \right) = \left\{ {\begin{matrix} {{{n - 1} \over 2},\,when\,n\,is\,odd} \\ { - {n \over 2},\,when\,n\,is\,even} \\ \end{matrix} } \right.f(n)={2n−1​,whennisodd−2n​,whenniseven​ is
  1. A
    neither one -one nor onto
  2. B
    one-one but not onto
  3. C
    onto but not one-one
  4. D
    one-one and onto both
View written solutionFree

Correct answer: D

  1. Given function

The function is defined from natural numbers to integers:

f:N→Zf: \mathbb{N} \to \mathbb{Z}f:N→Z

with

\begin{cases} \dfrac{n-1}{2}, & \text{if } n \text{ is odd}\\[4pt] -\dfrac{n}{2}, & \text{if } n \text{ is even} \end{cases}$$ We must check whether it is **one-one** (injective) and/or **onto** (surjective). --- 2. **Understand the values of the function** Let us compute a few values: - For $n=1$ (odd): $$f(1)=\frac{1-1}{2}=0$$ - For $n=2$ (even): $$f(2)=-\frac{2}{2}=-1$$ - For $n=3$ (odd): $$f(3)=\frac{3-1}{2}=1$$ - For $n=4$ (even): $$f(4)=-\frac{4}{2}=-2$$ - For $n=5$ (odd): $$f(5)=\frac{5-1}{2}=2$$ - For $n=6$ (even): $$f(6)=-\frac{6}{2}=-3$$ So the outputs are: $$0,-1,1,-2,2,-3,3,\dots$$ This suggests that every integer appears exactly once. --- 3. **Check one-one (injective)** We show that different natural numbers give different integer values. ### Case 1: Both numbers are odd Let $n=2a+1$ and $m=2b+1$. Then $$f(n)=\frac{(2a+1)-1}{2}=a, \qquad f(m)=\frac{(2b+1)-1}{2}=b$$ If $f(n)=f(m)$, then $a=b$, hence $$n=2a+1=2b+1=m$$ So no two distinct odd numbers have the same image. ### Case 2: Both numbers are even Let $n=2a$ and $m=2b$. Then $$f(n)=-a, \qquad f(m)=-b$$ If $f(n)=f(m)$, then $$-a=-b \implies a=b \implies n=m$$ So no two distinct even numbers have the same image. ### Case 3: One odd and one even Let $n$ be odd and $m$ be even. Then $$f(n)=\frac{n-1}{2}$$ is a **non-negative integer**, while $$f(m)=-\frac{m}{2}$$ is a **negative integer**. A non-negative integer can never equal a negative integer. Hence $$f(n) \ne f(m)$$ So an odd input and an even input can never have the same image. Therefore, the function is **one-one**. --- 4. **Check onto (surjective)** We must show that for every integer $z \in \mathbb{Z}$, there exists some natural number $n$ such that $f(n)=z$. Take any integer $z$. ### If $z \ge 0$ Choose $$n=2z+1$$ Then $n$ is odd, and $$f(n)=\frac{(2z+1)-1}{2}=\frac{2z}{2}=z$$ ### If $z<0$ Write $z=-k$ where $k\in \mathbb{N}$. Choose $$n=2k$$ Then $n$ is even, and $$f(n)=-\frac{2k}{2}=-k=z$$ Thus every integer has a preimage in $\mathbb{N}$. So the function is **onto**. --- 5. **Conclusion** The function is both **one-one** and **onto**. Hence the correct option is: $$\boxed{\text{D: one-one and onto both}}$$ --- 6. **Comparison with stored correct answer** Stored correct answer: $\boxed{D}$ Our derived answer is also $\boxed{D}$, so they agree.
PreviousNext

More from Functions

  • If f:R→R satisfies f(x + y) = f(x) + f(y), for all x, y ∈ R and f(1) = 7, then r=1∑n​f(r) is2003 · MCQ
  • Domain of definition of the function f(x) = 4−x23​+log10​(x3−x), is2003 · MCQ
  • The domain of sin−1[log3​(3x​)] is2002 · MCQ
  • The period of sin2θ is2002 · MCQ
  • Which one is not periodic?2002 · MCQ
  • If the domain of the function f(x)=10+3x−x2​1​+x+∣x∣​1​ is (a,b), then (1+a)2+b2 is equal to :2025 · MCQ
  •  If the domain of the function f(x)=loge​(5+4x2x−3​)+sin−1(2−x4+3x​) is [α,β), then α2+4β is equal to 2025 · MCQ
  • Let f be a function such that f(x)+3f(x24​)=4x,xeq0. Then f(3)+f(8) is equal to2025 · MCQ