Exercises – Long Day#


Exercise 1: Repetition Exercise on Recursion#

We recursively define a sequence of numbers \(c_0,c_1,c_2,\dots\) as follows:

\(c_0=0\), \(c_1=1\), \(c_2=2\), and for \(n \ge 3\) it applies that \(c_n=c_{n-1}c_{n-2}+c_{n-3}.\)

Which values do \(c_3,c_4\) and \(c_5\) have?


Question 2: Derivative Functions and Induction#

As is known from high-school, it applies for all \(n \in \mathbb{Z}_{\ge 1}\) that the derivative of \(x^n\) is equal to \(nx^{n-1}\), meaning \((x^n)'=nx^{n-1}\). In this exercise we will show this using induction. You may in this exercise use the fact that the derivative of \(x\) is \(1\), as well as the product rule \((f(x)\cdot g(x))'=f(x)'\cdot g(x)+f(x) \cdot g(x)'.\)

Question a#

Formulate the base case of the induction. Then check that this base case holds.

Question b#

Now formulate the induction step. What is the induction hypothesis in this case?

Question c#

Show that the induction step holds. The induction principle now implies that the formula \((x^n)'=nx^{n-1}\) holds true for all \(n \in \mathbb{Z}_{n \ge 1}.\)

Exercise 3: The Sum of Odd Numbers and Induction#

Question a#

Compute for \(n=1,2,3,4\) the sum of the first \(n\) odd natural numbers. In other words, determine the value of \(\sum_{k=1}^n (2k-1)\) for \(n \in \{1,2,3,4\}.\) Is there a pattern in the values you find? Now try to find/guess a short expression of \(\sum_{k=1}^n (2k-1)\) that gives the correct result for \(n \in \{1,2,3,4\}\) and check that your guess also gives the correct value of \(\sum_{k=1}^n (2k-1)\) if \(n=5.\)

Question b#

Let \(P(n)\) be the logical proposition that \(\sum_{k=1}^n (2k-1)\) is equal to the short expression that you found in Question a. The goal is now to show that \(P(n)\) is true for all natural numbers \(n\) (that is, for all \(n \in \mathbb{N}=\mathbb{Z}_{\ge 1}\)).

Show that the base case of the induction holds.

Question c#

Now carry out the induction step and then use the induction principle to conclude that \(P(n)\) is true for all natural numbers \(n\).


Exercise 4: Multiplying into Parentheses#

Let \(n \in \mathbb{Z}_{\ge 2}\) and \(a,b_1,\dots,b_n\) be complex numbers. Show the following using induction on \(n\):

\[a \cdot (b_1+\cdots+b_n)=a\cdot b_1+\cdots + a \cdot b_n.\]

You may use the fact that the equation holds true for \(n=2\) by refering to Theorem 3.2.2, part(iii).


Opgave 5: The Geometric Series: part 1#

Spørgsmål a#

A bouncy ball is dropped from two metres above the floor. After hitting the floor, it bounces up one metre again before falling back to the ground. After hitting the floor the second time, it bounces up half a metre, then a quarter metre the third time, and so on. In other words, the fall height is halved with each impact with the floor.

Let \(n\) be a natural number. What is the total distance the ball has traveled by the time it hits the floor for the \(n\)’th time?


Exercise 6: The Geometric Series: part 2#

Let \(r \in \mathbb{C} \setminus \{1\}\) be a complex number and \(n\) a natural number. In this exercise we will show the following identity:

\[1+r+\cdots + r^n= \frac{r^{n+1}-1}{r-1}.\]

Question a#

Why can \(r\) not be equal to \(1\) in the identity?

Question b#

Check that the identity holds for \(n=1\).

Question c#

Show that the identity \(1+r+\cdots + r^n= \frac{r^{n+1}-1}{r-1}\) holds for all natural numbers \(n\).

Question d#

Let us return to the bouncy ball from Exercise 5. How many metres has the ball traversed in total before it lies still on the floor?


Exercise 7: An Inequality#

A sequence of real numbers \(a_0,a_1,\dots\) is defined recursively as follows:

\(a_1=0\) and \(a_n=\sqrt{2+a_{n-1}}\) if \(n \ge 2\).

Question a#

Compute \(a_1,a_2,a_3,\) and \(a_4\).

Question b#

The claim is now that for all natural numbers \(n\) it applies that \(a_n<2\). Prove this using induction on \(n\).


Exercise 8: A Sum with Fractions#

Show that the identity

\[\sum_{k=1}^n \frac{1}{k(k+1)}=1-\frac{1}{n+1}\]

applies for all \(n \in \mathbb{N}.\)


Exercise 9: Area under a Parabola#

Let \(N\) be a positive real number and \(n\) a natural number. We define \(d=N/n\). As is known from high-school, the area under the parabola (between the parabola and the first axis) from \(x=0\) to \(x=N\) can be determined as follows:

\[\int_0^N x^2 \mathrm dx =\frac13 N^3-\frac13 0^3=\frac13 N^3.\]

In this exercise we will investigate how well we can approximate this area by using the finite sum \(\sum_{k=1}^n d\cdot(kd)^2\). The situation is illustrated in the following figure:

Question a#

Use the drawing to realise that

\[\frac13 N^3 \le \sum_{k=1}^n d\cdot (kd)^2.\]

Question b#

Use the result from Exercise 4 to realise that

\[d^3\sum_{k=1}^n k^2=\sum_{k=1}^n d^3\cdot k^2=\sum_{k=1}^n d\cdot (kd)^2.\]

Question c#

Use induction on \(n\) to realise that \(\sum_{k=1}^n k^2=\frac13 n(n+1/2)(n+1)\) for all natural numbers \(n\).

Question d#

Now show that \(\sum_{k=1}^n d\cdot (kd)^2=\frac{1}{3}N(N+d/2)(N+d)\).

Note: The equation implies that if \(N\) is kept fixed, and if \(n\) goes towards infinity, then \(d\) goes towards zero and the sum thus goes towards \(\frac13 N^3,\) which is the area under the parabola.