In
mathematics, Midy's theorem, named after
French mathematician
A mathematician is someone who uses an extensive knowledge of mathematics in their work, typically to solve mathematical problems.
Mathematicians are concerned with numbers, data, quantity, mathematical structure, structure, space, Mathematica ...
E. Midy, is a statement about the
decimal expansion
A decimal representation of a non-negative real number is its expression as a sequence of symbols consisting of decimal digits traditionally written with a single separator:
r = b_k b_\ldots b_0.a_1a_2\ldots
Here is the decimal separator, i ...
of
fraction
A fraction (from la, fractus, "broken") represents a part of a whole or, more generally, any number of equal parts. When spoken in everyday English, a fraction describes how many parts of a certain size there are, for example, one-half, eight ...
s ''a''/''p'' where ''p'' is a
prime
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only way ...
and ''a''/''p'' has a
repeating decimal
A repeating decimal or recurring decimal is decimal representation of a number whose digits are periodic (repeating its values at regular intervals) and the infinitely repeated portion is not zero. It can be shown that a number is rational i ...
expansion with an
even period . If the period of the decimal representation of ''a''/''p'' is 2''n'', so that
:
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 other words,
:
:
For example,
:
:
Extended Midy's theorem
If ''k'' is any divisor of ''h'' (where ''h'' is a number of digits 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
[Bassam Abdul-Baki]
''Extended Midy's Theorem''
2005. 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 10
''k'' − 1.
For example,
:
has a period of 18. Dividing the repeating portion into 6-digit numbers and summing them gives
:
Similarly, dividing the repeating portion into 3-digit numbers and summing them gives
:
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 10
''k'' − 1 with ''b''
''k'' − 1 and carry out addition in base ''b''.
For example, in
octal
The octal numeral system, or oct for short, is the radix, base-8 number system, and uses the Numerical digit, digits 0 to 7. This is to say that 10octal represents eight and 100octal represents sixty-four. However, English, like most languages, ...
:
In
duodecimal
The duodecimal system (also known as base 12, dozenal, or, rarely, uncial) is a positional notation numeral system using twelve as its base. The number twelve (that is, the number written as "12" in the decimal numerical system) is instead wr ...
(using inverted two and three for ten and eleven, respectively)
:
Proof of Midy's theorem
Short proofs of Midy's theorem can be given using results from
group theory
In abstract algebra, group theory studies the algebraic structures known as group (mathematics), groups.
The concept of a group is central to abstract algebra: other well-known algebraic structures, such as ring (mathematics), rings, field ...
. However, it is also possible to prove Midy's theorem using
elementary algebra
Elementary algebra encompasses the basic concepts of algebra. It is often contrasted with arithmetic: arithmetic deals with specified numbers, whilst algebra introduces variables (quantities without fixed values).
This use of variables enta ...
and
modular arithmetic
In mathematics, modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" when reaching a certain value, called the modulus. The modern approach to modular arithmetic was developed by Carl Friedrich Gauss in his bo ...
:
Let ''p'' be a prime and ''a''/''p'' be a fraction between 0 and 1. Suppose the expansion of ''a''/''p'' in base ''b'' has a period of ''ℓ'', so
:
where ''N'' is the integer whose expansion in base ''b'' is the string ''a''
1''a''
2...''a''
''ℓ''.
Note that ''b''
''ℓ'' − 1 is a multiple of ''p'' because (''b''
''ℓ'' − 1)''a''/''p'' is an integer. Also ''b''
''n''−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 ''b''
''k'' − 1. (To see this, substitute ''x'' for ''b''
''k''; then ''b''
''ℓ'' = ''x''
''h'' and ''x'' − 1 is a factor of ''x''
''h'' − 1. ) Say ''b''
''ℓ'' − 1 = ''m''(''b''
''k'' − 1), so
:
But ''b''
''ℓ'' − 1 is a multiple of ''p''; ''b''
''k'' − 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
:
is an integer. In other words,
:
Now split the string ''a''
1''a''
2...''a''
''ℓ'' into ''h'' equal parts of length ''k'', and let these represent the integers ''N''
0...''N''
''h'' − 1 in base ''b'', so that
:
To prove Midy's extended theorem in base ''b'' we must show that the sum of the ''h'' integers ''N''
''i'' is a multiple of ''b''
''k'' − 1.
Since ''b''
''k'' is congruent to 1 modulo ''b''
''k'' − 1, any power of ''b''
''k'' will also be congruent to 1 modulo ''b''
''k'' − 1. So
:
:
:
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 ''N''
0 and ''N''
1 are both represented by strings of ''k'' digits in base ''b'' so both satisfy
:
''N''
0 and ''N''
1 cannot both equal 0 (otherwise ''a''/''p'' = 0) and cannot both equal ''b''
''k'' − 1 (otherwise ''a''/''p'' = 1), so
:
and since ''N''
0 + ''N''
1 is a multiple of ''b''
''k'' − 1, it follows that
:
Corollary
From the above,
:
is an integer
Thus
And thus for
:
For
and is an integer
:
and so on.
Notes
References
*Rademacher, H. and Toeplitz, O. ''The Enjoyment of Mathematics: Selections from Mathematics for the Amateur''. Princeton, NJ: Princeton University Press, pp. 158–160, 1957.
*E. Midy, "De Quelques Propriétés des Nombres et des Fractions Décimales Périodiques". College of Nantes, France: 1836.
*
Ross, Kenneth A. "Repeating decimals: a period piece". ''Math. Mag.'' 83 (2010), no. 1, 33–45.
External links
* {{MathWorld, urlname=MidysTheorem, title=Midy's Theorem
Theorems in number theory
Fractions (mathematics)
Numeral systems