L'exercice suivant est automatiquement et aléatoirement généré par ataraXy.
Si vous regénérez la page (F5) les valeurs seront changées.
La correction se trouve en bas de page.
Exercice
- Calculer l'inverse modulaire de \( 659\) modulo \( 2526\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}2325 & 655 & 2050 \\ 1217 & 493 & 555 \\ 357 & 1054 & 225\end{pmatrix}\) .
- Expliquer pourquoi la matrice \( A \) est inversible modulo \( 2526\) .
- Déterminer l'inverse de la matrice \( A \) .
A cette fin, on pourra considérer le produit de la matrice \( A\) par la matrice \( B =\begin{pmatrix}-474045 & 2013325 & -647125 \\ -75690 & -208725 & 1204475 \\ 1106717 & -2216715 & 349090\end{pmatrix}\) .
- Déchiffrer le message suivant, crypté par la méthode de Hill par paquet de 2 de clef \( A \) : \[1103-2040-1962-1684-2260-2470\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
2526 & 659 & 549 & 3&-6 & 23 \\ \hline
659 & 549 & 110 & 1&5 & -6 \\ \hline
549 & 110 & 109 & 4&-1 & 5 \\ \hline
110 & 109 & 1 & 1&1 & -1 \\ \hline
109 & 1 & 0 & 109&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 659\) est \( 23\) .
- D'après le cours \( det(A)= 1117038275\equiv_{2526}659\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 2526\) .
- Réalisation le produit suggéré par l'énoncé :
\begin{eqnarray*}
A\times B
&=& \begin{pmatrix}2325 & 655 & 2050 \\ 1217 & 493 & 555 \\ 357 & 1054 & 225\end{pmatrix}\begin{pmatrix}-474045 & 2013325 & -647125 \\ -75690 & -208725 & 1204475 \\ 1106717 & -2216715 & 349090\end{pmatrix}\\
&=& \begin{pmatrix}1117038275 & 0 & 0 \\ 0 & 1117038275 & 0 \\ 0 & 0 & 1117038275\end{pmatrix}\\
&=&1117038275\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}\\
&\equiv_{2526}&659\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}
\end{eqnarray*}
Ainsi \( A\times B\equiv_{2526}659Id_{3}\) . Puisque \( 23\) est l'inverse de \( 659\) modulo \( 2526\) , on en déduit que \( A\times (23B)\equiv_{2526} Id_{3}\) et donc que \( 23B\equiv_{2526}A^{-1}\) . En conclusion :
\[ A^{-1}\equiv_{2526}23\begin{pmatrix}-474045 & 2013325 & -647125 \\ -75690 & -208725 & 1204475 \\ 1106717 & -2216715 & 349090\end{pmatrix}\equiv_{2526}\begin{pmatrix}-819 & 2369 & -683 \\ -456 & -1275 & 283 \\ 2515 & -2187 & 1442\end{pmatrix}\]
- \[\begin{array}{r|*{6}{|c}} Cryptogramme & 1103 & 2040 & 1962 & 1684 & 2260 & 2470\\\hline Vecteurs & &&{ \begin{pmatrix}1103 \\ 2040 \\ 1962\end{pmatrix} } & &&{ \begin{pmatrix}1684 \\ 2260 \\ 2470\end{pmatrix} }\\\hline\begin{pmatrix}-819 & 2369 & -683 \\ -456 & -1275 & 283 \\ 2515 & -2187 & 1442\end{pmatrix} & &&{ \begin{pmatrix}2589357 \\ -2548722 \\ 1141769\end{pmatrix} } & &&{ \begin{pmatrix}2287734 \\ -2950394 \\ 2854380\end{pmatrix} }\\\hline\equiv_{2526} & &&{ \begin{pmatrix}207 \\ 12 \\ 17\end{pmatrix} } & &&{ \begin{pmatrix}1704 \\ 2500 \\ 0\end{pmatrix} }\\\hline & 207 & 12 & 17 & 1704 & 2500 & 0\\\hline Message & CH & AM & AR & RE & ZA & AA\end{array}\]Le message claire est \( CHAMARREZAAA \) .