QlarIITy

MathematicsJEE Main 2024 · 27 JanuarySingle correct

The function f:N−{1}→Nf : N - \{1\} \to N; defined by f(n)f(n) = the highest prime factor of nn, is :

  1. Option A: both one-one and onto
  2. Option B: one-one only
  3. Option C: onto only
  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. One counterexample settles a failure of one-one, and one missed value settles a failure of onto.

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 function sends each natural number greater than 1 to its largest prime factor. Powers of the same prime, and many other numbers, share a largest prime factor. The outputs are always primes, while the codomain is all of NN.

Approach. Give one pair of inputs with equal outputs and one number with no pre-image.

  1. Step 1: Not one-one

    Both 2 and 4 have highest prime factor 2, so f(2)=f(4)f(2) = f(4) and ff is not one-one.

  2. Step 2: Not onto

    Every value of ff is a prime, so the numbers 1 and 4 of the codomain are never values, and ff is not onto.

Answer. (D) neither one-one nor onto

Sanity check. For example f(12)=3f(12) = 3 and f(9)=3f(9) = 3 as well, and no nn has f(n)=6f(n) = 6.

Why the other options are wrong

  • (A) Neither holds: f(2)=f(4)=2f(2) = f(4) = 2, and a composite number such as 4 is never an output.
  • (B) The function is not one-one, since f(2)=f(4)=2f(2) = f(4) = 2.
  • (C) The function is not onto NN, since its outputs are primes and 4, for example, is never reached.

Key takeaway

The trap. The codomain, not the set of primes, decides whether the function is onto.

How toppers think. They test the smallest inputs first.

Remember. f(2)=f(4)=2f(2) = f(4) = 2

More on Types of Functions