Question
Question: Consider the given function \[f:N\to z:f\left( n \right)\left\\{ \begin{matrix} \dfrac{n}{2},n-...
Consider the given function f:N\to z:f\left( n \right)\left\\{ \begin{matrix}
\dfrac{n}{2},n-even \\\
-\left( \dfrac{n-1}{2} \right),n-odd \\\
\end{matrix} \right. , what type of function is this?
a.Not one-one but onto
b.One-one but onto
c.One-one and onto
d.Not one-one and onto.
Solution
Hint: Consider the case of odd by putting n = 2m+1. For the case of even take n = 2m. Substitute these values for n-even and n-odd functions by considering function f(m1)and f(m2).
Complete Step-by-step answer:
Given a function f\left( n \right)=\left\\{ \begin{matrix}
\dfrac{n}{2},n-even \\\
-\left( \dfrac{n-1}{2} \right),n-odd \\\
\end{matrix} \right.
Now, let us consider the case where n is odd.
Let, n=2m1+1, is odd.
∴f(m1)=f(m2)can be taken as one-one so, m1=m2.
Now checking the condition of f(m1)=f(m2), substituting the value of n in the function for n-odd.
2−(2m1+1)−1=2−(2m2+1)−1
Cancelling out the like terms, we get
m1=m2
Which means that f(m1)will only be equal to f(m2)when m1=m2.
∴f(m1)=f(m2)
As it is odd, the function is one-one.
∵One-one function is a function that comprises individually that never discrete elements of its co-domain (z).
Now let us consider the case where n is even.
∴Let n=2m1
f(2m1)=f(2m2)
Now, checking this condition by putting the value of n in the function for n-even