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 \( 1811\) modulo \( 2526\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}2359 & 111 \\ 247 & 188\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 \) : \[1735-1700-561-291\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
2526 & 1811 & 715 & 1&732 & -1021 \\ \hline
1811 & 715 & 381 & 2&-289 & 732 \\ \hline
715 & 381 & 334 & 1&154 & -289 \\ \hline
381 & 334 & 47 & 1&-135 & 154 \\ \hline
334 & 47 & 5 & 7&19 & -135 \\ \hline
47 & 5 & 2 & 9&-2 & 19 \\ \hline
5 & 2 & 1 & 2&1 & -2 \\ \hline
2 & 1 & 0 & 2&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 1811\) est \( 1505\) .
- D'après le cours \( det(A)= 416075\equiv_{2526}1811\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 2526\) .
- D'après le cours :
\[ \begin{pmatrix}2359 & 111 \\ 247 & 188\end{pmatrix}^{-1} \equiv_{2526} 1505\begin{pmatrix}188 & -111 \\ -247 & 2359\end{pmatrix}
\equiv_{2526}\begin{pmatrix}282940 & -167055 \\ -371735 & 3550295\end{pmatrix}
\equiv_{2526}\begin{pmatrix}28 & -339 \\ -413 & 1265\end{pmatrix}
\]
- \[\begin{array}{r|*{4}{|c}} Cryptogramme & 1735 & 1700 & 561 & 291\\\hline Vecteurs & &{ \begin{pmatrix}1735 \\ 1700\end{pmatrix} } & &{ \begin{pmatrix}561 \\ 291\end{pmatrix} }\\\hline\begin{pmatrix}28 & -339 \\ -413 & 1265\end{pmatrix} & &{ \begin{pmatrix}-527720 \\ 1433945\end{pmatrix} } & &{ \begin{pmatrix}-82941 \\ 136422\end{pmatrix} }\\\hline\equiv_{2526} & &{ \begin{pmatrix}214 \\ 1703\end{pmatrix} } & &{ \begin{pmatrix}417 \\ 18\end{pmatrix} }\\\hline & 214 & 1703 & 417 & 18\\\hline Message & CO & RD & ER & AS\end{array}\]Le message claire est \( CORDERAS \) .