Question #284729

Let us define a function f : N → Q as follows,

(n-1)/4 n is odd

f(n) = {

(n+1)/2 n is even

Which of the following are true?

f is not one to one.

f is not onto.

f is onto.

f is one to one.


Expert's answer

Let us define a function f:N→Qf : \N → \mathbb Q as follows, f(n)={n−14, if n is oddn+12, if n is even.f(n) =\begin{cases} \frac{n-1}4, \text{ if } n \text{ is odd}\\ \frac{n+1}2, \text{ if } n \text{ is even} \end{cases}.


Since f(7)=7−14=64=32f(7)=\frac{7-1}4=\frac{6}4=\frac{3}2 and f(2)=2+12=32,f(2)=\frac{2+1}2=\frac{3}2, we conclude that f(7)=f(2),f(7)=f(2), and hence a function f:N→Qf : \N → \mathbb Q is not one-to-one.

Taking into account that n−14=18\frac{n-1}4=\frac{1}8 implies n=12+1=32∉Nn=\frac{1}2+1=\frac{3}2\notin \N and n+12=18\frac{n+1}2=\frac{1}8 implies n=14−1=−34∉N,n=\frac{1}4-1=-\frac{3}4\notin \N, we conclude that for 18∈Q\frac{1}8\in\mathbb Q the preimage f−1(18)=∅,f^{-1}(\frac{1}8)=\emptyset, and thus a function f:N→Qf : \N → \mathbb Q is not onto.


Therefore, the statements "ff is not one to one" and "ff is not onto" are true, and the staterments "ff is onto" and "ff is one to one" are false.


LATEST TUTORIALS
APPROVED BY CLIENTS