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 \( 2071\) modulo \( 2526\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}540 & 1991 \\ 1117 & 787\end{pmatrix}\) .
- Expliquer pourquoi la matrice \( A \) est inversible modulo \( 2526\) .
- Déterminer l'inverse de la matrice \( A \) .
- Déchiffrer le message suivant, crypté par la méthode de Hill par paquet de 2 de clef \( A \) : \[2127-1837-2230-263-1062-1874\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
2526 & 2071 & 455 & 1&132 & -161 \\ \hline
2071 & 455 & 251 & 4&-29 & 132 \\ \hline
455 & 251 & 204 & 1&16 & -29 \\ \hline
251 & 204 & 47 & 1&-13 & 16 \\ \hline
204 & 47 & 16 & 4&3 & -13 \\ \hline
47 & 16 & 15 & 2&-1 & 3 \\ \hline
16 & 15 & 1 & 1&1 & -1 \\ \hline
15 & 1 & 0 & 15&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 2071\) est \( 2365\) .
- D'après le cours \( det(A)= -1798967\equiv_{2526}2071\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 2526\) .
- D'après le cours :
\[ \begin{pmatrix}540 & 1991 \\ 1117 & 787\end{pmatrix}^{-1} \equiv_{2526} 2365\begin{pmatrix}787 & -1991 \\ -1117 & 540\end{pmatrix}
\equiv_{2526}\begin{pmatrix}1861255 & -4708715 \\ -2641705 & 1277100\end{pmatrix}
\equiv_{2526}\begin{pmatrix}2119 & -251 \\ -2035 & 1470\end{pmatrix}
\]
- \[\begin{array}{r|*{6}{|c}} Cryptogramme & 2127 & 1837 & 2230 & 263 & 1062 & 1874\\\hline Vecteurs & &{ \begin{pmatrix}2127 \\ 1837\end{pmatrix} } & &{ \begin{pmatrix}2230 \\ 263\end{pmatrix} } & &{ \begin{pmatrix}1062 \\ 1874\end{pmatrix} }\\\hline\begin{pmatrix}2119 & -251 \\ -2035 & 1470\end{pmatrix} & &{ \begin{pmatrix}4046026 \\ -1628055\end{pmatrix} } & &{ \begin{pmatrix}4659357 \\ -4151440\end{pmatrix} } & &{ \begin{pmatrix}1780004 \\ 593610\end{pmatrix} }\\\hline\equiv_{2526} & &{ \begin{pmatrix}1900 \\ 1215\end{pmatrix} } & &{ \begin{pmatrix}1413 \\ 1304\end{pmatrix} } & &{ \begin{pmatrix}1700 \\ 0\end{pmatrix} }\\\hline & 1900 & 1215 & 1413 & 1304 & 1700 & 0\\\hline Message & TA & MP & ON & NE & RA & AA\end{array}\]Le message claire est \( TAMPONNERAAA \) .