Skip to main content

PLP An introduction to mathematical proof

Appendix A Hints for Exercises

1 Sets
1.4 Exercises

1.4.2.

Hint.
  1. No hint.
  2. No hint.
  3. The elements of the set are close to other numbers that may be easier to find connection between.
  4. Can you see a connection between the numerators and the denominators? The previous question may give you a hint.
  5. What do the elements have in common?
  6. What do the elements have in common?

1.4.5.

Hint.
Pay close attention to notation! For part (h), this is an issue you would only come across if you are typing your math in a program such as LaTeX.

1.4.9.

Hint.
Try writing out the first few terms of each set.

2 A little logic
2.7 Exercises

2.7.9.

Hint.
Carefully determine what is the hypothesis and what is the conclusion of each implication, and then refer to the truth table of the implication.

2.7.14.

Hint.
What is the only situation in which an implication is false?

2.7.15.

Hint.
Is the conclusion of the implication true or false? What does that tell you?

2.7.16.

Hint.
You don’t have to use truth tables to determine the answer (although you could).

3 Direct proofs
3.5 Exercises

3.5.1.

Hint.
Think about what does being even mean and how we can use it.

3.5.2.

Hint.
Think about what being odd means and how we can use it.

3.5.6.

Hint.
Think about what it means for \(n\) to divide \(a\) and \(b\text{,}\) and how we can use that information.

3.5.7.

Hint.
Think about the divisors of 1 and how you might use that.

3.5.8.

Hint.
Think about how we can get from \(2\) and \(3\) to \(6\text{.}\)

3.5.9.

Hint.
Think about what it means for \(3\) to divide an integer and how we can use that information.

3.5.13.

Hint.
Try writing down different integer roots and check whether their product is also an integer root.

3.5.16.

Hint.
Try writing the inequality in a different way, the difference of squares might help.

4 More logic
4.3 Exercises

5 More proofs
5.5 Exercises

5.5.3.

Hint.
What is the contrapositive of this statement?

5.5.4.

Hint.
What is the contrapositive of the statement?

5.5.5.

Hint.
What is the contrapositive of the statement?

5.5.9.

Hint.
Think carefully about the parity of \(n\text{.}\)

5.5.11.

Hint.
Try proving by cases.

5.5.12.

Hint.
Think carefully about the contrapositive.

5.5.13.

Hint.
What is the contrapositive of the statement?

5.5.15.

Hint.
If we assume the hypothesis is true, then what do we know about \(q\text{?}\)

5.5.16.

Hint.
Expand the cubes and simplify the sum

5.5.17.

Hint.
Modular arithmetic makes this much easier.

5.5.18.

Hint.
You may want to look at cases for \(x\in\mathbb R\) to get rid of the absolute values.

5.5.21.

Hint.
  • Notice that the statement is equivalent to proving
    \begin{equation*} -|x-y|\leq |x|-|y|\leq |x-y|. \end{equation*}
  • Use the triangle inequality!

5.5.22.

Hint.
Try sketching the function.

6 Quantifiers
6.6 Exercises

6.6.1.

Hint.
You can think about the division algorithm and cases for \(n\text{.}\) Also try factoring things.

6.6.2.

Hint.
Try to eliminate \(n\text{.}\) What does this tell you about \(k\text{?}\) What else do you know about \(k\text{?}\)

6.6.3.

Hint.
What can you say about \(a^2\) modulo 4 for all \(a \in \mathbb{Z}\text{?}\)

6.6.6.

Hint.
Try playing around with some simple functions.

6.6.7.

Hint.
If you are unsure if the statement is true or not, then explore its negation — it might be easier to understand.

6.6.9.

Hint.
Which primes are even?

6.6.11.

Hint.
Think carefully about the truth table of the implication. Also, negate carefully. Finally, be careful with your inequalities.

6.6.12.

Hint.
Be careful of the order of quantifiers; make sure you pick variables in the correct order.

6.6.13.

Hint.
Start with a few simple functions you know well. Sketch them and try to decide if they are type A or type B or neither. Also, you should write out the negations of these definitions; what does it mean if a function is not type A? what does it mean if it is not type B?

6.6.19.

Hint.
Can you bound \(\sin(1/x)\) by a simpler function?

6.6.20.

Hint.
Carefully negate the definition of convergence. Also, explore the first few terms of the sequence.

6.6.23.

