25.06.2013 Views

Cours et activités en arithmétique pour les classes ... - Robert Rolland

Cours et activités en arithmétique pour les classes ... - Robert Rolland

Cours et activités en arithmétique pour les classes ... - Robert Rolland

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

52 Chapitre 3<br />

C) On transfère le tableau T1 de l’exemple A) dans un tableau T2 ayant 37<br />

lignes <strong>et</strong> 83 colonnes <strong>en</strong> parcourant <strong>les</strong> deux tableaux ligne par ligne à partir<br />

de la première colonne.<br />

1) Si un <strong>et</strong> um sont dans la même colonne du tableau T1, peuv<strong>en</strong>t ils être<br />

dans la même colonne du tableau T2 ?<br />

2) Un élém<strong>en</strong>t peut il être rangé dans la même colonne dans T1 <strong>et</strong> T2 ?<br />

D) On transfère le tableau T3 de l’exemple B) dans un tableau T4 ayant<br />

48 lignes <strong>et</strong> 64 colonnes. Répondre aux mêmes questions que dans C).<br />

3.6.3 Le chiffrem<strong>en</strong>t affine<br />

Les clés - Les fonctions de chiffrem<strong>en</strong>t<br />

a) E(7,4)(8) = 8 ; E(8,3)(13) = 3 ; E(8,3)(0) = 3.<br />

b) Si a n’est pas premier avec 26 soit d diviseur commun > 1. Alors a = da ′<br />

<strong>et</strong> 26 = db ′ . Pr<strong>en</strong>ons x = b ′ , alors ax = da ′ b ′ = 26a ′ . Donc (ax + b) mod 26 =<br />

b. Par suite E(a,b)(b ′ ) = E(a,b)(0) ce qui prouve que E(a,b) n’est pas bijective.<br />

c) Supposons E(a,b)(x) = E(a,b)(y). Alors a(x − y) est un multiple de 26.<br />

Comme a est premier avec 26, x−y est un multiple de 26 (théorème d’Euclide<br />

Gauss). Mais |x − y| < 26 ,donc x = y. Comme de plus l’<strong>en</strong>semble de départ<br />

I a le même nombre d’élém<strong>en</strong>ts que l’<strong>en</strong>semble d’arrivée (qui est aussi I),<br />

l’application est bijective.<br />

d) Supposons que E(a1,b1) = E(a2,b2) alors <strong>en</strong> pr<strong>en</strong>ant x = 0 on a b1 =<br />

b2. Pr<strong>en</strong>ons maint<strong>en</strong>ant x = 1 alors a1 − a2 est divisible par 26. Comme<br />

|a1 − a2| < 26 on a a1 = a2.<br />

e) Les élém<strong>en</strong>ts de I premiers avec 26 sont 1, 3, 5, 7, 9, 11, 15, 17, 19, 21, 23, 25.<br />

On dispose donc de 12 × 26 = 312 clés.<br />

Fonctions de déchiffrem<strong>en</strong>t<br />

a) 7 <strong>et</strong> 26 étant premiers <strong>en</strong>tre eux on peut trouver z <strong>et</strong> k tels que 7z+26k =<br />

1. Si de plus on impose à z d’être dans I, il y a unicité. z = 15, k = −4.<br />

b) On cherche z tel que 7z + 4 = 5 + 26k, ou <strong>en</strong>core 7z − 26k = 1. En vertu<br />

du a) on a z = 15.<br />

c) Si D(a,b)(y) = x alors y = ax + b + 26k, ax = (y − b) + 26k. Soit a ′ ∈ I<br />

tel que aa ′ = 1 + 26u (cf. question précéd<strong>en</strong>te). Alors aa ′ x = a ′ (y − b) + 26ka ′<br />

ou <strong>en</strong>core x + 26ux = a ′ (y − b) + 26ka ′ , c’est-à-dire x = a ′ (y − b) + 26k1.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!