« Arithmétique/PGCD » : différence entre les versions
Contenu supprimé Contenu ajouté
maintenance |
m fignolages typo et Style |
||
Ligne 36 :
== Algorithme d'Euclide ==
{{Wikipédia|algorithme d'Euclide}}
Soient <math>
{| class="wikitable" | valign="center" | align="center"
Ligne 43 :
| on divise <math>a</math> par <math>b</math>
| <math>r_0</math>
| <math>0\le r_0<b
|- valign="center" | align="center"
| si <math>r_0\neq 0</math>, on divise <math>b</math> par <math>r_0</math>
| <math>r_1</math>
| <math>0\le r_1<r_0
|- valign="center" | align="center"
| …
Ligne 55 :
| si <math>r_n\neq 0</math>, on divise <math>r_{n-1}</math> par <math>r_n</math>
| <math>0</math>
| <math>\operatorname{pgcd}(r_{n-1},r_n)=r_n</math>
|}
Ligne 72 :
| contenu =
Si l’on multiplie deux entiers naturels non nuls ''a'' et ''b'' par un même entier naturel non nul ''k'', leur PGCD est multiplié par ''k'', c'est-à-dire :<center>
<math>\operatorname{pgcd}(ka,kb)
}}
{{Démonstration déroulante|contenu=
L'entier ''k'' divise ''ka'' et ''kb'' donc aussi leur PGCD. L'entier ''d'' > 0 défini par ''pgcd''(''ka'', ''kb'') = ''kd'' vérifie alors :
<center><math>\forall n\in\Z\quad n\mid a,b\iff kn\mid ka,kb\iff kn\mid pgcd(ka,kb)\iff n\mid d</math></center>
donc
<center><math>\operatorname{pgcd}(a,b)=d=\operatorname{pgcd}(ka,kb)/k
}}
{{Exemple
| titre =Exemple
| contenu =
:<math>12000=12\
▲Donc <math>pgcd(12000,32000)=1000\times pgcd(12,32)=4000.</math>
}}
'''Conséquence : ''' si <math>k</math> est un entier naturel non nul, diviseur commun à <math>a</math> et <math>b</math>, alors <math>\operatorname{pgcd}\left
== Extension du PGCD aux entiers relatifs ==
Ligne 96 ⟶ 95 :
{{Définition
| contenu =
}}
{{Remarque
| contenu =
* <math>\forall k \in \Z^*
* Les diviseurs communs à <math>a</math> et <math>b</math> sont encore les diviseurs de <math>\operatorname{pgcd}(a,b)</math>
}}
Ligne 109 ⟶ 108 :
{{Définition
| contenu ={{Wikipédia|Nombres premiers entre eux}}
}}
{{Exemple
| contenu =
<math>35</math> et <math>26</math> sont premiers entre eux, car leur seul diviseur commun positif est <math>1</math>.
}}
{{Propriété
| contenu =
Soient <math>
}}
Ligne 125 ⟶ 124 :
<math>d</math> est non nul et divise <math>a</math> et <math>b</math> donc :
*<math>a':=\frac ad</math> et <math>b':=\frac bd</math> sont bien définis et sont bien des entiers ;
*<math>\operatorname{pgcd}(a',b')=\frac{\operatorname{pgcd}(da',db')}d=\frac{\operatorname{pgcd}(a,b)}d=1</math>.
}}
|