retagged by
413 views
5 votes
5 votes

The below function is defined from a set of all positive integers to a set of all integers.

$f(n) = \left\{\begin{matrix} (n-1)/2\;;& \text{if}\; n \;\text{is odd} \\ -n/2\;;& \text{if}\; n\;\text{is even} \end{matrix}\right.$             

Which of the following statements is true?

  1. It is one to one but not onto
  2. It is onto but not one-one
  3. It is bijection
  4. It is neither One-One nor Onto
retagged by

1 Answer

Best answer
4 votes
4 votes
$f(n)$ is : $Z^+\rightarrow Z$
$0$ is neither positive nor negative. Hence, $0 \notin  Z^+$

$f(1) = 0; \hspace{0.5cm} f(3) = 1;\hspace{0.5cm}  f(5) = 2;$ and so on…
$f(2) = -1;\hspace{0.5cm}  f(4) = -2;\hspace{0.5cm}  f(6) = -3;$ and so on…

We can see, $f(n)$ is One to One and Onto $\implies$ bijection.
selected by
Answer:

Related questions

438
views
1 answers
4 votes
GO Classes asked Apr 21, 2022
438 views
Let $\text{Z}$ be the set of all integers. Which of these functions from $\text{Z}$ to $\text{Z}$ is not Onto$f(n) = n-1$f(n) = n^{2} + 1$f(n) = n^{3}$f(n) = \left \lfloor \frac{n}{2} \right \rfloor$
325
views
1 answers
3 votes
GO Classes asked Apr 21, 2022
325 views
Which of the following statements must be true?$\left \lfloor x \right \rfloor = \left \lceil x \right \rceil$ if and only if $x$ ... $x.$
439
views
1 answers
5 votes
GO Classes asked Apr 21, 2022
439 views
Let $\text{N}$ be the set of positive integers. Consider the relation $\text{R}$ on $\text{N}$ defined by $x\text{R}y$ if and only ... $\text{R}$ on $\text{N}$ is ________ReflexiveSymmetricTransitiveEquivalence relation
788
views
1 answers
4 votes
GO Classes asked Apr 21, 2022
788 views
A relation $\text{R}$ on a set $\text{A}$ is said to be triangular iff $a\text{R}b$ and $c\text{R}b$ together imply $a\text{R}c,$ ... If a relation $\text{S}$ is transitive and triangular, then $\text{S}$ is a symmetric relation.