Baccalauréat 2025 — Mathematics specialty, Amérique du Sud 13 novembre 2025 (Jour 1) — exercise 1 : Probability and sequences (official exam paper)
Statement
A student eats at the university restaurant every day. This restaurant offers vegetarian dishes and non-vegetarian dishes.
- When, on a given day, the student has chosen a vegetarian dish, the probability that they will choose a vegetarian dish the next day is $0,9$.
- When, on a given day, the student has chosen a non-vegetarian dish, the probability that they will choose a vegetarian dish the next day is $0,7$.
For every natural integer $n$, let $V_n$ denote the event “the student has chosen a vegetarian dish on the $n^{\text{th}}$ day” and let $p_n$ be the probability of $V_n$.
On the first day of classes, the student chose the vegetarian dish. Therefore, $p_1 = 1$.
1. a. State the value of $p_2$.
1. b. Show that $p_3 = 0,88$. A weighted tree may be helpful.
1. c. Knowing that on the $3^{\text{e}}$ day the student chose a vegetarian dish, what is the probability that they had chosen a non-vegetarian dish the previous day?
Round the result to $10^{-2}$.
2. Copy and complete the weighted tree below: the tree starts from a root and splits into two branches toward $V_n$ and $\overline{V_n}$; the branch toward $V_n$ is labeled $p_n$; from $V_n$, two branches lead to $V_{n+1}$ and $\overline{V_{n+1}}$; from $\overline{V_n}$, two branches lead to $V_{n+1}$ and $\overline{V_{n+1}}$.
3. Justify that, for every natural integer $n \geqslant 1$, $p_{n+1} = 0,2p_n + 0,7$.
4. We want to obtain the list of the first terms of the sequence $(p_n)$ for $n \geqslant 1$.
To do this, we use a function called `repas` programmed in Python, for which three versions are proposed below.
Program 1 :
1 def repas(n):
2 p=1
3 L=[p]
4 for k in range(1,n):
5 p = 0.2*p+0.7
6 L.append(p)
7 return(L)
Program 2 :
1 def repas(n):
2 p=1
3 L=[p]
4 for k in range(1,n+1):
5 p = 0.2*p+0.7
6 L.append(p)
7 return(L)
Program 3 :
1 def repas(n):
2 p=1
3 L=[p]
4 for k in range(1,n):
5 p = 0.2*p+0.7
6 L.append(p+1)
7 return(L)
4. a. Which of these programs makes it possible to display the $n$ first terms of the sequence $(p_n)$? No justification is expected.
4. b. Using the program chosen in question a., give the output displayed for $n = 5$.
5. Prove by induction that, for every natural number $n \geqslant 1$, $p_n = 0,125 \times 0,2^{n - 1} + 0,875$.
6. Deduce the limit of the sequence $(p_n)$.
⏳ 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