Week 10 Tutorial
Week 10 Tutorial
(a) f (n) = ±n
√
(b) f (n) = n2 + 1
1
(c) f (n) = n2 −4
1
(d) f (n) = n
a. The function that assigns to each pair of positive integers the first integer of the
pair.
c. The function that assigns to each bit string the number of ones minus the number
of zero’s in the string.
(a) b1.1c
(b) d1.1e
(c) b−0.1c
(d) d−0.1e
(e) d2.99e
(f) d−2.99e
(g) b 21 + d 12 ec
(h) db 12 c + d 12 e + 12 e
1
0.4 (10 from 2.3)
10. Determine whether each of these functions from {a, b, c, d} to itself is one-to-one.
(a) f (n) = n − 1
(b) f (n) = n2 + 1
(c) f (n) = n3
(d) f (n) = d n2 e
(a) f (m, n) = 2m − n
(b) f (m, n) = m2 − n2
(c) f (m, n) = m + n + 1
(d) f (m, n) = |m| − |n|
(e) f (m, n) = m2 − 4
2
0.8 (18 from 2.3)
18. Determine whether each of these functions is a bijection from R to R that is:
(d) f (x) = x5 + 1