QlarIITy

MathematicsJEE Main 2022 · 28 JuneSingle correct

Let a function f:N→Nf : \mathbb{N} \to \mathbb{N} be defined byf(n)={2n,n=2,4,6,8,…n−1,n=3,7,11,15,…n+12,n=1,5,9,13,…f(n) = \begin{cases} 2n, & n = 2, 4, 6, 8, \ldots \\ n - 1, & n = 3, 7, 11, 15, \ldots \\ \frac{n + 1}{2}, & n = 1, 5, 9, 13, \ldots \end{cases}then, ff is

  1. Option A: One-one and onto
  2. Option B: One-one but not onto
  3. Option C: Onto but not one-one
  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 piecewise function is one-one and onto when its pieces are one-one with disjoint images that fill the codomain.

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. The inputs fall into three classes: the even numbers, the numbers 3, 7, 11 and so on, and the numbers 1, 5, 9 and so on. Each class has its own rule. The function is one-one and onto if each rule is one-one, the three images are disjoint, and the images together fill N\mathbb{N}.

Approach. Find the image of each piece and check that the images split the natural numbers.

  1. Step 1: The three images

    Even n=2kn = 2k gives 2n=4k2n = 4k, the multiples of 4. Inputs n=4k−1n = 4k - 1 give n−1=4k−2n - 1 = 4k - 2, the numbers 2, 6, 10 and so on. Inputs n=4k−3n = 4k - 3 give n+12=2k−1\dfrac{n + 1}{2} = 2k - 1, the odd numbers.

  2. Step 2: The conclusion

    Each rule is one-one on its class, the three images have no common element, and together they contain every natural number. So ff is one-one and onto.

Answer. (A) One-one and onto

Sanity check. The first values are f(1)=1f(1) = 1, f(2)=4f(2) = 4, f(3)=2f(3) = 2, f(4)=8f(4) = 8, f(5)=3f(5) = 3, f(6)=12f(6) = 12 and f(7)=6f(7) = 6, with no repeats, and 1, 2, 3, 4 all occur.

Why the other options are wrong

  • (B) The function is onto: an odd number 2k−12k - 1 comes from 4k−34k - 3, a multiple of 4 from an even number, and 4k−24k - 2 from 4k−14k - 1.
  • (C) The function is one-one: each rule is one-one, and outputs of different rules lie in different classes.
  • (D) Both properties hold, since the three images split the natural numbers without overlap.

Key takeaway

The trap. A piece that halves its input can still be one-one on its own class of inputs.

How toppers think. They write each class of inputs with a parameter and read the image at once.

Remember. Images: 4k4k, 4k−24k - 2, 2k−12k - 1

More on Types of Functions