ATLAS Ouvrir dans l'atlas →

ExerciceMaths expertes, chapitre 6 — Applications des matrices · Pour aller plus loin

Exercice 24 Somme des carrés des premiers entiers

Démonstration

Pour n∈ℕ∗n\in\mathbb{N}^{*}, on pose Sn=12+22+⋯+n2S_{n}=1^{2}+2^{2}+\cdots+n^{2}.

1. Calculer S1S_{1}, S2S_{2} et S3S_{3}.

2. On cherche trois réels aa, bb et cc tels que, pour tout n∈ℕ∗n\in\mathbb{N}^{*}, Sn=an3+bn2+cnS_{n}=an^{3}+bn^{2}+cn. En écrivant cette égalité pour n=1n=1, 22 et 33, montrer que aa, bb et cc sont solutions d'un système que l'on résoudra à l'aide de la calculatrice.

3. Démontrer par récurrence que, pour tout n∈ℕ∗n\in\mathbb{N}^{*}, Sn=n(n+1)(2n+1)6S_{n}=\dfrac{n(n+1)(2n+1)}{6}.

4. Pourquoi la question 2 ne suffit-elle pas à démontrer la formule de la question 3 ?

5. Par la même méthode, trouver quatre réels aa, bb, cc, dd tels que 13+23+⋯+n3=an4+bn3+cn2+dn1^{3}+2^{3}+\cdots+n^{3}=an^{4}+bn^{3}+cn^{2}+dn pour n∈{1;2;3;4}n\in\{1;2;3;4\}, puis démontrer par récurrence la formule obtenue pour tout n∈ℕ∗n\in\mathbb{N}^{*}.

Source : inspiré de poly « Mathématiques : du lycée aux CPGE scientifiques » (LLG / H4), § 1.2 exemple 1 et n° 51 (transposition matricielle)

Corrigé

1. S1=1S_{1}=1, S2=1+4=5S_{2}=1+4=5 et S3=5+9=14S_{3}=5+9=14.

2. Pour n=1n=1, 22 et 33, l'égalité Sn=an3+bn2+cnS_{n}=an^{3}+bn^{2}+cn donne : {a+b+c=18a+4b+2c=527a+9b+3c=14  ⟺  (1118422793)⏟V(abc)=(1514)\left\{\begin{array}{rcl} a+b+c &=& 1 \\ 8a+4b+2c &=& 5 \\ 27a+9b+3c &=& 14 \end{array}\right. \iff \underbrace{\begin{pmatrix} 1 & 1 & 1 \\ 8 & 4 & 2 \\ 27 & 9 & 3 \end{pmatrix}}_{V}\begin{pmatrix} a \\ b \\ c \end{pmatrix}=\begin{pmatrix} 1 \\ 5 \\ 14 \end{pmatrix} La calculatrice donne V−1=(12−1216−522−123−3213)V^{-1}=\begin{pmatrix} \frac{1}{2} & -\frac{1}{2} & \frac{1}{6} \\[1mm] -\frac{5}{2} & 2 & -\frac{1}{2} \\[1mm] 3 & -\frac{3}{2} & \frac{1}{3} \end{pmatrix}, puis a=13a=\frac{1}{3}, b=12b=\frac{1}{2} et c=16c=\frac{1}{6}. On remarque que : n33+n22+n6=2n3+3n2+n6=n(2n2+3n+1)6=n(n+1)(2n+1)6\frac{n^{3}}{3}+\frac{n^{2}}{2}+\frac{n}{6}=\frac{2n^{3}+3n^{2}+n}{6}=\frac{n(2n^{2}+3n+1)}{6}=\frac{n(n+1)(2n+1)}{6}

3. On note 𝒫n\mathcal{P}_{n} : « Sn=n(n+1)(2n+1)6S_{n}=\dfrac{n(n+1)(2n+1)}{6} ».

Initialisation : 1×2×36=1=S1\dfrac{1\times 2\times 3}{6}=1=S_{1}.

