Brevet 2024 · Métropole — Antilles — Guyane (juillet) · 1 juillet 2024
Calcul littéral · Algorithmique (Scratch)
La grande idée
On considère les deux programmes de calcul suivants :
Programme A :
Le programme B est donné sous forme de script Scratch :
$E_1 = (x + 2) - 1$ · $E_2 = (x + 2)(x - 1)$ · $E_3 = x + 2 \times x - 1$
a. $5 \xrightarrow{\text{carré}} 25 \xrightarrow{\times 2} 50 \xrightarrow{+\,2 \times 5} 60 \xrightarrow{-4} \mathbf{56}$. ✓
b. Avec $-9$ : Résultat 1 $= -9 + 2 = -7$ ; Résultat 2 $= -9 - 1 = -10$.
Le programme affiche $(-7) \times (-10) = \mathbf{70}$.
a. Le programme B calcule (nombre choisi $+ 2$) $\times$ (nombre choisi $- 1$), c'est-à-dire $\boxed{E_2 = (x + 2)(x - 1)}$.
b. Programme A : $x \xrightarrow{\text{carré}} x^2 \xrightarrow{\times 2} 2x^2 \xrightarrow{+\,2x} 2x^2 + 2x \xrightarrow{-4} \mathbf{2x^2 + 2x - 4}$.
On développe le résultat du programme B :
$(x + 2)(x - 1) = x^2 - x + 2x - 2 = x^2 + x - 2$
Et on factorise le résultat du programme A par 2 :
$2x^2 + 2x - 4 = 2(x^2 + x - 2)$
Quel que soit $x$, le résultat du programme A est bien le double du résultat du programme B. ∎