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 \( 15\) modulo \( 26\) .
- Calculer le déterminant de la matrice \( A = \begin{pmatrix}10 & 4 & 9 \\ 7 & 2 & 5 \\ 3 & 13 & 20\end{pmatrix}\) .
- Expliquer pourquoi la matrice \( A \) est inversible modulo \( 26\) .
- 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}-25 & 37 & 2 \\ -125 & 173 & 13 \\ 85 & -118 & -8\end{pmatrix}\) .
- Déchiffrer le message suivant, crypté par la méthode de Hill par paquet de 1 de clef \( A \) : \[MFNMHGUBV\]
Cliquer ici pour afficher la solution
Exercice
- \[\begin{array}{|c|c|c|c||c|c|}\hline
a&b&r&q&u&v \\ \hline
26 & 15 & 11 & 1&-4 & 7 \\ \hline
15 & 11 & 4 & 1&3 & -4 \\ \hline
11 & 4 & 3 & 2&-1 & 3 \\ \hline
4 & 3 & 1 & 1&1 & -1 \\ \hline
3 & 1 & 0 & 3&0 & 1 \\ \hline
\end{array}\]
L'algorithme d'Euclide étendu, montre que l'inverse modulaire de \( 15\) est \( 7\) .
- D'après le cours \( det(A)= 15\equiv_{26}15\) .
- La matrice \( A \) est inversible car le déterminant est inversible modulo \( 26\) .
- Réalisation le produit suggéré par l'énoncé :
\begin{eqnarray*}
A\times B
&=& \begin{pmatrix}10 & 4 & 9 \\ 7 & 2 & 5 \\ 3 & 13 & 20\end{pmatrix}\begin{pmatrix}-25 & 37 & 2 \\ -125 & 173 & 13 \\ 85 & -118 & -8\end{pmatrix}\\
&=& \begin{pmatrix}15 & 0 & 0 \\ 0 & 15 & 0 \\ 0 & 0 & 15\end{pmatrix}\\
&=&15\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}\\
&\equiv_{26}&15\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}
\end{eqnarray*}
Ainsi \( A\times B\equiv_{26}15Id_{3}\) . Puisque \( 7\) est l'inverse de \( 15\) modulo \( 26\) , on en déduit que \( A\times (7B)\equiv_{26} Id_{3}\) et donc que \( 7B\equiv_{26}A^{-1}\) . En conclusion :
\[ A^{-1}\equiv_{26}7\begin{pmatrix}-25 & 37 & 2 \\ -125 & 173 & 13 \\ 85 & -118 & -8\end{pmatrix}\equiv_{26}\begin{pmatrix}-19 & 25 & 14 \\ -17 & 15 & 13 \\ 23 & -20 & -4\end{pmatrix}\]
- \[\begin{array}{r|*{9}{|c}} Cryptogramme & M & F & N & M & H & G & U & B & V\\\hline Codex & 12 & 5 & 13 & 12 & 7 & 6 & 20 & 1 & 21\\\hline Vecteurs & &&{ \begin{pmatrix}12 \\ 5 \\ 13\end{pmatrix} } & &&{ \begin{pmatrix}12 \\ 7 \\ 6\end{pmatrix} } & &&{ \begin{pmatrix}20 \\ 1 \\ 21\end{pmatrix} }\\\hline\begin{pmatrix}-19 & 25 & 14 \\ -17 & 15 & 13 \\ 23 & -20 & -4\end{pmatrix} & &&{ \begin{pmatrix}79 \\ 40 \\ 124\end{pmatrix} } & &&{ \begin{pmatrix}31 \\ -21 \\ 112\end{pmatrix} } & &&{ \begin{pmatrix}-61 \\ -52 \\ 356\end{pmatrix} }\\\hline\equiv_{26} & &&{ \begin{pmatrix}1 \\ 14 \\ 20\end{pmatrix} } & &&{ \begin{pmatrix}5 \\ 5 \\ 8\end{pmatrix} } & &&{ \begin{pmatrix}17 \\ 0 \\ 18\end{pmatrix} }\\\hline & 1 & 14 & 20 & 5 & 5 & 8 & 17 & 0 & 18\\\hline Message & B & O & U & F & F & I & R & A & S\end{array}\]Le message claire est \( BOUFFIRAS \) .