Show that the function $f: N \rightarrow N$,given by $f(1)=f(2)=1$ and $f(x)=x-1$ for every $x>2$,is onto but not one-one.

Vedclass pdf generator app on play store
Vedclass iOS app on app store
(N/A) To check if $f$ is one-one:
$A$ function $f$ is one-one if $f(x_1) = f(x_2) \implies x_1 = x_2$.
Here,$f(1) = 1$ and $f(2) = 1$.
Since $f(1) = f(2)$ but $1 \neq 2$,the function $f$ is not one-one.
To check if $f$ is onto:
$A$ function $f: N \rightarrow N$ is onto if for every $y \in N$,there exists an $x \in N$ such that $f(x) = y$.
Case $1$: If $y = 1$,we have $f(1) = 1$. Thus,$1$ has a pre-image.
Case $2$: If $y > 1$,then $y+1 > 2$. We can choose $x = y+1$. Then $f(x) = f(y+1) = (y+1) - 1 = y$.
Since every $y \in N$ has a pre-image in $N$,the function $f$ is onto.

Explore More

Similar Questions

Let $f: \mathbb{Z} \rightarrow \mathbb{Z}$ be defined by $f(x) = x^3 + 2$. Then,$f$ is . . . . . . .

The function $f : N \to N$ defined by $f(x) = x - 5[\frac{x}{5}]$,where $N$ is the set of natural numbers and $[x]$ denotes the greatest integer less than or equal to $x$,is

The number of bijective functions $f : \{1, 3, 5, 7, \ldots, 99\} \rightarrow \{2, 4, 6, 8, \ldots, 100\}$ such that $f(3) \geq f(9) \geq f(15) \geq f(21) \geq \ldots \geq f(99)$ is:

The function $f:R \to R$ defined by $f(x) = e^x$ is

Find the number of all onto functions from the set $\{1, 2, 3, \ldots, n\}$ to itself.

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