Hint.
Split the sequence at some large \(N\text{,}\) so that when \(n\geq N\text{,}\) we know that \(a_n\) is really close to \(L\text{.}\) We can use this to bound \(|a_n|\) when \(n\geq N\text{.}\) That leaves us to bound only finitely many of the terms \(|a_n|\text{,}\) the terms for which \(n\lt N\text{.}\) While we cannot take the maximum of an infinite set of values, we can find the maximum of a finite set of values and it will be finite. See Exercise 7.3.16 which explores this point.

6.6.25.

Hint.
For part (b), try some of the sequences we have seen that converge with the Euclidean distance, and see whether they converge under this new distance? Choosing your \(\epsilon \) satisfying \(0\lt \epsilon\lt 1\text{,}\) would be very useful in understanding the convergence of a sequence.

7 Induction
7.3 Exercises

7.3.2.

Hint.
Write out the statement for \(n=k\) and \(n=k+1\) and try to work out how to make the left-hand side of the first statement look like the left-hand side of the second statement.

7.3.4.

Hint.
How can we get from \(z^{2n+1}\) to \(z^{2(n+1)+1}\text{?}\)

7.3.5.

Hint.
The even-ness of the exponent is required, otherwise the statement is simply not true:
\begin{equation*} 3^3 -1 = 27-1 = 26 \end{equation*}
and 8 definitely does not divide 26. Rephrase things to take advantage of what you know about even numbers.

7.3.10.

Hint.
The sum \(\sum\limits_{k=1}^n k\) is a very standard result and is in the main text. You can use that result without proof.

7.3.11.

Hint.
Be careful when you expand \((n+1)^3 \) and \((n+1)^4 \text{.}\)

7.3.13.

Hint.
  • Take the first few derivatives and see if you can find a pattern.
  • The factorial will be helpful. Recall that for any \(n \in \mathbb{N}\text{,}\)
    \begin{equation*} n! = n \cdot (n-1) \cdot (n-2) \cdots 2 \cdot 1 \end{equation*}
    and also the double-factorial \(n!!\)
    \begin{equation*} n!! = \begin{cases} n \cdot (n-2) \cdot (n-4) \cdots 2 \amp \text{when } n \text{ is even} \\ n \cdot (n-2) \cdot (n-4) \cdots 3 \cdot 1 \amp \text{when } n \text{ is odd} \end{cases} \end{equation*}

7.3.14.

Hint.
Factoring a cubic can be painful. Perhaps write down the cubics you need and then expand them out. This might help with some of the arithmetic.

7.3.15.

Hint.
Adding to the end of the series will get you intro trouble. Try adding to the beginning instead. You might have to think about that a little.

7.3.17.

Hint.
For (b) try integration by parts.

7.3.19.

Hint.
Notice that every number is of the form
\begin{equation*} 100 \;\; \underbrace{1\cdots1}_{n\;\;\; 1s} \;\; 7 \end{equation*}
Also useful is the fact that if \(d\mid a\) and \(d\mid b\text{,}\) then \(d\mid (a+b)\text{.}\)

7.3.20.

Hint.
The proof of Result 7.2.18 works because \(5\) is a Fibonacci number. See how you might generalise what is happening in the proof.

7.3.21.

Hint.
  • For Pascal’s identity, rewrite the binomials as factorials and juggle carefully.
  • For the binomial theorem, expand and group carefully. The following might also be handy
    \begin{gather*} \binom{n}{0} = \binom{n}{n} = 1. \end{gather*}
    Also, be careful around the edges of your expanded sums.

7.3.22.

Hint.
Integrate by parts!

7.3.23.

Hint.
As a base case, consider \(n=0\) and \(n=1\text{.}\) This means that your inductive hypothesis can include both the \(n-1\) and \(n\) cases.

7.3.25.

Hint.
Shops will not be intimidated by excess purchasing power; even though you have lots of money, this fictional mathematical country does not allow you to overpay for an item.

7.3.27.

Hint.
Strong induction helps, as does the parity of the number.

7.3.28.

Hint.
You can simplify the analysis of the floor function by studying even and odd values separately.

7.3.29.

Hint.
Be careful as to how you can go from \(k=n+1\) stones to \(k\leq n\) stones in your inductive step and see whether different splittings change the calculations. Try playing this game with \(5\) or \(6\) stones to get a better understanding of how this works.

8 Return to sets
8.6 Exercises

