For a reduced fraction with , , and coprime integers, its decimal representation repeats immediately after the decimal point. The shortest repeating block has length
Here denotes multiplicative order, and denotes Euler's totient function. Changing the numerator preserves the decimal period as long as the fraction remains reduced.[ref]
For example, long division of gives the remainders , with emitted digits . Consequently
Each remainder determines both the next digit and the next remainder; returning to one restarts the same six steps.
Figure 1.
Long-division remainders explain the six-digit repeat of one seventh and the two-digit prefix of one twenty-eighth
. Details.
More generally, initialize long division with . At each step, division with remainder gives
so . Since are coprime integers, the modular inverse of shows that exactly when . To see why the digit block cannot repeat sooner than the remainders, a purely repeating decimal with a block of digits represents for an integer . A reduced fraction with that value forces . Hence the shortest digit repeat and the multiplicative order coincide.
Knowing the decimal period predicts how many digits must be computed and stored: one block determines the whole repeating decimal. It also constructs the block directly. With , the integer
is the block, padded on the left with zeros to digits. For , and , so the block is and . Reduction matters: has decimal period one, whereas .
If the reduced denominator contains prime factors two or five, ten has no multiplicative order modulo that whole denominator. Write
The decimal preperiod has exactly digits. If , the remaining repeating decimal has decimal period . For instance, gives : two prefix digits, then six repeating digits. If , the decimal representation is a terminating decimal with exactly fractional places. We use the representation ending in zeros, rather than its alternative ending in nines; for example terminates after three places.
A short derivation explains both cases. After digits, multiplying the reduced fraction by and discarding its integer part leaves a reduced fraction whose denominator is . This denominator first becomes coprime to ten at . It then equals , giving an immediate repeat when , or an integer when . The same long division argument works for positional notation in any base : for a reduced denominator coprime to , the shortest repeating block has length .
Geometric series Created 2026-09-24 Updated 2026-10-20
A geometric series adds the terms of a geometric progression:
Its ordinary infinite sum is the limit of a sequence of partial sums , rather than a new operation that adds infinitely many terms at once. For that are real numbers or complex numbers, if , the series is absolutely convergent and
When , this condition on the modulus of is also necessary: for the terms fail to tend to zero. The all-zero series converges for every . The finite geometric series identity and give the result with almost no extra algebra. [ref]
Figure 1.
Decaying terms, accumulating sums, and the failure of an undamped alternating series
. Details.
With and , the partial sums approach from below. Changing the common ratio to makes the partial sums approach from alternating sides: their increments still shrink. At , those increments never shrink, and the partial sums remain . Substituting into does not supply the ordinary sum of that divergent series.
The formula is useful because many apparently different problems share a fixed multiplier. A repeating decimal such as is
A geometric distribution counting failures before the first success normalizes by the same identity: for , the probabilities on add to one. The comparison test for series uses a bound by a decaying geometric progression to establish absolute convergence without an exact formula for the series being studied. The iterated contraction gives a summable orbit result uses precisely this idea for repeated applications of a map.
The remainder of a geometric series gives more than an eventual limit: it states exactly how much an approximation omits. A common ratio close to one still gives a convergent series, but can require many terms for a useful approximation.