« Arithmétique/PGCD » : différence entre les versions
Contenu supprimé Contenu ajouté
simplifdémo |
m Robot : Remplacement de texte automatisé (-\,</math> +</math>) |
||
Ligne 22 :
| titre = Lemme d'Euclide
| contenu =
<math>(a,b) \in \N^{*2}</math><br />Si des entiers naturels q et r, avec <math>r \ne 0
}}
{{Démonstration
| contenu =
d désigne un diviseur commun à a et b. De <math>r = a-bq
}}
=== Algorithme d'Euclide ===
Soient <math>(a,b)\in \N^{*2}</math> tels que <math>a>b
{| class="wikitable" | valign="center" | align="center"
! Opération !! Reste <math>r
|- valign="center" | align="center"
| on divise <math>a
| <math>r_0
| <math>0\le r_0<b \mbox{ et } pgcd(a,b)=pgcd(b,r_0)</math>
|- valign="center" | align="center"
| si <math>r_0\neq 0</math>, on divise <math>b
| <math>r_1
| <math>0\le r_1<r_0 \mbox{ et } pgcd(b,r_0)=pgcd(r_0,r_1)</math>
|- valign="center" | align="center"
Ligne 48 :
| …
|- valign="center" | align="center"
| si <math>r_n\neq 0</math>, on divise <math>r_{n-1}
| <math>0
| <math>pgcd(r_{n-1},r_n)=r_n
|}
Ligne 78 :
{{Exemple
| titre = Calcul de <math>pgcd(12000,32000)
| contenu =
<math>12000=12\times 1000</math> et <math>32000=32\times 1000</math>
Donc <math>pgcd(12000,32000)=1000\times pgcd(12,32)=4000.
}}
'''Conséquence : ''' si <math>k
=== Extension du PGCD aux entiers relatifs ===
Ligne 91 :
{{Définition
| contenu =
<math>a
}}
Ligne 97 :
| contenu =
* <math>\forall k \in \Z^*, pgcd(ka,kb)=|k|pgcd(a,b)</math>
* Les diviseurs communs à <math>a
}}
Ligne 104 :
{{Définition
| contenu =
Dire que deux entiers relatifs non nuls <math>a
}}
{{Exemple
| contenu =
<math>35
}}
Ligne 116 :
<math>(a,b)\in \Z^{*2}</math>
Si <math>d=pgcd(a,b)
}}
{{Démonstration
| contenu =
<math>d|a \Rightarrow \exists a'\in \Z</math> tel que <math>a=da'
Donc : <math>d=pgcd(a,b)=pgcd(da',db')=d\times pgcd(a',b')</math>
|