8.6.3.

Hint.
Revise the definition of set-differences and then try to make a small example.

8.6.9.

Hint.
Remember that the power set is the set of subsets. That is
\begin{equation*} X \in \pow{A} \iff X \subseteq A. \end{equation*}

8.6.11.

Hint.
You may need to use mathematical induction on the size of \(A\text{.}\)

8.6.12.

Hint.
Try some small examples of sets \(A,B\) to gain some intuition.

8.6.13.

Hint.
Recall that
  • \(x \in \bigcup_{i \in I} A_i\) if and only if there is some \(i \in I\) so that \(x \in A_i\text{,}\) and
  • \(x \in \bigcap_{i \in I} A_i\) if and only if for every \(i \in I\) we have \(x \in A_i\text{.}\)

8.6.15.

Hint.
In order to prove that \(a\) is the supremum of a set \(S\text{,}\) it suffices to show that \(a\) is an upper bound for \(S\text{,}\) and that if \(b \lt a\text{,}\) then \(b\) is not an upper bound of the set. The latter statement may be rephrased as follows: if \(b \lt a\text{,}\) then there is some \(s\in S\) with \(s \gt b\text{.}\)
If you want to show instead that \(S\) has no maximum, prove that any \(s\in S\) is not an upper bound of the set. That is, for any \(s\in S\text{,}\) there is some \(t\in S\) with \(t \gt s\text{.}\)

8.6.16.

Hint.
Suppose we are trying to prove that \(a\) is the least upper bound of a set \(S\text{.}\) Then we need prove that the two defining properties of the supremum hold for \(a\text{.}\) In order to prove the statement “if \(b\) is an upper bound for \(S\text{,}\) then \(a\leq b\text{,}\)” it may be easier to show the contrapositive, “if \(b \lt a\text{,}\) then \(b\) is not an upper bound for \(S\text{.}\)” In order to prove that contrapositive, we need to show that for any \(b \lt a\text{,}\) there is some \(s\in S\) so that \(s \gt b\text{.}\) Then \(b\) will not be an upper bound for \(S\text{,}\) by definition.

8.6.17.

Hint.
For any \(\epsilon\text{,}\) we know that \(a-\epsilon\) is not an upper bound of the set \(\{a_n:n\in\mathbb{N}\}\text{.}\)

9 Relations
9.7 Exercises

9.7.7.

Hint.
You can first look at the relation \(R\) for \(E=\set {1,2,3,4}\text{,}\) and \(q=1\) to understand the relation better. Also, recall that \(\overline{A}\cap \overline{B}=\overline{A\cup B}\text{.}\)

9.7.10.

Hint.
Try looking at examples of relations on a small set, like \(A=\{1,2,3\}\text{.}\)

9.7.11.

Hint.
For part (a), try looking at examples of relations on a small set, like \(A=\{1,2,3\}\text{.}\)

9.7.12.

Hint.
Try some simple examples on small sets. Also, modus-tollens might help.

9.7.14.

Hint.
Remember that every element of the set \(R\) is the intersection of two elements of \(P\) and \(Q\text{.}\) Also, read the definition of partitions carefully.

9.7.15.

Hint.
For the second part, start by finding the invertible elements in \(\mathbb Z_6\)

9.7.16.

Hint.
  1. Bézout’s identity tells you about the greatest common divisor of two numbers. What does it tell you about some of the numbers in the statement of the question? How can you use that information to get an equation for \(n\text{?}\)
  2. When a prime is at least 5 what do you know about its remainder when you divide by 3 or 8 or 24? And how can you turn the congruence we want to prove into a statement about divisibility? And how can we use (a) to reduce the number of cases we need to check?

9.7.17.

Hint.
Try using Bézout’s identity.

9.7.19.

Hint.
  • For part (a), try using Bézout’s identity.
  • For part (b), we can show that the two quantities are equal by showing that \(m\gcd(a,b)\leq \gcd(ma,mb)\) and \(\gcd(ma,mb)\leq m\gcd(a,b)\text{.}\) Also, for any \(d,e\in\mathbb N\text{,}\) one way to show that \(d\leq e\) is to prove that \(d\mid e\text{.}\)
  • For part (c), some small numbers will help you build a counter-example.

9.7.20.

Hint.
  1. The recurrence for the binomial coefficients is just adding integers.
  2. Think about prime factors.
  3. What coefficients in the sum are not divisible by \(p\text{?}\)

