QlarIITy

MathematicsJEE Main 2019 · 10 JanuarySingle correct

Let NN be the set of natural numbers and two functions ff and gg be defined as f,g:N→Nf, g : N \to N such thatf(n)={n+12,if n is oddn2,if n is evenf(n) = \begin{cases} \frac{n + 1}{2}, & \text{if } n \text{ is odd} \\ \frac{n}{2}, & \text{if } n \text{ is even} \end{cases}and g(n)=n−(−1)ng(n) = n - (-1)^n. Then f∘gf \circ g is:

  1. Option A: onto but not one-one
  2. Option B: Both one-one and onto
  3. Option C: One-one but not onto
  4. Option D: Neither one-one nor onto
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. A function that pairs up consecutive inputs is onto but takes each value twice.

Concept refresher. A function f:A→Bf : A \to B is one-one when

f(x1)=f(x2)f(x_1) = f(x_2)

forces x1=x2x_1 = x_2, and onto when its range is the whole of BB.

Picture the situation. For odd nn, (−1)n=−1(-1)^n = -1 and g(n)=n+1g(n) = n + 1, an even number. For even nn, g(n)=n−1g(n) = n - 1, an odd number. So gg interchanges 1 and 2, 3 and 4, and so on. The outer function halves an even input and halves one more than an odd input.

Approach. Compute the composite for each parity, then test repeated values and missing values.

  1. Step 1: The composite

    For odd nn the inner value n+1n + 1 is even, so f(g(n))=n+12f(g(n)) = \dfrac{n + 1}{2}. For even nn the inner value n−1n - 1 is odd, so f(g(n))=n2f(g(n)) = \dfrac{n}{2}.

  2. Step 2: The tests

    The inputs 1 and 2 both give 1, so the composite is not one-one. Every natural number kk is the value at n=2kn = 2k, so it is onto.

Answer. (A) onto but not one-one

Sanity check. The first values are 1, 1, 2, 2, 3, 3 for n=1n = 1 to 6: every number appears, each twice.

Why the other options are wrong

  • (B) It is not one-one, since n=1n = 1 and n=2n = 2 both give 1.
  • (C) It is onto, since kk is the value at n=2kn = 2k, and it is not one-one.
  • (D) It is onto: every natural number kk is reached at n=2kn = 2k.

Key takeaway

The trap. The parity of the inner value, not of the input, decides the piece of the outer function.

How toppers think. They list the first few values of the composite.

Remember. f(g(2k−1))=f(g(2k))=kf(g(2k - 1)) = f(g(2k)) = k

More on Types of Functions