ExamBro
ExamBro
GUJCET · Maths · Relations and Functions

Function \(f: N \rightarrow Z , f(n)=\left\{\begin{array}{cl}\frac{n}{2} & , n \text { is even } \\ -\left(\frac{n-1}{2}\right), & n \text { is odd }\end{array}\right.\) is ____________ .

  1. A not one-one but onto
  2. B one-one but not onto
  3. C one-one and onto
  4. D not one-one and onto
Verified Solution

Answer & Solution

Correct Answer

(C) one-one and onto

Step-by-step Solution

Detailed explanation

For one-one: If \(n_1, n_2\) are even, \(f(n_1) = \frac{n_1}{2}\) and \(f(n_2) = \frac{n_2}{2}\). \(f(n_1)=f(n_2) \implies n_1=n_2\).