ch05 Student
ch05 Student
5.1.1 Let U denote the set of citizens of the state of Utopia. Which
of the following statements correctly specify a function from U to U ?
(Any assumptions you make about the Utopian civilization should
be stated explicitly.)
1
there would not be any g(x), or might have several daughters, in
which case g(x) would not be unique. Both cases would surely arise,
so g(x) fails to be a function on either count.
(iii) On the surely plausible assumption that women in Utopia
do not themselves have wives, the rule for h(x) does not describe its
value when x is female, so is not a function. (There might also be
unmarried men, and another possible problem is that, while Utopia
might be one of the societies in which only adult men were ‘citi-
zens’, in many of those societies men also have more than one wife
simultaneously, so that h(x) would then fail to satisfy the fourth
criterion.)
2
Solutions to Exercises in Discrete Mathematics
by: Norman L. Biggs: 2nd Edition 2002
5.1.2 Write down the values s(1), s(2), s(3), s(4), s(5), s(6) of the
function (sequence) defined by the rules
s(1) = 1, s(2) = 2, s(n + 1) = 2s(n) − s(n − 1) (n ≥ 2).
Make a conjecture about a formula for s(n) and try to prove it by
using the principle of induction.
Remark The ‘induction step’ just given does not use the full force
of the strong principle of induction. For example, at the value k = 5
it relies on the (assumed) True status of s(4) = 4 and of s(5) = 5,
but does not refer explicitly to values of s(1), s(2) or s(3).
3
Solutions to Exercises in Discrete Mathematics
by: Norman L. Biggs: 2nd Edition 2002
6
To be a bijection, a function must be both an injection and a
surjection, and the previous results show that p is neither, that r is
a surjection but not an injection, and that q is both. It follows that
only q is a bijection.
7
Solutions to Exercises in Discrete Mathematics
by: Norman L. Biggs: 2nd Edition 2002
f (n) = n3 , g(n) = n + 3,
(
n + 1 if n is odd;
h(n) =
n − 1 if n is even;
http://www.ucl.ac.uk/Mathematics/geomath/level2/complex/cn3.html
http://www.clarku.edu/˜djoyce/complex/
http://www.bath.ac.uk/˜ma1scr/maths1.html
http://students.bath.ac.uk/ma1mij/The%20Basics.html
http://www.maths.abdn.ac.uk/˜igc/tch/index/eg1006/notes/node32.html
8
Since m, n ∈ N it is clear that (m2 + mn + n2 ) 6= 0, and the product
of two non-zero elements of N is a non-zero element of N, so it must
be the case that m − n = 0, i.e. m = n. Hence f is an injection.
On the other hand, there is no k ∈ N such that k 3 = 2, since the
first few values of f (n) are f (1) = 1, f (2) = 8, f (3) = 27, . . ., so
f is not a surjection.
Since g(n) = n + 3 for all n ∈ N the first few values of g(n) are
g(1) = 4, g(2) = 5, g(3) = 6, . . .,
so there is no k ∈ N such that g(k) = 1; hence g is not a surjection.
But suppose that x, y ∈ N and g(x) = g(y); that means x + 3 =
y + 3, and hence (working in Z) x = (x + 3) − 3 = (y + 3) − 3 = y,
so that g is an injection.
Suppose that m ∈ N and m is odd; then m + 1 is even and
m + 1 ∈ N; also h(m + 1) = (m + 1) − 1 = m. Alternatively, suppose
that k ∈ N and k is even; then k − 1 is odd and k − 1 ∈ N; also
h(k − 1) = (k − 1) + 1 = k. Since every element of N is either even
or odd, h is a surjection.
Now suppose that u, v ∈ N and h(u) = h(v). If this common
value is even it follows from the definition of h(u) that u, v are odd
and that h(u) = u + 1 = v + 1 = h(v), so that u = (u + 1) − 1 =
(v + 1) − 1 = v. A similar argument, if the common value is odd,
shows that then too u = v. It follows that h is also an injection.
Summarising, f and g are both injections but not surjections,
while h is both. The only bijection is therefore h.
9
complex cube roots. (In fact, it has exactly three. Every non-zero
complex number has exactly 3 cube roots, while 0 has a unique nth
root - itself - for any n ∈ N.) It follows that F : C → C is not an
injection, and therefore not a bijection.
The function F , whether from R to R or from C to C, illustrates
that whether or not a function is an injection and/or a surjection
is closely related to the problem of counting solutions to equations,
which often crops up in several areas of pure mathematics.
The formula g(n) = n+3 can be extended to give a function from
the integers Z to Z, which turns out to be a bijection, unlike the g
in this question. (It is useful to verify the details of the appropriate
proofs.)
10
Solutions to Exercises in Discrete Mathematics
by: Norman L. Biggs: 2nd Edition 2002
Discussion The best way of showing that two functions f and g are
different is to find a value x of the variable such that f (x) 6= g(x); it
is sometimes not sufficient to find distinct rules or formulae for the
two functions, because in some circumstances (apparently) distinct
rules or formulae can take the same values. For example, for n ∈ N
the formulae
f (n) = (n + 5)2 and g(n) = (n + 2)2 + 3 × (2n + 7)
define functions which take identical values throughout N, and are
therefore the same, yet it takes a little work to check that the dif-
ferent formulae do have that property.
Similar remarks apply to the functions:
(sin x)2 and [1 − (cos x)2 ],
where verifying that they take the same values for all x ∈ R is, in
effect, proving Pythagoras’ Theorem.
Remark In this case, it is ‘obvious’ that the two formulae just found
yield different functions, but in other cases it can be much harder
to tell, until suitable specific values are substituted into them.
12
Solutions to Exercises in Discrete Mathematics
by: Norman L. Biggs: 2nd Edition 2002
13
Solutions to Exercises in Discrete Mathematics
by: Norman L. Biggs: 2nd Edition 2002
15
Solutions to Exercises in Discrete Mathematics
by: Norman L. Biggs: 2nd Edition 2002
16