Question:medium

A function \( f \) from the set of natural numbers to integers defined by \[ f(n) = \begin{cases} \frac{n-1}{2}, & \text{when } n \text{ is odd} -\frac{n}{2}, & \text{when } n \text{ is even} \end{cases} \] is

Show Hint

Split domain into cases (odd/even) to analyze injectivity and surjectivity clearly.
Updated On: May 6, 2026
  • neither one-one nor onto
  • one-one but not onto
  • onto but not one-one
  • one-one and onto
Show Solution

The Correct Option is D

Solution and Explanation

Was this answer helpful?
0