Exercise 7.1

Exercise 7.1#

Question 1#

Consider the following series:

\[\begin{align*} T_0 = 1\\ T_n = \left(T_{n - 1}\right)~^{3/2} + 2 \end{align*}\]

calculate the value of \(n\) where \(T_n\) first exceeds a value of 100.

Hint: You may wish to use a while loop.

(The answer is \(n = 4\))

Question 2#

Calculate the \(N\)-th term in the Fibonacci sequence, where \(N\) is given as a user input. The sequence is given by:

\[\begin{align*} T_0 &= 1 \\ T_1 &= 1 \\ T_n &= T_{n-1} + T_{n-2}\\ \end{align*}\]