# Il teorema di Midy

Midy's theorem In mathematics, Il teorema di Midy, named after French mathematician E. Midy, is a statement about the decimal expansion of fractions a/p where p is a prime and a/p has a repeating decimal expansion with an even period (sequence A028416 in the OEIS). If the period of the decimal representation of a/p is 2n, affinché {stile di visualizzazione {frac {un}{p}}=0.{sopra {un_{1}un_{2}un_{3}dots a_{n}un_{n+1}dots a_{2n}}}} then the digits in the second half of the repeating decimal period are the 9s complement of the corresponding digits in its first half. In altre parole, {stile di visualizzazione a_{io}+un_{i+n}=9} {stile di visualizzazione a_{1}dots a_{n}+un_{n+1}dots a_{2n}=10^{n}-1.} Per esempio, {stile di visualizzazione {frac {1}{13}}=0.{sopra {076923}}{testo{ e }}076+923=999.} {stile di visualizzazione {frac {1}{17}}=0.{sopra {0588235294117647}}{testo{ e }}05882352+94117647=99999999.} Contenuti 1 Extended Midy's theorem 2 Midy's theorem in other bases 3 Proof of Midy's theorem 4 Corollario 5 Appunti 6 Riferimenti 7 External links Extended Midy's theorem If k is any divisor of the period of the decimal expansion of a/p (where p is again a prime), then Midy's theorem can be generalised as follows. The extended Midy's theorem states that if the repeating portion of the decimal expansion of a/p is divided into k-digit numbers, then their sum is a multiple of 10k − 1.

Per esempio, {stile di visualizzazione {frac {1}{19}}=0.{sopra {052631578947368421}}} has a period of 18. Dividing the repeating portion into 6-digit numbers and summing them gives {displaystyle 052631+578947+368421=999999.} Allo stesso modo, dividing the repeating portion into 3-digit numbers and summing them gives {displaystyle 052+631+578+947+368+421=2997=3times 999.} Midy's theorem in other bases Midy's theorem and its extension do not depend on special properties of the decimal expansion, but work equally well in any base b, provided we replace 10k − 1 with bk − 1 and carry out addition in base b.

Per esempio, in octal {stile di visualizzazione {inizio{allineato}&{frac {1}{19}}=0.{sopra {032745}}_{8}\[8pt]&032_{8}+745_{8}=777_{8}\[8pt]&03_{8}+27_{8}+45_{8}=77_{8}.fine{allineato}}} In duodecimal (using inverted two and three for ten and eleven, rispettivamente) {stile di visualizzazione {inizio{allineato}&{frac {1}{19}}=0.{sopra {076{matematico {e}}45}}_{12}\[8pt]&076_{12}+{matematico {e}}45_{12}={matematico {EEE}}_{12}\[8pt]&07_{12}+6{matematico {e}}_{12}+45_{12}={matematico {EE}}_{12}fine{allineato}}} Proof of Midy's theorem Short proofs of Midy's theorem can be given using results from group theory. Tuttavia, it is also possible to prove Midy's theorem using elementary algebra and modular arithmetic: Let p be a prime and a/p be a fraction between 0 e 1. Suppose the expansion of a/p in base b has a period of ℓ, Così {stile di visualizzazione {inizio{allineato}&{frac {un}{p}}=[0.{sopra {un_{1}un_{2}dots a_{ell }}}]_{b}\[6pt]&Rightarrow {frac {un}{p}}b^{ell }=[un_{1}un_{2}dots a_{ell }.{sopra {un_{1}un_{2}dots a_{ell }}}]_{b}\[6pt]&Rightarrow {frac {un}{p}}b^{ell }=N+[0.{sopra {un_{1}un_{2}dots a_{ell }}}]_{b}=N+{frac {un}{p}}\[6pt]&Rightarrow {frac {un}{p}}={frac {N}{b^{ell }-1}}fine{allineato}}} where N is the integer whose expansion in base b is the string a1a2...aℓ.

Note that b ℓ − 1 is a multiple of p because (b ℓ − 1)a/p is an integer. Also bn−1 is not a multiple of p for any value of n less than ℓ, because otherwise the repeating period of a/p in base b would be less than ℓ.

Now suppose that ℓ = hk. Then b ℓ − 1 is a multiple of bk − 1. (Per vedere questo, substitute x for bk; then bℓ = xh and x − 1 is a factor of xh − 1. ) Say b ℓ − 1 = m(bk − 1), Così {stile di visualizzazione {frac {un}{p}}={frac {N}{m(b^{K}-1)}}.} But b ℓ − 1 is a multiple of p; bk − 1 is not a multiple of p (because k is less than ℓ ); and p is a prime; so m must be a multiple of p and {stile di visualizzazione {frac {am}{p}}={frac {N}{b^{K}-1}}} is an integer. In altre parole, {displaystyle Nequiv 0{pmod {b^{K}-1}}.} Now split the string a1a2...aℓ into h equal parts of length k, and let these represent the integers N0...Nh − 1 in base b, affinché {stile di visualizzazione {inizio{allineato}N_{h-1}&=[un_{1}dots a_{K}]_{b}\N_{h-2}&=[un_{k+1}dots a_{2K}]_{b}\&{} vdots \N_{0}&=[un_{l-k+1}dots a_{l}]_{b}fine{allineato}}} To prove Midy's extended theorem in base b we must show that the sum of the h integers Ni is a multiple of bk − 1.

Since bk is congruent to 1 modulo bk − 1, any power of bk will also be congruent to 1 modulo bk − 1. Così {displaystyle N=sum _{io=0}^{h-1}N_{io}b^{ik}=somma _{io=0}^{h-1}N_{io}(b^{K})^{io}} {displaystyle Rightarrow Nequiv sum _{io=0}^{h-1}N_{io}{pmod {b^{K}-1}}} {displaystyle Rightarrow sum _{io=0}^{h-1}N_{io}equivalente 0{pmod {b^{K}-1}}} which proves Midy's extended theorem in base b.

To prove the original Midy's theorem, take the special case where h = 2. Note that N0 and N1 are both represented by strings of k digits in base b so both satisfy {displaystyle 0leq N_{io}leq b^{K}-1.} N0 and N1 cannot both equal 0 (otherwise a/p = 0) and cannot both equal bk − 1 (otherwise a/p = 1), Così {stile di visualizzazione 0

Se vuoi conoscere altri articoli simili a Il teorema di Midy puoi visitare la categoria Frazioni (matematica).

Vai su

Utilizziamo cookie propri e di terze parti per migliorare l'esperienza dell'utente Maggiori informazioni