Question 1:
Solve the following questions from the discrete Math zybook:
A. Exercise 4.1.3, sections b, c
b)
Solution:
f(x) is not a well-defined function from R to R. x = +2 & -2. The function is not defined.
c)
Solution:
f(x) is a function from R to R because for every
, there is
.
Range:
B. Exercise 4.1.5, sections b, d, h, i, l
b)
Let A = {2, 3, 4, 5}.
f: A
Z
such that f(x) = x
2
Solution:
f(x) = {4, 9, 16, 25}
d)
f: {0,1}
5
Z
. For x
∈
{0,1}
5
, f(x) is the number of 1's that occur in x. For example f(01101) = 3,
because there are three 1's in the string "01101".
Solution:
Range of f(x) = {0, 1, 2, 3, 4, 5}
h)
Let A = {1, 2, 3}.
f: A × A
Z
×
Z
, where f(x,y) = (y, x).
Solution:
Range of f(x, y): {(1,1), (1, 2), (1, 3), (1, 4), (2,1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3)}