Hérédité : Si 𝒫k\mathcal{P}_{k} est vraie pour un k∈ℕ∗k\in\mathbb{N}^{*}, alors : Sk+1=Sk+(k+1)2=k(k+1)(2k+1)6+(k+1)2S_{k+1}=S_{k}+(k+1)^{2}=\frac{k(k+1)(2k+1)}{6}+(k+1)^{2}

Sk+1=(k+1)(k(2k+1)+6(k+1))6=(k+1)(2k2+7k+6)6S_{k+1}=\frac{(k+1)\big(k(2k+1)+6(k+1)\big)}{6}=\frac{(k+1)(2k^{2}+7k+6)}{6} Or (k+2)(2k+3)=2k2+7k+6(k+2)(2k+3)=2k^{2}+7k+6, donc Sk+1=(k+1)(k+2)(2k+3)6S_{k+1}=\dfrac{(k+1)(k+2)(2k+3)}{6}, ce qui est 𝒫k+1\mathcal{P}_{k+1}.

Conclusion : 𝒫n\mathcal{P}_{n} est vraie pour tout n∈ℕ∗n\in\mathbb{N}^{*}.

4. Le système de la question 2 a seulement fourni l'unique candidat qui convient pour n=1n=1, 22 et 33. Rien ne garantissait a priori que SnS_{n} soit de la forme an3+bn2+cnan^{3}+bn^{2}+cn pour tout nn : trois valeurs ne permettent pas de conclure pour une infinité d'entiers. Le système trouve la formule, la récurrence la démontre. C'est le schéma « analyse, puis synthèse ».

5. Les sommes de cubes valent 11, 99, 3636 et 100100 pour n=1n=1, 22, 33, 44. Le système est : (11111684281279325664164)(abcd)=(1936100)et la calculatrice donne(abcd)=(1412140)\begin{pmatrix} 1 & 1 & 1 & 1 \\ 16 & 8 & 4 & 2 \\ 81 & 27 & 9 & 3 \\ 256 & 64 & 16 & 4 \end{pmatrix}\begin{pmatrix} a \\ b \\ c \\ d \end{pmatrix}=\begin{pmatrix} 1 \\ 9 \\ 36 \\ 100 \end{pmatrix} \qquad \text{et la calculatrice donne} \qquad \begin{pmatrix} a \\ b \\ c \\ d \end{pmatrix}=\begin{pmatrix} \frac{1}{4} \\[1mm] \frac{1}{2} \\[1mm] \frac{1}{4} \\[1mm] 0 \end{pmatrix} d'où la formule candidate n4+2n3+n24=n2(n+1)24=(n(n+1)2)2\dfrac{n^{4}+2n^{3}+n^{2}}{4}=\dfrac{n^{2}(n+1)^{2}}{4}=\left(\dfrac{n(n+1)}{2}\right)^{2}.

Montrons par récurrence 𝒬n\mathcal{Q}_{n} : « 13+⋯+n3=n2(n+1)241^{3}+\cdots+n^{3}=\dfrac{n^{2}(n+1)^{2}}{4} ». L'initialisation est immédiate : 1×44=1\frac{1\times 4}{4}=1. Si 𝒬k\mathcal{Q}_{k} est vraie, alors : 13+⋯+(k+1)3=k2(k+1)24+(k+1)3=(k+1)2(k2+4k+4)4=(k+1)2(k+2)241^{3}+\cdots+(k+1)^{3}=\frac{k^{2}(k+1)^{2}}{4}+(k+1)^{3}=\frac{(k+1)^{2}\left(k^{2}+4k+4\right)}{4}=\frac{(k+1)^{2}(k+2)^{2}}{4} ce qui est 𝒬k+1\mathcal{Q}_{k+1}. Ainsi : 13+23+⋯+n3=(n(n+1)2)2=(1+2+⋯+n)2\boxed{1^{3}+2^{3}+\cdots+n^{3}=\left(\frac{n(n+1)}{2}\right)^{2}=(1+2+\cdots+n)^{2}}

Dans l'édifice

Thèmes

systèmes linéaires, récurrence

Notions

matrices (espace des)

Ouvrir dans l'atlas interactif →