10 Functions
10.8 Exercises

10.8.1.

Hint.
The question asks for the range, not the codomain.

10.8.2.

Hint.
Remember that a function has to give a valid output for every valid input — why does this tell you about the \(y\)-values?

10.8.3.

Hint.
How do we show that two sets are equal?

10.8.5.

Hint.
Recall that
\begin{equation*} x \in f^{-1}(D) \iff f(x) \in D. \end{equation*}
Also, modus tollens 2.5.2 can help you.

10.8.6.

Hint.
Completing squares may help with the answer (to be honest, completing squares will help you with almost everything quadratic functions related, cherish it).
Also, try choosing some small \(a,b\) values and sketch the function.

10.8.7.

Hint.
Can you determine \(f(n)\) for small \(n\in\mathbb N\text{?}\)

10.8.8.

Hint.
This is a good example as to why when we want to determine whether a function is injective and/or surjective, we shouldn’t only look at `what kind’ of a function it is, but also consider the domain and the codomain of the function as well.
Remember, a function is not just a formula!

10.8.9.

Hint.
  • You can start the problem with a small set, say \(A=\set{1,2,3}\text{,}\) to understand the set \(F\) and the function \(g\text{.}\)
  • To find \(|F|\text{,}\) think about how many different images there are there for each element in \(A\text{.}\)

10.8.11.

Hint.
For one side of the implication, think about how we can express the surjectivity in terms of the codomain and the range.

10.8.13.

Hint.
Think how an integer factors.

10.8.14.

Hint.
  • You need to do a lot of work mapping elements and subsets. We recommend that you use (say) \(x,y\) to denote elements of \(A\) and \(B\text{,}\) and (say) \(X, Y\) to denote subsets of \(A,B\) (which makes \(X,Y\) elements of \(\mathcal{P}(A), \mathcal{P} (b)\)).
  • Try this with two small sets. For example, take \(A=\{1,2,3\}\) and \(B=\{10,20,30\}\text{.}\) Construct a simple bijection from \(A\) to \(B\) and then use that to make a bijection from \(\mathcal{P}(A)\) to \(\mathcal{P}(B)\text{.}\)

10.8.15.

Hint.
  • What do the equivalence classes of \(\rel\) look like?
  • How can we show that \(f\) is, indeed, a function?

10.8.16.

Hint.
To show that an integer is zero, one can show that it is small and divisible by a bigger integer.

10.8.17.

Hint.
Be careful, the symbol \(f^{-1}\) denotes the preimage not the inverse-function. It only denotes the inverse-function when the function is bijective.
Also, see Theorem 10.3.6 and its proof.

10.8.18.

Hint.
Be careful, the symbol \(f^{-1}\) denotes the preimage not the inverse-function. It only denotes the inverse-function when the function is bijective.
Also, see Theorem 10.3.6 and its proof.

10.8.20.

Hint.
To show that two functions with same domains and codomains are different, it suffices to show that there is a single point at which they differ. To show that they are the same, you must show they are equal on every point of the domain.

10.8.21.

Hint.
Try to construct counterexamples on small sets (eg. \(\{1,2,3\}\)) rather than on \(\mathbb{R}\text{.}\)

10.8.22.

Hint.
Two functions are equal when they are equal at all points in their domains.

10.8.23.

Hint.
Your observations from part (b) can be helpful in solving part (c).

10.8.24.

Hint.
  • You may need to show that if \(f\circ g\) is injective then \(g\) is injective, and then show that if \(f\circ g\) is surjective then \(f\) is surjective.
  • Combining part (a) with Theorem 10.5.3, we know that \(f\) is bijective if and only if \(f\circ f\) is bijective.
  • For part (b), it might help to compute \((f\circ f)(x)\text{.}\)

10.8.26.

Hint.
Observe that \(f\) takes even numbers to odd numbers and odd numbers to even numbers. Considering that, what should the inverse of \(f\) look like?
Also - there are some very handy lemmas in Section 10.6.

10.8.27.

Hint.
Make good use of the fact that
\begin{equation*} g(g(g(x))) = (g \circ g)( g(x) ) = i_A(x)= x. \end{equation*}

11 Proof by contradiction
11.3 Exercises

11.3.1.

Hint.
If \(a\) were to satisfy both congruences, then we get 2 equations. Combining them helps.

11.3.3.

Hint.
Remember that \(1\) is not divisible by very many integers!

11.3.5.

Hint.
Modular arithmetic can really help with problems like this since they take all the infinite possible integers down to a small finite set of equivalence classes. Consider the equation modulo \(4\text{.}\)

11.3.7.

Hint.
  1. Remember that \(2 \mid 6\text{.}\)
  2. The result from (a) can help you with (b). How can we manipulate \((\sqrt{2}+\sqrt{3})\) to somehow get an expression involving \(\sqrt{6}\text{?}\) Or, alternatively, how can we use that expression to say something about \(\sqrt{2}\text{?}\)

11.3.8.

Hint.
Please observe that \(25\mid 5^3\text{.}\)
Euclid and the prime-ness of 5 also help.

11.3.9.

Hint.
Prove this by contradiction, but negate the statement carefully. Then, to get more information, Bézout’s identity could be very useful.

11.3.12.

Hint.
What would the equation look like if \(x\) were a rational number?

11.3.14.

Hint.
If \(A\) were to have a maximum, what is the difference between \(\sqrt{2}\) and that? It is not a rational number, but how can we use it to make a rational number that is still in \(A\text{?}\)

11.3.15.

Hint.
  • This may look like an induction question, but it’s not!
  • Euclid’s lemma 9.5.9 should be useful, which tells us that if a prime \(p\) divides \(ab\text{,}\) then \(p\mid a\) or \(p\mid b\text{.}\)
  • What power of \(7\) divides \(35\text{?}\)

11.3.19.

Hint.
What would happen if the function weren’t strictly increasing or decreasing?

12 Cardinality
12.7 Exercises

12.7.4.

Hint.
  • Splitting \(\mathbb{N}\) into even and odd doesn’t work because it is a partition into only two parts.
  • Similarly, splitting \(\mathbb{N}\) as \(\set{\set{n} | n \in \mathbb{N}}\) doesn’t work because the parts are all finite.

12.7.6.

Hint.
Your answers for (d) or (f) may depend on (a).

12.7.8.

Hint.
Can you think of a bijection from \((0,\infty)\) to \(\mathbb R\) How can we use that function in this question?

12.7.9.

Hint.
Question 13 in Section 10 may be useful.

12.7.10.

Hint.
Try sketching the graph of potential bijections from \((0,1)\) to \(\mathbb{R}\text{.}\)

12.7.12.

Hint.
The sets do not have to be finite.

12.7.13.

Hint.
The explicit bijection in the proof of {Result 12.5.2} may be useful.

12.7.14.

Hint.
For part (a), try to define an injection from each set to the other; you can then use Cantor-Schröder-Bernstein 12.5.1 to infer there is a bijection between the sets. For the function from \((0,1)\times(0,1)\) to \((0,1)\text{,}\) consider the decimal representation of elements in \((0,1)\text{.}\)

12.7.15.

Hint.
Remember that the sets \(A\) and \(B\) may be infinite!

12.7.16.

Hint.
  • Any \(x\in \mathbb{R}\) can be written as \(x_0.x_1x_2x_3x_4\dots\) where \(x_0\in \mathbb{Z}\) and \(x_i\in \set{0, 1, \dots, 9}\) for \(i\geq 0.\) For example, if \(x=3.141592\dots\) then
    \begin{align*} x_0 \amp =3 \amp x_1 \amp =1 \amp x_2 \amp =4 \amp x_3 \amp =1 \\ x_4 \amp = 5 \amp x_5 \amp = 9 \amp x_6 \amp = 2 \amp \cdots \end{align*}
  • We need to be careful! Notice that \(0.25000000\dots = 0.24999999\dots\text{.}\)

12.7.17.

Hint.
  • The function \(h\) is not a from \(A\) to \(B\text{,}\) it is a function from the partition \(P\) to the partition \(Q\text{.}\)
  • What does it mean for \(X\) and \(h(X)\) have the same cardinality?
  • Corollary 9.3.7 may be useful.

12.7.20.

Hint.
Try using the diagonal sweeping argument given in the proof of Result 12.2.6. For part (c), try defining new sets \(B_n\) such that
\begin{equation*} \bigcup_{n=1}^\infty A_n=\bigcup_{n=1}^\infty B_n \end{equation*}
and \(B_n\cap B_m=\emptyset\) for \(m\neq n\text{.}\) Then apply part (b).