Skip to main content
QUICK REVIEW

[Paper Review] Midy's Theorem for Periodic Decimals

Joseph Lewittes|ArXiv.org|May 7, 2006
History and Theory of MathematicsMathematics6 references15 citations
TL;DR

This paper generalizes Midy's Theorem to arbitrary bases and extends it to periodic expansions with period lengths divisible by 3, 4, or more, proving that when the period is split into equal-length blocks, the sum of the blocks is a multiple of $10^k - 1$ (a string of 9s in base 10). The key contribution is a unified framework using modular arithmetic and cycle decomposition to characterize when such 'complementarity' holds, with precise conditions on the denominator and base.

ABSTRACT

The decimal expansion of 1/7 is 0.142857142857..., the block 142857 repeating forever. We call 142857 the period and its length is 6 = 2x3. If the period is broken into 2 pieces each of length 3 which are then added, the result is 142 + 857 = 999; similarly 14 + 28 + 57 = 99. Other periodic decimals show the same phenomenon while others do not. The general question then arises: Let a/N be a fraction with denominator prime to 10, having decimal expansion with period length dk, if the period is broken into d pieces of length k which are then added, when will the sum be 99...9, a block of k 9's? In 1836 E. Midy published an article analyzing this question and gave sufficient conditions in certain cases. We put the problem in a more general setting, working in an arbitrary number base B, and obtain new results. However, some open questions still remain.

Motivation & Objective

  • To extend Midy's Theorem beyond prime denominators and even period lengths to composite denominators and longer period divisions.
  • To establish a general framework for when the sum of blocks in a periodic base-$B$ expansion equals a multiple of $B^k - 1$, particularly $10^k - 1$ in decimal.
  • To characterize the conditions under which the sum of $d$-length blocks of a repeating period equals exactly $B^k - 1$, a string of $k$ 9s.
  • To unify and generalize prior results by Midy, Ginsberg, and others using modular arithmetic and cycle decomposition in the long division process.
  • To identify the multiplier $m_d(x)$, defined as $S_d(x)/(B^k - 1)$, and determine when it is constant across numerators $x$.

Proposed method

  • Uses the long division algorithm in base $B$ to model the periodic expansion of $x/N$, tracking remainders $x_i$ and digits $a_i$.
  • Defines $R_d(x)$ as the sum of the first $d$ digits in the $d$-cycle of $x$, and $S_d(x)$ as the integer formed by concatenating these digits.
  • Applies modular arithmetic: $S_d(x) \equiv 0 \pmod{B^k - 1}$ if and only if $R_d(x) \equiv 0 \pmod{N}$, linking digit sums to divisibility.
  • Introduces the set $M_d(B)$ of denominators $N$ for which $R_d(x) \equiv 0 \pmod{N}$ for all $x \in N^*$, defining the multiplier $m_d(x) = R_d(x)/N$.
  • Uses the structure of multiplicative order $e = \text{ord}_N(B)$ to decompose cycles into smaller cycles, proving that $N \in M_{d_1}(B)$ implies $N \in M_{d_2}(B)$ if $d_1 \mid d_2 \mid e$.
  • Applies the identity $B^k \equiv -1 \pmod{N}$ when $e = 2k$, leading to $x_{k+1} \equiv -x_1 \pmod{N}$, which forces $x_{k+1} = N - x_1$, ensuring digit pair sums to 9.

Experimental results

Research questions

  • RQ1Under what conditions does the sum of two equal-length blocks in the period of $x/N$ (in base $B$) equal a string of $k$ 9s?
  • RQ2Can Midy’s Theorem be generalized to period lengths divisible by 3, and under what conditions does the sum of three blocks equal $10^k - 1$?
  • RQ3What is the role of the multiplicative order $e = \text{ord}_N(B)$ in determining whether $N$ belongs to $M_d(B)$?
  • RQ4How does the multiplier $m_d(x) = S_d(x)/(B^k - 1)$ behave across different numerators $x$ for a fixed $N$ and $d$?
  • RQ5Why does the Midy property fail for some composite denominators like $803$ but hold for others like $77$, and what condition explains this?

Key findings

  • For $N \in M_2(10)$, the sum of the two halves of the period of $x/N$ is exactly $10^k - 1$, a string of $k$ 9s, which proves Midy’s original theorem.
  • If $N$ is a prime or prime power and $e = \text{ord}_N(10)$ is even, then $N \in M_2(10)$, and the Midy property holds for all $x \in N^*$.
  • For $N \in M_3(10)$ with $e = 3k$, the sum of three $k$-digit blocks of the period equals $10^k - 1$ if $m_3(x) = 1$, which holds for $x = 1, 2$ and $x = 3$ unless $N = 7$.
  • The multiplier $m_d(x)$ is constant across all $x \in N^*$ when $N \in M_d(B)$ and $d \mid e$, with $m_d(x) = d/2$ for $d = 2$, and $m_3(x) = 1$ under specific conditions.
  • The condition $\gcd(N, 10^k - 1) = 1$ explains why $1/77$ satisfies the Midy property ($k=3$) but $1/803$ does not ($k=4$), as $\gcd(803, 10^4 - 1) = 11 \neq 1$.
  • If $N \in M_{d_1}(B)$ and $d_1 \mid d_2 \mid e$, then $N \in M_{d_2}(B)$, showing that the property propagates from smaller to larger divisors of the order $e$.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.