Baccalauréat 2023 — Mathematics specialty, Polynésie 14 mars 2023 (sujet 2) — exercise 4 : Sequences, logarithm function, algorithmics (official exam paper)
Statement
For each of the following statements, indicate whether it is true or false. Each answer must be justified. An answer that is not justified earns no points.
1. Statement: The sequence $u$ defined for every natural integer $n$ by $u_n=\dfrac{(-1)^n}{n+1}$ is bounded.
2. Statement: Every bounded sequence is convergent.
3. Statement: Every increasing sequence tends to $+\infty$.
4. Let the function $f$ be defined on $\mathbb{R}$ by $f(x)=\ln\left(x^2+2x+2\right)$.
Statement: The function $f$ is convex on the interval $[-3\,;\,1]$.
5. Consider the function `mystere` defined below, which takes a list $L$ of numbers as input.
Recall that `len(L)` returns the length, that is, the number of elements in the list $L$.
Python code:
```python
def mystere(L):
M = L[0]
# We initialize M with the first element of the list L
for i in range(len(L)):
if L[i] > M:
M = L[i]
return M
```
Statement: Running `mystere([2, 3, 7, 0, 6, 3, 2, 0, 5])` returns $7$.
⏳ Solution not generated yet
Open this statement in Expert Maths AI: the step-by-step solution is computed on demand, checked by a second resolution, then published here for everyone.
📝 See the solutionHave a similar exercise? Get it solved step by step, for free.
🧮 Solve my exercise