We have, g(n)={\begin{matrix}n+1, if n odd \\ n-1, if n even\end{matrix}
f(g(1))=f(2)=1
f(g(2))=f(1)=1
∴f(g(x)) is many one.
f(g(2k))=f(2k−1)=k
f(g(2k+1))=f(2k+2)=k+1
∴f(g(x)) is onto.
JEE Main 2019 — Mathematics Algebra
Let N be the set of natural numbers and two functions f and g be defined as f,g:N→N such that
f(n)={\begin{matrix}\frac{n+1}{2}, if n is odd \\ \frac{n}{2}, if n is even\end{matrix}
and g(n)=n−(−1)n. Then fog is:
Held on 10 Jan 2019 · Verified 6 Jul 2026.
onto but not one-one
Both one-one and onto
One-one but not onto
Neither one-one nor onto
Sign in to track your attempts and accuracy.
Sign in to keep a private note on this question. Nothing you write is ever public.
The number of elements in the set $S = \left\{(r, k) : k \in \mathbb{Z} \text{ and } {}^{36}C_{r+1} = \dfrac{6\left({}^{35}C_r\right)}{(k^2 - 3)}\right\}$, is :
Suppose $\mathrm{a}, \mathrm{b}, \mathrm{c}$ are in A.P. and $\mathrm{a}^{2}, 2 \mathrm{~b}^{2}, \mathrm{c}^{2}$ are in G.P. If $\mathrm{a}<\mathrm{b}<\mathrm{c}$ and $\mathrm{a}+\mathrm{b}+\mathrm{c}=1$, then $9\left(\mathrm{a}^{2}+\mathrm{b}^{2}+\mathrm{c}^{2}\right)$ is equal to $\_\_\_\_$ .
Let $S=\left\{z \in \mathbb{C}: 4 z^{2}+\bar{z}=0\right\}$. Then $\sum_{z \in S}|z|^{2}$ is equal to:
Let $S=\{z: 3 \leqslant|2 z-3(1+i)| \leqslant 7\}$ be a set of complex numbers. Then $\min _{z \in S}\left|\left(z+\frac{1}{2}(5+3 i)\right)\right|$ is equal to :
Let $A = \begin{bmatrix} 1 & 0 & 0 \\ 3 & 1 & 0 \\ 9 & 3 & 1 \end{bmatrix}$ and $B = [b_{ij}]$, $1 \leq i, j \leq 3$. If $B = A^{99} - I$, then the value of $\dfrac{b_{31} - b_{21}}{b_{32}}$ is :
Work through every JEE Main Algebra PYQ, year by year.