Problem

Problem

A function ff from the set of natural numbers to integers defined by f(n)={n−12,when n is odd−n2,when n is evenf(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 (a) One-one but not onto (b) Onto but not one-one (c) One-one and onto both (d) Neither one-one nor onto

Browse the problem library