Mathematics (JEE)HardJEE Main pattern

Let f: N → N be defined by f(n) = n + 1 if n is odd and f(n) = n − 1 if n is even. Then f is:

  1. A. one-one but not onto
  2. B. onto but not one-one
  3. C. both one-one and onto
  4. D. neither one-one nor onto

Correct answer: C. both one-one and onto

f swaps 1↔2, 3↔4, 5↔6, … Then f(f(n)) = n for every n, so f is its own inverse and therefore a bijection (one-one and onto).

More Sets, Relations and Functions questions

Exams that ask this topic