Let's examine the process more carefully.
When doing long division for a rational number ( \frac{p}{q} ), at each step we have a current remainder ( r ) (with ( 0 \le r < q )) and we perform:
[
10r = dq + r',
]
where ( d = \lfloor 10r/q \rfloor ) is the next decimal digit and ( r' = 10r \bmod q ) is the new remainder. Thus, the function
[
f(r) = 10r \bmod q
]
determines the evolution of the remainders, and the digit is given by
[
g(r) = \lfloor 10r/q \rfloor.
]
The Usual Reasoning:
-
There are only finitely many possible remainders (at most ( q-1 ) if we ignore ( r=0 ) for nonterminating decimals). Hence, eventually a remainder repeats. Suppose the first repeated remainder occurs after ( T ) steps; then the cycle of remainders is of length ( T ).
-
Since the division algorithm is deterministic, every time a particular remainder ( r ) occurs, it produces the same next digit ( g(r) ) and next remainder ( f(r) ). Therefore, when the remainder ( r ) repeats, the exact same block of digits will follow.
This shows that the decimal expansion repeats with a block (cycle) of digits that “comes from” the cycle of remainders. Often one states that the minimum cycle length of the repeating decimals equals the minimum cycle length of the remainders.
The Question Raised:
You correctly point out that while a remainder ( r ) uniquely determines the digit ( g(r) ), the converse is not true—different remainders can yield the same digit. For example, if ( q ) is large (greater than 10), there are more possible remainders than digits, so it is possible to have two distinct remainders ( r_1 ) and ( r_2 ) with
[
g(r_1) = g(r_2).
]
This might make one wonder: Is it possible that the sequence of digits repeats with a smaller period (say, a period of 3) while the underlying remainder cycle has a larger period (say, period 6)?
Why the Minimal Periods Must Coincide:
Suppose, for the sake of contradiction, that the repeating block of digits has a minimal period ( d ) but the cycle of remainders has a minimal period ( T ) with ( d < T ). That is, after some point, the digits satisfy
[
a_n = a_{n+d} \quad \text{for all } n,
]
but the remainders do not satisfy
[
r_n = r_{n+d} \quad \text{for all } n.
]
Now look at the recurrence relation for the remainders. At any step,
[
r_{n+1} = 10r_n - a_n q.
]
If the digit block of length ( d ) repeats, then by iterating the above process for ( d ) steps we get an expression of the form:
[
r_{n+d} = 10^d r_n - q \cdot A,
]
where ( A ) is the integer represented by the ( d )-digit block. Now suppose that the digit block repeats starting at every step after some point. For the digits from position ( n ) and ( n+d ) to be produced by the long-division process, and for the process to “line up” digitwise, it is necessary that the remainder that starts the process is reproduced. In other words, we must have
[
r_{n+d} = r_n.
]
Why? Because if the remainders were different, then—even if by coincidence the digits ( g(r_n) ) and ( g(r_{n+d}) ) are equal—the future digits would be determined by ( r_{n+1} ) versus ( r_{n+d+1} ), and there is no guarantee they would remain equal. The process is entirely controlled by the remainder. More formally: